You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function getTypeFromTypeReference(node: TypeReferenceNode | ExpressionWithTypeArguments): Type {
3604
3604
let links = getNodeLinks(node);
3605
3605
if (!links.resolvedType) {
3606
-
// We only support expressions that are simple qualified names. For other expressions this produces undefined. let typeNameOrExpression = node.kind === SyntaxKind.TypeReference ? (<TypeReferenceNode>node).typeName :
3606
+
// We only support expressions that are simple qualified names. For other expressions this produces undefined.
3607
+
let typeNameOrExpression = node.kind === SyntaxKind.TypeReference ? (<TypeReferenceNode>node).typeName :
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -186,6 +186,11 @@ module ts {
186
186
A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods: {code: 1228,category: DiagnosticCategory.Error,key: "A type predicate is only allowed in return type position for functions and methods."},
187
187
A_type_predicate_cannot_reference_a_rest_parameter: {code: 1229,category: DiagnosticCategory.Error,key: "A type predicate cannot reference a rest parameter."},
188
188
A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: {code: 1230,category: DiagnosticCategory.Error,key: "A type predicate cannot reference element '{0}' in a binding pattern."},
189
+
An_export_assignment_can_only_be_used_in_a_module: {code: 1231,category: DiagnosticCategory.Error,key: "An export assignment can only be used in a module."},
190
+
An_import_declaration_can_only_be_used_in_a_namespace_or_module: {code: 1232,category: DiagnosticCategory.Error,key: "An import declaration can only be used in a namespace or module."},
191
+
An_export_declaration_can_only_be_used_in_a_module: {code: 1233,category: DiagnosticCategory.Error,key: "An export declaration can only be used in a module."},
192
+
An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: {code: 1234,category: DiagnosticCategory.Error,key: "An ambient module declaration is only allowed at the top level in a file."},
193
+
A_namespace_declaration_is_only_allowed_in_a_namespace_or_module: {code: 1235,category: DiagnosticCategory.Error,key: "A namespace declaration is only allowed in a namespace or module."},
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: {code: 2301,category: DiagnosticCategory.Error,key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},
191
196
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
0 commit comments