Lines Matching refs:file
347 let file = jshelpers.getSourceFileOfNode(node);
348 …nosticError(node, DiagnosticCode.A_return_statement_can_only_be_used_within_a_function_body, file);
354 let file = jshelpers.getSourceFileOfNode(node);
359 …ror(node, DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, file, args);
365 …only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, file, args);
369 …only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, file, args);
373 …only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, file, args);
381 …ror(node, DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, file, args);
393 let file = jshelpers.getSourceFileOfNode(name);
394 …me, DiagnosticCode.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations, file);
421 let file = jshelpers.getSourceFileOfNode(node);
425 …w DiagnosticError(node, DiagnosticCode.A_destructuring_declaration_must_have_an_initializer, file);
429 … throw new DiagnosticError(node, DiagnosticCode.The_const_declarations_must_be_initialized, file);
437 …agnosticCode.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions, file);
440 …nosticCode.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations, file);
450 …ticError(node, DiagnosticCode.const_and_let_declarations_not_allowed_in_statement_positions, file);
460 let file = jshelpers.getSourceFileOfNode(node);
463 …(node, DiagnosticCode.A_decorator_can_only_decorate_a_method_implementation_not_an_overload, file);
465 throw new DiagnosticError(node, DiagnosticCode.Decorators_are_not_valid_here, file);
470 …nosticCode.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name, file);
485 let file = jshelpers.getSourceFileOfNode(node);
486 …throw new DiagnosticError(asyncModifier, DiagnosticCode._0_modifier_cannot_be_used_here, file, ["a…
499 let file = jshelpers.getSourceFileOfNode(node);
505 file, [jshelpers.tokenToString(modifier.kind)]);
509 file, [jshelpers.tokenToString(modifier.kind)]);
516 file, [jshelpers.tokenToString(ts.SyntaxKind.ConstKeyword)]);
526 … throw new DiagnosticError(modifier, DiagnosticCode.Accessibility_modifier_already_seen, file);
528 …gnosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, [text, "static"]);
530 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, [text, "readonly"]…
532 …agnosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, [text, "async"]);
534 …modifier, DiagnosticCode._0_modifier_cannot_appear_on_a_module_or_namespace_element, file, [text]);
537 …rror(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier, file, [text, "abstract"]…
539 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, [text, "abstract"]…
542 …modifier, DiagnosticCode.An_accessibility_modifier_cannot_be_used_with_a_private_identifier, file);
549 … throw new DiagnosticError(modifier, DiagnosticCode._0_modifier_already_seen, file, ["static"]);
551 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, ["static", "readon…
553 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, ["static", "async"…
555 …fier, DiagnosticCode._0_modifier_cannot_appear_on_a_module_or_namespace_element, file, ["static"]);
557 …agnosticError(modifier, DiagnosticCode._0_modifier_cannot_appear_on_a_parameter, file, ["static"]);
559 …rror(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier, file, ["static", "abstra…
561 …r(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier, file, ["static"]);
569 … throw new DiagnosticError(modifier, DiagnosticCode._0_modifier_already_seen, file, ["readonly"]);
574 …sticCode.The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature, file);
582 … throw new DiagnosticError(modifier, DiagnosticCode._0_modifier_already_seen, file, ["export"]);
584 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, ["export", "declar…
586 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, ["export", "abstra…
588 …nosticError(modifier, DiagnosticCode._0_modifier_must_precede_1_modifier, file, ["export", "async"…
590 …difier, DiagnosticCode._0_modifier_cannot_appear_on_class_elements_of_this_kind, file, ["export"]);
592 …agnosticError(modifier, DiagnosticCode._0_modifier_cannot_appear_on_a_parameter, file, ["export"]);
600 …or(modifier, DiagnosticCode.A_default_export_can_only_be_used_in_an_ECMAScript_style_module, file);
608 … throw new DiagnosticError(modifier, DiagnosticCode._0_modifier_already_seen, file, ["declare"]);
610 …cError(modifier, DiagnosticCode._0_modifier_cannot_be_used_in_an_ambient_context, file, ["async"]);
612 …ifier, DiagnosticCode._0_modifier_cannot_appear_on_class_elements_of_this_kind, file, ["declare"]);
614 …gnosticError(modifier, DiagnosticCode._0_modifier_cannot_appear_on_a_parameter, file, ["declare"]);
616 …(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier, file, ["declare"]);
624 … throw new DiagnosticError(modifier, DiagnosticCode._0_modifier_already_seen, file, ["abstract"]);
630 …gnosticCode.The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration, file);
633 …rror(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier, file, ["static", "abstra…
636 …rror(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier, file, ["private", "abstr…
639 …ror(lastAsync, DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier, file, ["async", "abstrac…
644 …modifier, DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier, file, ["abstract"]);
652 … throw new DiagnosticError(modifier, DiagnosticCode._0_modifier_already_seen, file, ["async"]);
654 …cError(modifier, DiagnosticCode._0_modifier_cannot_be_used_in_an_ambient_context, file, ["async"]);
656 …iagnosticError(modifier, DiagnosticCode._0_modifier_cannot_appear_on_a_parameter, file, ["async"]);
659 …rror(modifier, DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier, file, ["async", "abstrac…
672 …tStatic!, DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration, file, ["static"]);
675 …tatic!, DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration, file, ["abstract"]);
677 …astAsync!, DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration, file, ["async"]);
679 …donly!, DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration, file, ["readonly"]);
682 …eclare!, DiagnosticCode.A_0_modifier_cannot_be_used_with_an_import_declaration, file, ["declare"]);
684 …Error(node, DiagnosticCode.A_parameter_property_may_not_be_declared_using_a_binding_pattern, file);
686 …icError(node, DiagnosticCode.A_parameter_property_cannot_be_declared_using_a_rest_parameter, file);
714 let file = jshelpers.getSourceFileOfNode(stmt);
727 … DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement, file);
730 … DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement, file);
737 … DiagnosticCode.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer, file);
740 … DiagnosticCode.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer, file);
747 … DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation, file);
750 … DiagnosticCode.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation, file);
773 let file = jshelpers.getSourceFileOfNode(node);
780 …, DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern, file);
865 let file = jshelpers.getSourceFileOfNode(node);
870 …w DiagnosticError(node, DiagnosticCode.Multiple_constructor_implementations_are_not_allowed, file);
890 …ew DiagnosticError(node, DiagnosticCode.Class_declaration_not_allowed_in_statement_position, file);
903 let file = jshelpers.getSourceFileOfNode(node);
907 … throw new DiagnosticError(heritageClause, DiagnosticCode.The_extends_clause_already_seen, file);
950 let file = jshelpers.getSourceFileOfNode(node);
952 if (jshelpers.isExternalOrCommonJsModule(file) && jshelpers.isInTopLevelContext(node)) {
954 file, jshelpers.declarationNameToString(node));
957 file, jshelpers.declarationNameToString(node));
961 file, jshelpers.declarationNameToString(node));
972 let file = jshelpers.getSourceFileOfNode(node);
973 …or(expression, DiagnosticCode.A_comma_expression_is_not_allowed_in_a_computed_property_name, file);
988 let file = jshelpers.getSourceFileOfNode(node);
996 …nosticError(prop.expression, DiagnosticCode.A_rest_element_cannot_contain_a_binding_pattern, file);
1009 file);
1013 …agnosticError(name, DiagnosticCode.Private_identifiers_are_not_allowed_outside_class_bodies, file);
1019 … new DiagnosticError(mod, DiagnosticCode._0_modifier_cannot_be_used_here, file, [jshelpers.getText…
1044 …throw new DiagnosticError(name, DiagnosticCode.Duplicate_identifier_0, file, [jshelpers.getTextOfN…
1054 let file = jshelpers.getSourceFileOfNode(exclamationToken);
1055 …ationToken, DiagnosticCode.A_definite_assignment_assertion_is_not_permitted_in_this_context, file);
1061 let file = jshelpers.getSourceFileOfNode(questionToken);
1062 … DiagnosticError(questionToken, DiagnosticCode.An_object_member_cannot_be_declared_optional, file);
1089 let file = jshelpers.getSourceFileOfNode(list[0]);
1090 …r(list[0], DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma, file);
1100 let file = jshelpers.getSourceFileOfNode(parameter);
1103 …(parameter.dotDotDotToken, DiagnosticCode.A_rest_parameter_must_be_last_in_a_parameter_list, file);
1109 … DiagnosticError(parameter.name, DiagnosticCode.A_rest_parameter_cannot_have_an_initializer, file);
1113 …DiagnosticError(parameter.questionToken, DiagnosticCode.A_rest_parameter_cannot_be_optional, file);
1119 …ticError(parameter.name, DiagnosticCode.Parameter_cannot_have_question_mark_and_initializer, file);
1123 …ror(parameter.name, DiagnosticCode.A_required_parameter_cannot_follow_an_optional_parameter, file);
1134 let file = jshelpers.getSourceFileOfNode(node);
1135 const startLine = file.getLineAndCharacterOfPosition(equalsGreaterThanToken.pos).line;
1136 const endLine = file.getLineAndCharacterOfPosition(equalsGreaterThanToken.end).line;
1138 …sticError(equalsGreaterThanToken, DiagnosticCode.Line_terminator_not_permitted_before_arrow, file);
1150 let file = jshelpers.getSourceFileOfNode(node);
1157 …throw new DiagnosticError(node.label, DiagnosticCode.Duplicate_label_0, file, [jshelpers.getTextOf…
1200 let file = jshelpers.getSourceFileOfNode(node);
1219 …nosticError(node, DiagnosticCode.The_super_cannot_be_referenced_in_a_computed_property_name, file);
1227 …per_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors, file);
1232 …he_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions, file);
1236 …ss_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class, file);
1342 let file = getSourceFileOfNode(lhs);
1351 …agnosticError(target, DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern, file);
1355 …or(target, DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma, file);
1375 … throw new DiagnosticError(target, DiagnosticCode.Property_destructuring_pattern_expected, file);
1382 … throw new DiagnosticError(target, DiagnosticCode.Property_destructuring_pattern_expected, file);
1393 … throw new DiagnosticError(target, DiagnosticCode.Property_destructuring_pattern_expected, file);
1405 let file = getSourceFileOfNode(lhs);
1406 …gnosticError(element, DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern, file);
1421 … throw new DiagnosticError(element, DiagnosticCode.Property_destructuring_pattern_expected, file);
1431 … throw new DiagnosticError(element, DiagnosticCode.Property_destructuring_pattern_expected, file);
1438 … throw new DiagnosticError(element, DiagnosticCode.Property_destructuring_pattern_expected, file);
1447 … throw new DiagnosticError(element, DiagnosticCode.Property_destructuring_pattern_expected, file);
1464 let file = getSourceFileOfNode(node);
1467 …gnosticError(element, DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern, file);