| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser; | 8 library engine.parser; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| 11 import 'java_engine.dart'; | 11 import 'java_engine.dart'; |
| 12 import 'instrumentation.dart'; | 12 import 'instrumentation.dart'; |
| 13 import 'error.dart'; | 13 import 'error.dart'; |
| 14 import 'source.dart'; | 14 import 'source.dart'; |
| 15 import 'scanner.dart'; | 15 import 'scanner.dart'; |
| 16 import 'ast.dart'; | 16 import 'ast.dart'; |
| 17 import 'utilities_dart.dart'; | 17 import 'utilities_dart.dart'; |
| 18 import 'engine.dart' show AnalysisEngine; | 18 import 'engine.dart' show AnalysisEngine, AnalysisOptionsImpl; |
| 19 import 'utilities_collection.dart' show TokenMap; | 19 import 'utilities_collection.dart' show TokenMap; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Instances of the class `CommentAndMetadata` implement a simple data-holder fo
r a method | 22 * Instances of the class `CommentAndMetadata` implement a simple data-holder fo
r a method |
| 23 * that needs to return multiple values. | 23 * that needs to return multiple values. |
| 24 */ | 24 */ |
| 25 class CommentAndMetadata { | 25 class CommentAndMetadata { |
| 26 /** | 26 /** |
| 27 * The documentation comment that was parsed, or `null` if none was given. | 27 * The documentation comment that was parsed, or `null` if none was given. |
| 28 */ | 28 */ |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 * An [errorListener] lock, if more than `0`, then errors are not reported. | 1429 * An [errorListener] lock, if more than `0`, then errors are not reported. |
| 1430 */ | 1430 */ |
| 1431 int _errorListenerLock = 0; | 1431 int _errorListenerLock = 0; |
| 1432 | 1432 |
| 1433 /** | 1433 /** |
| 1434 * A flag indicating whether parser is to parse function bodies. | 1434 * A flag indicating whether parser is to parse function bodies. |
| 1435 */ | 1435 */ |
| 1436 bool _parseFunctionBodies = true; | 1436 bool _parseFunctionBodies = true; |
| 1437 | 1437 |
| 1438 /** | 1438 /** |
| 1439 * A flag indicating whether parser is to parse deferred libraries. |
| 1440 */ |
| 1441 bool _parseDeferredLibraries = AnalysisOptionsImpl.DEFAULT_ENABLE_DEFERRED_LOA
DING; |
| 1442 |
| 1443 /** |
| 1439 * The next token to be parsed. | 1444 * The next token to be parsed. |
| 1440 */ | 1445 */ |
| 1441 Token _currentToken; | 1446 Token _currentToken; |
| 1442 | 1447 |
| 1443 /** | 1448 /** |
| 1444 * A flag indicating whether the parser is currently in the body of a loop. | 1449 * A flag indicating whether the parser is currently in the body of a loop. |
| 1445 */ | 1450 */ |
| 1446 bool _inLoop = false; | 1451 bool _inLoop = false; |
| 1447 | 1452 |
| 1448 /** | 1453 /** |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseStatements"); | 1559 InstrumentationBuilder instrumentation = Instrumentation.builder2("dart.engi
ne.Parser.parseStatements"); |
| 1555 try { | 1560 try { |
| 1556 _currentToken = token; | 1561 _currentToken = token; |
| 1557 return _parseStatementList(); | 1562 return _parseStatementList(); |
| 1558 } finally { | 1563 } finally { |
| 1559 instrumentation.log(); | 1564 instrumentation.log(); |
| 1560 } | 1565 } |
| 1561 } | 1566 } |
| 1562 | 1567 |
| 1563 /** | 1568 /** |
| 1569 * Set whether parser is to parse deferred libraries. |
| 1570 * |
| 1571 * @param parseDeferredLibraries `true` if parser is to parse deferred librari
es |
| 1572 */ |
| 1573 void set parseDeferredLibraries(bool parseDeferredLibraries) { |
| 1574 this._parseDeferredLibraries = parseDeferredLibraries; |
| 1575 } |
| 1576 |
| 1577 /** |
| 1564 * Set whether parser is to parse function bodies. | 1578 * Set whether parser is to parse function bodies. |
| 1565 * | 1579 * |
| 1566 * @param parseFunctionBodies `true` if parser is to parse function bodies | 1580 * @param parseFunctionBodies `true` if parser is to parse function bodies |
| 1567 */ | 1581 */ |
| 1568 void set parseFunctionBodies(bool parseFunctionBodies) { | 1582 void set parseFunctionBodies(bool parseFunctionBodies) { |
| 1569 this._parseFunctionBodies = parseFunctionBodies; | 1583 this._parseFunctionBodies = parseFunctionBodies; |
| 1570 } | 1584 } |
| 1571 | 1585 |
| 1572 /** | 1586 /** |
| 1573 * Parse an annotation. | 1587 * Parse an annotation. |
| (...skipping 3406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4980 * @param commentAndMetadata the metadata to be associated with the directive | 4994 * @param commentAndMetadata the metadata to be associated with the directive |
| 4981 * @return the import directive that was parsed | 4995 * @return the import directive that was parsed |
| 4982 */ | 4996 */ |
| 4983 ImportDirective _parseImportDirective(CommentAndMetadata commentAndMetadata) { | 4997 ImportDirective _parseImportDirective(CommentAndMetadata commentAndMetadata) { |
| 4984 Token importKeyword = _expectKeyword(Keyword.IMPORT); | 4998 Token importKeyword = _expectKeyword(Keyword.IMPORT); |
| 4985 StringLiteral libraryUri = parseStringLiteral(); | 4999 StringLiteral libraryUri = parseStringLiteral(); |
| 4986 Token deferredToken = null; | 5000 Token deferredToken = null; |
| 4987 Token asToken = null; | 5001 Token asToken = null; |
| 4988 SimpleIdentifier prefix = null; | 5002 SimpleIdentifier prefix = null; |
| 4989 if (_matchesKeyword(Keyword.DEFERRED)) { | 5003 if (_matchesKeyword(Keyword.DEFERRED)) { |
| 4990 deferredToken = andAdvance; | 5004 if (_parseDeferredLibraries) { |
| 5005 deferredToken = andAdvance; |
| 5006 } else { |
| 5007 _reportErrorForCurrentToken(ParserErrorCode.DEFERRED_IMPORTS_NOT_SUPPORT
ED, []); |
| 5008 _advance(); |
| 5009 } |
| 4991 } | 5010 } |
| 4992 if (_matchesKeyword(Keyword.AS)) { | 5011 if (_matchesKeyword(Keyword.AS)) { |
| 4993 asToken = andAdvance; | 5012 asToken = andAdvance; |
| 4994 prefix = parseSimpleIdentifier(); | 5013 prefix = parseSimpleIdentifier(); |
| 4995 } else if (deferredToken != null) { | 5014 } else if (deferredToken != null) { |
| 4996 _reportErrorForCurrentToken(ParserErrorCode.MISSING_PREFIX_IN_DEFERRED_IMP
ORT, []); | 5015 _reportErrorForCurrentToken(ParserErrorCode.MISSING_PREFIX_IN_DEFERRED_IMP
ORT, []); |
| 4997 } | 5016 } |
| 4998 List<Combinator> combinators = _parseCombinators(); | 5017 List<Combinator> combinators = _parseCombinators(); |
| 4999 Token semicolon = _expectSemicolon(); | 5018 Token semicolon = _expectSemicolon(); |
| 5000 return new ImportDirective(commentAndMetadata.comment, commentAndMetadata.me
tadata, importKeyword, libraryUri, deferredToken, asToken, prefix, combinators,
semicolon); | 5019 return new ImportDirective(commentAndMetadata.comment, commentAndMetadata.me
tadata, importKeyword, libraryUri, deferredToken, asToken, prefix, combinators,
semicolon); |
| (...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7449 static const ParserErrorCode CONST_METHOD = const ParserErrorCode.con3('CONST_
METHOD', 15, "Getters, setters and methods cannot be declared to be 'const'"); | 7468 static const ParserErrorCode CONST_METHOD = const ParserErrorCode.con3('CONST_
METHOD', 15, "Getters, setters and methods cannot be declared to be 'const'"); |
| 7450 | 7469 |
| 7451 static const ParserErrorCode CONST_TYPEDEF = const ParserErrorCode.con3('CONST
_TYPEDEF', 16, "Type aliases cannot be declared to be 'const'"); | 7470 static const ParserErrorCode CONST_TYPEDEF = const ParserErrorCode.con3('CONST
_TYPEDEF', 16, "Type aliases cannot be declared to be 'const'"); |
| 7452 | 7471 |
| 7453 static const ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = const ParserErrorC
ode.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 17, "Constructors cannot have a return
type"); | 7472 static const ParserErrorCode CONSTRUCTOR_WITH_RETURN_TYPE = const ParserErrorC
ode.con3('CONSTRUCTOR_WITH_RETURN_TYPE', 17, "Constructors cannot have a return
type"); |
| 7454 | 7473 |
| 7455 static const ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = const ParserErrorCode.
con3('CONTINUE_OUTSIDE_OF_LOOP', 18, "A continue statement cannot be used outsid
e of a loop or switch statement"); | 7474 static const ParserErrorCode CONTINUE_OUTSIDE_OF_LOOP = const ParserErrorCode.
con3('CONTINUE_OUTSIDE_OF_LOOP', 18, "A continue statement cannot be used outsid
e of a loop or switch statement"); |
| 7456 | 7475 |
| 7457 static const ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = const ParserErro
rCode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 19, "A continue statement in a swit
ch statement must have a label as a target"); | 7476 static const ParserErrorCode CONTINUE_WITHOUT_LABEL_IN_CASE = const ParserErro
rCode.con3('CONTINUE_WITHOUT_LABEL_IN_CASE', 19, "A continue statement in a swit
ch statement must have a label as a target"); |
| 7458 | 7477 |
| 7459 static const ParserErrorCode DEPRECATED_CLASS_TYPE_ALIAS = const ParserErrorCo
de.con3('DEPRECATED_CLASS_TYPE_ALIAS', 20, "The 'typedef' mixin application was
replaced with 'class'"); | 7478 static const ParserErrorCode DEFERRED_IMPORTS_NOT_SUPPORTED = const ParserErro
rCode.con3('DEFERRED_IMPORTS_NOT_SUPPORTED', 20, "Deferred imports are not suppo
rted by default"); |
| 7460 | 7479 |
| 7461 static const ParserErrorCode DIRECTIVE_AFTER_DECLARATION = const ParserErrorCo
de.con3('DIRECTIVE_AFTER_DECLARATION', 21, "Directives must appear before any de
clarations"); | 7480 static const ParserErrorCode DEPRECATED_CLASS_TYPE_ALIAS = const ParserErrorCo
de.con3('DEPRECATED_CLASS_TYPE_ALIAS', 21, "The 'typedef' mixin application was
replaced with 'class'"); |
| 7462 | 7481 |
| 7463 static const ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = const Parse
rErrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 22, "The label %s was alr
eady used in this switch statement"); | 7482 static const ParserErrorCode DIRECTIVE_AFTER_DECLARATION = const ParserErrorCo
de.con3('DIRECTIVE_AFTER_DECLARATION', 22, "Directives must appear before any de
clarations"); |
| 7464 | 7483 |
| 7465 static const ParserErrorCode DUPLICATED_MODIFIER = const ParserErrorCode.con3(
'DUPLICATED_MODIFIER', 23, "The modifier '%s' was already specified."); | 7484 static const ParserErrorCode DUPLICATE_LABEL_IN_SWITCH_STATEMENT = const Parse
rErrorCode.con3('DUPLICATE_LABEL_IN_SWITCH_STATEMENT', 23, "The label %s was alr
eady used in this switch statement"); |
| 7466 | 7485 |
| 7467 static const ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = const Parse
rErrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 24, "Equality expression
cannot be operand of another equality expression."); | 7486 static const ParserErrorCode DUPLICATED_MODIFIER = const ParserErrorCode.con3(
'DUPLICATED_MODIFIER', 24, "The modifier '%s' was already specified."); |
| 7468 | 7487 |
| 7469 static const ParserErrorCode EXPECTED_CASE_OR_DEFAULT = const ParserErrorCode.
con3('EXPECTED_CASE_OR_DEFAULT', 25, "Expected 'case' or 'default'"); | 7488 static const ParserErrorCode EQUALITY_CANNOT_BE_EQUALITY_OPERAND = const Parse
rErrorCode.con3('EQUALITY_CANNOT_BE_EQUALITY_OPERAND', 25, "Equality expression
cannot be operand of another equality expression."); |
| 7470 | 7489 |
| 7471 static const ParserErrorCode EXPECTED_CLASS_MEMBER = const ParserErrorCode.con
3('EXPECTED_CLASS_MEMBER', 26, "Expected a class member"); | 7490 static const ParserErrorCode EXPECTED_CASE_OR_DEFAULT = const ParserErrorCode.
con3('EXPECTED_CASE_OR_DEFAULT', 26, "Expected 'case' or 'default'"); |
| 7472 | 7491 |
| 7473 static const ParserErrorCode EXPECTED_EXECUTABLE = const ParserErrorCode.con3(
'EXPECTED_EXECUTABLE', 27, "Expected a method, getter, setter or operator declar
ation"); | 7492 static const ParserErrorCode EXPECTED_CLASS_MEMBER = const ParserErrorCode.con
3('EXPECTED_CLASS_MEMBER', 27, "Expected a class member"); |
| 7474 | 7493 |
| 7475 static const ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = const ParserErrorC
ode.con3('EXPECTED_LIST_OR_MAP_LITERAL', 28, "Expected a list or map literal"); | 7494 static const ParserErrorCode EXPECTED_EXECUTABLE = const ParserErrorCode.con3(
'EXPECTED_EXECUTABLE', 28, "Expected a method, getter, setter or operator declar
ation"); |
| 7476 | 7495 |
| 7477 static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode.c
on3('EXPECTED_STRING_LITERAL', 29, "Expected a string literal"); | 7496 static const ParserErrorCode EXPECTED_LIST_OR_MAP_LITERAL = const ParserErrorC
ode.con3('EXPECTED_LIST_OR_MAP_LITERAL', 29, "Expected a list or map literal"); |
| 7478 | 7497 |
| 7479 static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode.con3('EXPE
CTED_TOKEN', 30, "Expected to find '%s'"); | 7498 static const ParserErrorCode EXPECTED_STRING_LITERAL = const ParserErrorCode.c
on3('EXPECTED_STRING_LITERAL', 30, "Expected a string literal"); |
| 7480 | 7499 |
| 7481 static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode.con3('
EXPECTED_TYPE_NAME', 31, "Expected a type name"); | 7500 static const ParserErrorCode EXPECTED_TOKEN = const ParserErrorCode.con3('EXPE
CTED_TOKEN', 31, "Expected to find '%s'"); |
| 7482 | 7501 |
| 7483 static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 32, "Export directive
s must preceed part directives"); | 7502 static const ParserErrorCode EXPECTED_TYPE_NAME = const ParserErrorCode.con3('
EXPECTED_TYPE_NAME', 32, "Expected a type name"); |
| 7484 | 7503 |
| 7485 static const ParserErrorCode EXTERNAL_AFTER_CONST = const ParserErrorCode.con3
('EXTERNAL_AFTER_CONST', 33, "The modifier 'external' should be before the modif
ier 'const'"); | 7504 static const ParserErrorCode EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 33, "Export directive
s must preceed part directives"); |
| 7486 | 7505 |
| 7487 static const ParserErrorCode EXTERNAL_AFTER_FACTORY = const ParserErrorCode.co
n3('EXTERNAL_AFTER_FACTORY', 34, "The modifier 'external' should be before the m
odifier 'factory'"); | 7506 static const ParserErrorCode EXTERNAL_AFTER_CONST = const ParserErrorCode.con3
('EXTERNAL_AFTER_CONST', 34, "The modifier 'external' should be before the modif
ier 'const'"); |
| 7488 | 7507 |
| 7489 static const ParserErrorCode EXTERNAL_AFTER_STATIC = const ParserErrorCode.con
3('EXTERNAL_AFTER_STATIC', 35, "The modifier 'external' should be before the mod
ifier 'static'"); | 7508 static const ParserErrorCode EXTERNAL_AFTER_FACTORY = const ParserErrorCode.co
n3('EXTERNAL_AFTER_FACTORY', 35, "The modifier 'external' should be before the m
odifier 'factory'"); |
| 7490 | 7509 |
| 7491 static const ParserErrorCode EXTERNAL_CLASS = const ParserErrorCode.con3('EXTE
RNAL_CLASS', 36, "Classes cannot be declared to be 'external'"); | 7510 static const ParserErrorCode EXTERNAL_AFTER_STATIC = const ParserErrorCode.con
3('EXTERNAL_AFTER_STATIC', 36, "The modifier 'external' should be before the mod
ifier 'static'"); |
| 7492 | 7511 |
| 7493 static const ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = const ParserErro
rCode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 37, "External constructors cannot h
ave a body"); | 7512 static const ParserErrorCode EXTERNAL_CLASS = const ParserErrorCode.con3('EXTE
RNAL_CLASS', 37, "Classes cannot be declared to be 'external'"); |
| 7494 | 7513 |
| 7495 static const ParserErrorCode EXTERNAL_FIELD = const ParserErrorCode.con3('EXTE
RNAL_FIELD', 38, "Fields cannot be declared to be 'external'"); | 7514 static const ParserErrorCode EXTERNAL_CONSTRUCTOR_WITH_BODY = const ParserErro
rCode.con3('EXTERNAL_CONSTRUCTOR_WITH_BODY', 38, "External constructors cannot h
ave a body"); |
| 7496 | 7515 |
| 7497 static const ParserErrorCode EXTERNAL_GETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_GETTER_WITH_BODY', 39, "External getters cannot have a body"); | 7516 static const ParserErrorCode EXTERNAL_FIELD = const ParserErrorCode.con3('EXTE
RNAL_FIELD', 39, "Fields cannot be declared to be 'external'"); |
| 7498 | 7517 |
| 7499 static const ParserErrorCode EXTERNAL_METHOD_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_METHOD_WITH_BODY', 40, "External methods cannot have a body"); | 7518 static const ParserErrorCode EXTERNAL_GETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_GETTER_WITH_BODY', 40, "External getters cannot have a body"); |
| 7500 | 7519 |
| 7501 static const ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = const ParserErrorCo
de.con3('EXTERNAL_OPERATOR_WITH_BODY', 41, "External operators cannot have a bod
y"); | 7520 static const ParserErrorCode EXTERNAL_METHOD_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_METHOD_WITH_BODY', 41, "External methods cannot have a body"); |
| 7502 | 7521 |
| 7503 static const ParserErrorCode EXTERNAL_SETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_SETTER_WITH_BODY', 42, "External setters cannot have a body"); | 7522 static const ParserErrorCode EXTERNAL_OPERATOR_WITH_BODY = const ParserErrorCo
de.con3('EXTERNAL_OPERATOR_WITH_BODY', 42, "External operators cannot have a bod
y"); |
| 7504 | 7523 |
| 7505 static const ParserErrorCode EXTERNAL_TYPEDEF = const ParserErrorCode.con3('EX
TERNAL_TYPEDEF', 43, "Type aliases cannot be declared to be 'external'"); | 7524 static const ParserErrorCode EXTERNAL_SETTER_WITH_BODY = const ParserErrorCode
.con3('EXTERNAL_SETTER_WITH_BODY', 43, "External setters cannot have a body"); |
| 7506 | 7525 |
| 7507 static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = const ParserError
Code.con3('FACTORY_TOP_LEVEL_DECLARATION', 44, "Top-level declarations cannot be
declared to be 'factory'"); | 7526 static const ParserErrorCode EXTERNAL_TYPEDEF = const ParserErrorCode.con3('EX
TERNAL_TYPEDEF', 44, "Type aliases cannot be declared to be 'external'"); |
| 7508 | 7527 |
| 7509 static const ParserErrorCode FACTORY_WITHOUT_BODY = const ParserErrorCode.con3
('FACTORY_WITHOUT_BODY', 45, "A non-redirecting 'factory' constructor must have
a body"); | 7528 static const ParserErrorCode FACTORY_TOP_LEVEL_DECLARATION = const ParserError
Code.con3('FACTORY_TOP_LEVEL_DECLARATION', 45, "Top-level declarations cannot be
declared to be 'factory'"); |
| 7510 | 7529 |
| 7511 static const ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const Par
serErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 46, "Field initialize
rs can only be used in a constructor"); | 7530 static const ParserErrorCode FACTORY_WITHOUT_BODY = const ParserErrorCode.con3
('FACTORY_WITHOUT_BODY', 46, "A non-redirecting 'factory' constructor must have
a body"); |
| 7512 | 7531 |
| 7513 static const ParserErrorCode FINAL_AND_VAR = const ParserErrorCode.con3('FINAL
_AND_VAR', 47, "Members cannot be declared to be both 'final' and 'var'"); | 7532 static const ParserErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = const Par
serErrorCode.con3('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 47, "Field initialize
rs can only be used in a constructor"); |
| 7514 | 7533 |
| 7515 static const ParserErrorCode FINAL_CLASS = const ParserErrorCode.con3('FINAL_C
LASS', 48, "Classes cannot be declared to be 'final'"); | 7534 static const ParserErrorCode FINAL_AND_VAR = const ParserErrorCode.con3('FINAL
_AND_VAR', 48, "Members cannot be declared to be both 'final' and 'var'"); |
| 7516 | 7535 |
| 7517 static const ParserErrorCode FINAL_CONSTRUCTOR = const ParserErrorCode.con3('F
INAL_CONSTRUCTOR', 49, "A constructor cannot be declared to be 'final'"); | 7536 static const ParserErrorCode FINAL_CLASS = const ParserErrorCode.con3('FINAL_C
LASS', 49, "Classes cannot be declared to be 'final'"); |
| 7518 | 7537 |
| 7519 static const ParserErrorCode FINAL_METHOD = const ParserErrorCode.con3('FINAL_
METHOD', 50, "Getters, setters and methods cannot be declared to be 'final'"); | 7538 static const ParserErrorCode FINAL_CONSTRUCTOR = const ParserErrorCode.con3('F
INAL_CONSTRUCTOR', 50, "A constructor cannot be declared to be 'final'"); |
| 7520 | 7539 |
| 7521 static const ParserErrorCode FINAL_TYPEDEF = const ParserErrorCode.con3('FINAL
_TYPEDEF', 51, "Type aliases cannot be declared to be 'final'"); | 7540 static const ParserErrorCode FINAL_METHOD = const ParserErrorCode.con3('FINAL_
METHOD', 51, "Getters, setters and methods cannot be declared to be 'final'"); |
| 7522 | 7541 |
| 7523 static const ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = const ParserErrorC
ode.con3('FUNCTION_TYPED_PARAMETER_VAR', 52, "Function typed parameters cannot s
pecify 'const', 'final' or 'var' instead of return type"); | 7542 static const ParserErrorCode FINAL_TYPEDEF = const ParserErrorCode.con3('FINAL
_TYPEDEF', 52, "Type aliases cannot be declared to be 'final'"); |
| 7524 | 7543 |
| 7525 static const ParserErrorCode GETTER_IN_FUNCTION = const ParserErrorCode.con3('
GETTER_IN_FUNCTION', 53, "Getters cannot be defined within methods or functions"
); | 7544 static const ParserErrorCode FUNCTION_TYPED_PARAMETER_VAR = const ParserErrorC
ode.con3('FUNCTION_TYPED_PARAMETER_VAR', 53, "Function typed parameters cannot s
pecify 'const', 'final' or 'var' instead of return type"); |
| 7526 | 7545 |
| 7527 static const ParserErrorCode GETTER_WITH_PARAMETERS = const ParserErrorCode.co
n3('GETTER_WITH_PARAMETERS', 54, "Getter should be declared without a parameter
list"); | 7546 static const ParserErrorCode GETTER_IN_FUNCTION = const ParserErrorCode.con3('
GETTER_IN_FUNCTION', 54, "Getters cannot be defined within methods or functions"
); |
| 7528 | 7547 |
| 7529 static const ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = const Pars
erErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 55, "Illegal assignment
to non-assignable expression"); | 7548 static const ParserErrorCode GETTER_WITH_PARAMETERS = const ParserErrorCode.co
n3('GETTER_WITH_PARAMETERS', 55, "Getter should be declared without a parameter
list"); |
| 7530 | 7549 |
| 7531 static const ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = const ParserErrorCode
.con3('IMPLEMENTS_BEFORE_EXTENDS', 56, "The extends clause must be before the im
plements clause"); | 7550 static const ParserErrorCode ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE = const Pars
erErrorCode.con3('ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE', 56, "Illegal assignment
to non-assignable expression"); |
| 7532 | 7551 |
| 7533 static const ParserErrorCode IMPLEMENTS_BEFORE_WITH = const ParserErrorCode.co
n3('IMPLEMENTS_BEFORE_WITH', 57, "The with clause must be before the implements
clause"); | 7552 static const ParserErrorCode IMPLEMENTS_BEFORE_EXTENDS = const ParserErrorCode
.con3('IMPLEMENTS_BEFORE_EXTENDS', 57, "The extends clause must be before the im
plements clause"); |
| 7534 | 7553 |
| 7535 static const ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 58, "Import directive
s must preceed part directives"); | 7554 static const ParserErrorCode IMPLEMENTS_BEFORE_WITH = const ParserErrorCode.co
n3('IMPLEMENTS_BEFORE_WITH', 58, "The with clause must be before the implements
clause"); |
| 7536 | 7555 |
| 7537 static const ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = const ParserEr
rorCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 59, "The loop variable in a for
-each loop cannot be initialized"); | 7556 static const ParserErrorCode IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE = const Par
serErrorCode.con3('IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE', 59, "Import directive
s must preceed part directives"); |
| 7538 | 7557 |
| 7539 static const ParserErrorCode INVALID_CODE_POINT = const ParserErrorCode.con3('
INVALID_CODE_POINT', 60, "The escape sequence '%s' is not a valid code point"); | 7558 static const ParserErrorCode INITIALIZED_VARIABLE_IN_FOR_EACH = const ParserEr
rorCode.con3('INITIALIZED_VARIABLE_IN_FOR_EACH', 60, "The loop variable in a for
-each loop cannot be initialized"); |
| 7540 | 7559 |
| 7541 static const ParserErrorCode INVALID_COMMENT_REFERENCE = const ParserErrorCode
.con3('INVALID_COMMENT_REFERENCE', 61, "Comment references should contain a poss
ibly prefixed identifier and can start with 'new', but should not contain anythi
ng else"); | 7560 static const ParserErrorCode INVALID_CODE_POINT = const ParserErrorCode.con3('
INVALID_CODE_POINT', 61, "The escape sequence '%s' is not a valid code point"); |
| 7542 | 7561 |
| 7543 static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode.con3('
INVALID_HEX_ESCAPE', 62, "An escape sequence starting with '\\x' must be followe
d by 2 hexidecimal digits"); | 7562 static const ParserErrorCode INVALID_COMMENT_REFERENCE = const ParserErrorCode
.con3('INVALID_COMMENT_REFERENCE', 62, "Comment references should contain a poss
ibly prefixed identifier and can start with 'new', but should not contain anythi
ng else"); |
| 7544 | 7563 |
| 7545 static const ParserErrorCode INVALID_OPERATOR = const ParserErrorCode.con3('IN
VALID_OPERATOR', 63, "The string '%s' is not a valid operator"); | 7564 static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode.con3('
INVALID_HEX_ESCAPE', 63, "An escape sequence starting with '\\x' must be followe
d by 2 hexidecimal digits"); |
| 7546 | 7565 |
| 7547 static const ParserErrorCode INVALID_OPERATOR_FOR_SUPER = const ParserErrorCod
e.con3('INVALID_OPERATOR_FOR_SUPER', 64, "The operator '%s' cannot be used with
'super'"); | 7566 static const ParserErrorCode INVALID_OPERATOR = const ParserErrorCode.con3('IN
VALID_OPERATOR', 64, "The string '%s' is not a valid operator"); |
| 7548 | 7567 |
| 7549 static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode.co
n3('INVALID_UNICODE_ESCAPE', 65, "An escape sequence starting with '\\u' must be
followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"); | 7568 static const ParserErrorCode INVALID_OPERATOR_FOR_SUPER = const ParserErrorCod
e.con3('INVALID_OPERATOR_FOR_SUPER', 65, "The operator '%s' cannot be used with
'super'"); |
| 7550 | 7569 |
| 7551 static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = const ParserErrorCo
de.con3('LIBRARY_DIRECTIVE_NOT_FIRST', 66, "The library directive must appear be
fore all other directives"); | 7570 static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode.co
n3('INVALID_UNICODE_ESCAPE', 66, "An escape sequence starting with '\\u' must be
followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'"); |
| 7552 | 7571 |
| 7553 static const ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = const Parse
rErrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 67, "Local function decla
rations cannot specify any modifier"); | 7572 static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST = const ParserErrorCo
de.con3('LIBRARY_DIRECTIVE_NOT_FIRST', 67, "The library directive must appear be
fore all other directives"); |
| 7554 | 7573 |
| 7555 static const ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = const ParserErrorCo
de.con3('MISSING_ASSIGNABLE_SELECTOR', 68, "Missing selector such as \".<identif
ier>\" or \"[0]\""); | 7574 static const ParserErrorCode LOCAL_FUNCTION_DECLARATION_MODIFIER = const Parse
rErrorCode.con3('LOCAL_FUNCTION_DECLARATION_MODIFIER', 68, "Local function decla
rations cannot specify any modifier"); |
| 7556 | 7575 |
| 7557 static const ParserErrorCode MISSING_CATCH_OR_FINALLY = const ParserErrorCode.
con3('MISSING_CATCH_OR_FINALLY', 69, "A try statement must have either a catch o
r finally clause"); | 7576 static const ParserErrorCode MISSING_ASSIGNABLE_SELECTOR = const ParserErrorCo
de.con3('MISSING_ASSIGNABLE_SELECTOR', 69, "Missing selector such as \".<identif
ier>\" or \"[0]\""); |
| 7558 | 7577 |
| 7559 static const ParserErrorCode MISSING_CLASS_BODY = const ParserErrorCode.con3('
MISSING_CLASS_BODY', 70, "A class definition must have a body, even if it is emp
ty"); | 7578 static const ParserErrorCode MISSING_CATCH_OR_FINALLY = const ParserErrorCode.
con3('MISSING_CATCH_OR_FINALLY', 70, "A try statement must have either a catch o
r finally clause"); |
| 7560 | 7579 |
| 7561 static const ParserErrorCode MISSING_CLOSING_PARENTHESIS = const ParserErrorCo
de.con3('MISSING_CLOSING_PARENTHESIS', 71, "The closing parenthesis is missing")
; | 7580 static const ParserErrorCode MISSING_CLASS_BODY = const ParserErrorCode.con3('
MISSING_CLASS_BODY', 71, "A class definition must have a body, even if it is emp
ty"); |
| 7562 | 7581 |
| 7563 static const ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = const ParserErr
orCode.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 72, "Variables must be declared u
sing the keywords 'const', 'final', 'var' or a type name"); | 7582 static const ParserErrorCode MISSING_CLOSING_PARENTHESIS = const ParserErrorCo
de.con3('MISSING_CLOSING_PARENTHESIS', 72, "The closing parenthesis is missing")
; |
| 7564 | 7583 |
| 7565 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = const ParserErrorCo
de.con3('MISSING_EXPRESSION_IN_THROW', 73, "Throw expressions must compute the o
bject to be thrown"); | 7584 static const ParserErrorCode MISSING_CONST_FINAL_VAR_OR_TYPE = const ParserErr
orCode.con3('MISSING_CONST_FINAL_VAR_OR_TYPE', 73, "Variables must be declared u
sing the keywords 'const', 'final', 'var' or a type name"); |
| 7566 | 7585 |
| 7567 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode.con
3('MISSING_FUNCTION_BODY', 74, "A function body must be provided"); | 7586 static const ParserErrorCode MISSING_EXPRESSION_IN_THROW = const ParserErrorCo
de.con3('MISSING_EXPRESSION_IN_THROW', 74, "Throw expressions must compute the o
bject to be thrown"); |
| 7568 | 7587 |
| 7569 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = const ParserErrorCo
de.con3('MISSING_FUNCTION_PARAMETERS', 75, "Functions must have an explicit list
of parameters"); | 7588 static const ParserErrorCode MISSING_FUNCTION_BODY = const ParserErrorCode.con
3('MISSING_FUNCTION_BODY', 75, "A function body must be provided"); |
| 7570 | 7589 |
| 7571 static const ParserErrorCode MISSING_GET = const ParserErrorCode.con3('MISSING
_GET', 76, "Getters must have the keyword 'get' before the getter name"); | 7590 static const ParserErrorCode MISSING_FUNCTION_PARAMETERS = const ParserErrorCo
de.con3('MISSING_FUNCTION_PARAMETERS', 76, "Functions must have an explicit list
of parameters"); |
| 7572 | 7591 |
| 7573 static const ParserErrorCode MISSING_IDENTIFIER = const ParserErrorCode.con3('
MISSING_IDENTIFIER', 77, "Expected an identifier"); | 7592 static const ParserErrorCode MISSING_GET = const ParserErrorCode.con3('MISSING
_GET', 77, "Getters must have the keyword 'get' before the getter name"); |
| 7574 | 7593 |
| 7575 static const ParserErrorCode MISSING_KEYWORD_OPERATOR = const ParserErrorCode.
con3('MISSING_KEYWORD_OPERATOR', 78, "Operator declarations must be preceeded by
the keyword 'operator'"); | 7594 static const ParserErrorCode MISSING_IDENTIFIER = const ParserErrorCode.con3('
MISSING_IDENTIFIER', 78, "Expected an identifier"); |
| 7576 | 7595 |
| 7577 static const ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 79, "Library directives must
include a library name"); | 7596 static const ParserErrorCode MISSING_KEYWORD_OPERATOR = const ParserErrorCode.
con3('MISSING_KEYWORD_OPERATOR', 79, "Operator declarations must be preceeded by
the keyword 'operator'"); |
| 7578 | 7597 |
| 7579 static const ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 80, "Library directives must
include a library name"); | 7598 static const ParserErrorCode MISSING_NAME_IN_LIBRARY_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_LIBRARY_DIRECTIVE', 80, "Library directives must
include a library name"); |
| 7580 | 7599 |
| 7581 static const ParserErrorCode MISSING_PREFIX_IN_DEFERRED_IMPORT = const ParserE
rrorCode.con3('MISSING_PREFIX_IN_DEFERRED_IMPORT', 81, "Deferred imports must ha
ve a prefix"); | 7600 static const ParserErrorCode MISSING_NAME_IN_PART_OF_DIRECTIVE = const ParserE
rrorCode.con3('MISSING_NAME_IN_PART_OF_DIRECTIVE', 81, "Library directives must
include a library name"); |
| 7582 | 7601 |
| 7583 static const ParserErrorCode MISSING_STATEMENT = const ParserErrorCode.con3('M
ISSING_STATEMENT', 82, "Expected a statement"); | 7602 static const ParserErrorCode MISSING_PREFIX_IN_DEFERRED_IMPORT = const ParserE
rrorCode.con3('MISSING_PREFIX_IN_DEFERRED_IMPORT', 82, "Deferred imports must ha
ve a prefix"); |
| 7584 | 7603 |
| 7585 static const ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = const Pa
rserErrorCode.con3('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 83, "There is no '%
s' to close the parameter group"); | 7604 static const ParserErrorCode MISSING_STATEMENT = const ParserErrorCode.con3('M
ISSING_STATEMENT', 83, "Expected a statement"); |
| 7586 | 7605 |
| 7587 static const ParserErrorCode MISSING_TYPEDEF_PARAMETERS = const ParserErrorCod
e.con3('MISSING_TYPEDEF_PARAMETERS', 84, "Type aliases for functions must have a
n explicit list of parameters"); | 7606 static const ParserErrorCode MISSING_TERMINATOR_FOR_PARAMETER_GROUP = const Pa
rserErrorCode.con3('MISSING_TERMINATOR_FOR_PARAMETER_GROUP', 84, "There is no '%
s' to close the parameter group"); |
| 7588 | 7607 |
| 7589 static const ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = const ParserErrorC
ode.con3('MISSING_VARIABLE_IN_FOR_EACH', 85, "A loop variable must be declared i
n a for-each loop before the 'in', but none were found"); | 7608 static const ParserErrorCode MISSING_TYPEDEF_PARAMETERS = const ParserErrorCod
e.con3('MISSING_TYPEDEF_PARAMETERS', 85, "Type aliases for functions must have a
n explicit list of parameters"); |
| 7590 | 7609 |
| 7591 static const ParserErrorCode MIXED_PARAMETER_GROUPS = const ParserErrorCode.co
n3('MIXED_PARAMETER_GROUPS', 86, "Cannot have both positional and named paramete
rs in a single parameter list"); | 7610 static const ParserErrorCode MISSING_VARIABLE_IN_FOR_EACH = const ParserErrorC
ode.con3('MISSING_VARIABLE_IN_FOR_EACH', 86, "A loop variable must be declared i
n a for-each loop before the 'in', but none were found"); |
| 7592 | 7611 |
| 7593 static const ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = const ParserErrorCode.
con3('MULTIPLE_EXTENDS_CLAUSES', 87, "Each class definition can have at most one
extends clause"); | 7612 static const ParserErrorCode MIXED_PARAMETER_GROUPS = const ParserErrorCode.co
n3('MIXED_PARAMETER_GROUPS', 87, "Cannot have both positional and named paramete
rs in a single parameter list"); |
| 7594 | 7613 |
| 7595 static const ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = const ParserErrorCo
de.con3('MULTIPLE_IMPLEMENTS_CLAUSES', 88, "Each class definition can have at mo
st one implements clause"); | 7614 static const ParserErrorCode MULTIPLE_EXTENDS_CLAUSES = const ParserErrorCode.
con3('MULTIPLE_EXTENDS_CLAUSES', 88, "Each class definition can have at most one
extends clause"); |
| 7596 | 7615 |
| 7597 static const ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = const ParserErrorCo
de.con3('MULTIPLE_LIBRARY_DIRECTIVES', 89, "Only one library directive may be de
clared in a file"); | 7616 static const ParserErrorCode MULTIPLE_IMPLEMENTS_CLAUSES = const ParserErrorCo
de.con3('MULTIPLE_IMPLEMENTS_CLAUSES', 89, "Each class definition can have at mo
st one implements clause"); |
| 7598 | 7617 |
| 7599 static const ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = const ParserErr
orCode.con3('MULTIPLE_NAMED_PARAMETER_GROUPS', 90, "Cannot have multiple groups
of named parameters in a single parameter list"); | 7618 static const ParserErrorCode MULTIPLE_LIBRARY_DIRECTIVES = const ParserErrorCo
de.con3('MULTIPLE_LIBRARY_DIRECTIVES', 90, "Only one library directive may be de
clared in a file"); |
| 7600 | 7619 |
| 7601 static const ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = const ParserErrorCo
de.con3('MULTIPLE_PART_OF_DIRECTIVES', 91, "Only one part-of directive may be de
clared in a file"); | 7620 static const ParserErrorCode MULTIPLE_NAMED_PARAMETER_GROUPS = const ParserErr
orCode.con3('MULTIPLE_NAMED_PARAMETER_GROUPS', 91, "Cannot have multiple groups
of named parameters in a single parameter list"); |
| 7602 | 7621 |
| 7603 static const ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = const Pars
erErrorCode.con3('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 92, "Cannot have multip
le groups of positional parameters in a single parameter list"); | 7622 static const ParserErrorCode MULTIPLE_PART_OF_DIRECTIVES = const ParserErrorCo
de.con3('MULTIPLE_PART_OF_DIRECTIVES', 92, "Only one part-of directive may be de
clared in a file"); |
| 7604 | 7623 |
| 7605 static const ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = const ParserErro
rCode.con3('MULTIPLE_VARIABLES_IN_FOR_EACH', 93, "A single loop variable must be
declared in a for-each loop before the 'in', but %s were found"); | 7624 static const ParserErrorCode MULTIPLE_POSITIONAL_PARAMETER_GROUPS = const Pars
erErrorCode.con3('MULTIPLE_POSITIONAL_PARAMETER_GROUPS', 93, "Cannot have multip
le groups of positional parameters in a single parameter list"); |
| 7606 | 7625 |
| 7607 static const ParserErrorCode MULTIPLE_WITH_CLAUSES = const ParserErrorCode.con
3('MULTIPLE_WITH_CLAUSES', 94, "Each class definition can have at most one with
clause"); | 7626 static const ParserErrorCode MULTIPLE_VARIABLES_IN_FOR_EACH = const ParserErro
rCode.con3('MULTIPLE_VARIABLES_IN_FOR_EACH', 94, "A single loop variable must be
declared in a for-each loop before the 'in', but %s were found"); |
| 7608 | 7627 |
| 7609 static const ParserErrorCode NAMED_FUNCTION_EXPRESSION = const ParserErrorCode
.con3('NAMED_FUNCTION_EXPRESSION', 95, "Function expressions cannot be named"); | 7628 static const ParserErrorCode MULTIPLE_WITH_CLAUSES = const ParserErrorCode.con
3('MULTIPLE_WITH_CLAUSES', 95, "Each class definition can have at most one with
clause"); |
| 7610 | 7629 |
| 7611 static const ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = const ParserError
Code.con3('NAMED_PARAMETER_OUTSIDE_GROUP', 96, "Named parameters must be enclose
d in curly braces ('{' and '}')"); | 7630 static const ParserErrorCode NAMED_FUNCTION_EXPRESSION = const ParserErrorCode
.con3('NAMED_FUNCTION_EXPRESSION', 96, "Function expressions cannot be named"); |
| 7612 | 7631 |
| 7613 static const ParserErrorCode NATIVE_CLAUSE_IN_NON_SDK_CODE = const ParserError
Code.con3('NATIVE_CLAUSE_IN_NON_SDK_CODE', 97, "Native clause can only be used i
n the SDK and code that is loaded through native extensions"); | 7632 static const ParserErrorCode NAMED_PARAMETER_OUTSIDE_GROUP = const ParserError
Code.con3('NAMED_PARAMETER_OUTSIDE_GROUP', 97, "Named parameters must be enclose
d in curly braces ('{' and '}')"); |
| 7614 | 7633 |
| 7615 static const ParserErrorCode NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE = const Pars
erErrorCode.con3('NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE', 98, "Native functions c
an only be declared in the SDK and code that is loaded through native extensions
"); | 7634 static const ParserErrorCode NATIVE_CLAUSE_IN_NON_SDK_CODE = const ParserError
Code.con3('NATIVE_CLAUSE_IN_NON_SDK_CODE', 98, "Native clause can only be used i
n the SDK and code that is loaded through native extensions"); |
| 7616 | 7635 |
| 7617 static const ParserErrorCode NON_CONSTRUCTOR_FACTORY = const ParserErrorCode.c
on3('NON_CONSTRUCTOR_FACTORY', 99, "Only constructors can be declared to be a 'f
actory'"); | 7636 static const ParserErrorCode NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE = const Pars
erErrorCode.con3('NATIVE_FUNCTION_BODY_IN_NON_SDK_CODE', 99, "Native functions c
an only be declared in the SDK and code that is loaded through native extensions
"); |
| 7618 | 7637 |
| 7619 static const ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = const ParserErrorCo
de.con3('NON_IDENTIFIER_LIBRARY_NAME', 100, "The name of a library must be an id
entifier"); | 7638 static const ParserErrorCode NON_CONSTRUCTOR_FACTORY = const ParserErrorCode.c
on3('NON_CONSTRUCTOR_FACTORY', 100, "Only constructors can be declared to be a '
factory'"); |
| 7620 | 7639 |
| 7621 static const ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = const ParserError
Code.con3('NON_PART_OF_DIRECTIVE_IN_PART', 101, "The part-of directive must be t
he only directive in a part"); | 7640 static const ParserErrorCode NON_IDENTIFIER_LIBRARY_NAME = const ParserErrorCo
de.con3('NON_IDENTIFIER_LIBRARY_NAME', 101, "The name of a library must be an id
entifier"); |
| 7622 | 7641 |
| 7623 static const ParserErrorCode NON_USER_DEFINABLE_OPERATOR = const ParserErrorCo
de.con3('NON_USER_DEFINABLE_OPERATOR', 102, "The operator '%s' is not user defin
able"); | 7642 static const ParserErrorCode NON_PART_OF_DIRECTIVE_IN_PART = const ParserError
Code.con3('NON_PART_OF_DIRECTIVE_IN_PART', 102, "The part-of directive must be t
he only directive in a part"); |
| 7624 | 7643 |
| 7625 static const ParserErrorCode NORMAL_BEFORE_OPTIONAL_PARAMETERS = const ParserE
rrorCode.con3('NORMAL_BEFORE_OPTIONAL_PARAMETERS', 103, "Normal parameters must
occur before optional parameters"); | 7644 static const ParserErrorCode NON_USER_DEFINABLE_OPERATOR = const ParserErrorCo
de.con3('NON_USER_DEFINABLE_OPERATOR', 103, "The operator '%s' is not user defin
able"); |
| 7626 | 7645 |
| 7627 static const ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = const ParserErr
orCode.con3('POSITIONAL_AFTER_NAMED_ARGUMENT', 104, "Positional arguments must o
ccur before named arguments"); | 7646 static const ParserErrorCode NORMAL_BEFORE_OPTIONAL_PARAMETERS = const ParserE
rrorCode.con3('NORMAL_BEFORE_OPTIONAL_PARAMETERS', 104, "Normal parameters must
occur before optional parameters"); |
| 7628 | 7647 |
| 7629 static const ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = const Parser
ErrorCode.con3('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 105, "Positional parameters
must be enclosed in square brackets ('[' and ']')"); | 7648 static const ParserErrorCode POSITIONAL_AFTER_NAMED_ARGUMENT = const ParserErr
orCode.con3('POSITIONAL_AFTER_NAMED_ARGUMENT', 105, "Positional arguments must o
ccur before named arguments"); |
| 7630 | 7649 |
| 7631 static const ParserErrorCode REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR = const Pa
rserErrorCode.con3('REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR', 106, "Only factory
constructor can specify '=' redirection."); | 7650 static const ParserErrorCode POSITIONAL_PARAMETER_OUTSIDE_GROUP = const Parser
ErrorCode.con3('POSITIONAL_PARAMETER_OUTSIDE_GROUP', 106, "Positional parameters
must be enclosed in square brackets ('[' and ']')"); |
| 7632 | 7651 |
| 7633 static const ParserErrorCode SETTER_IN_FUNCTION = const ParserErrorCode.con3('
SETTER_IN_FUNCTION', 107, "Setters cannot be defined within methods or functions
"); | 7652 static const ParserErrorCode REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR = const Pa
rserErrorCode.con3('REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR', 107, "Only factory
constructor can specify '=' redirection."); |
| 7634 | 7653 |
| 7635 static const ParserErrorCode STATIC_AFTER_CONST = const ParserErrorCode.con3('
STATIC_AFTER_CONST', 108, "The modifier 'static' should be before the modifier '
const'"); | 7654 static const ParserErrorCode SETTER_IN_FUNCTION = const ParserErrorCode.con3('
SETTER_IN_FUNCTION', 108, "Setters cannot be defined within methods or functions
"); |
| 7636 | 7655 |
| 7637 static const ParserErrorCode STATIC_AFTER_FINAL = const ParserErrorCode.con3('
STATIC_AFTER_FINAL', 109, "The modifier 'static' should be before the modifier '
final'"); | 7656 static const ParserErrorCode STATIC_AFTER_CONST = const ParserErrorCode.con3('
STATIC_AFTER_CONST', 109, "The modifier 'static' should be before the modifier '
const'"); |
| 7638 | 7657 |
| 7639 static const ParserErrorCode STATIC_AFTER_VAR = const ParserErrorCode.con3('ST
ATIC_AFTER_VAR', 110, "The modifier 'static' should be before the modifier 'var'
"); | 7658 static const ParserErrorCode STATIC_AFTER_FINAL = const ParserErrorCode.con3('
STATIC_AFTER_FINAL', 110, "The modifier 'static' should be before the modifier '
final'"); |
| 7640 | 7659 |
| 7641 static const ParserErrorCode STATIC_CONSTRUCTOR = const ParserErrorCode.con3('
STATIC_CONSTRUCTOR', 111, "Constructors cannot be static"); | 7660 static const ParserErrorCode STATIC_AFTER_VAR = const ParserErrorCode.con3('ST
ATIC_AFTER_VAR', 111, "The modifier 'static' should be before the modifier 'var'
"); |
| 7642 | 7661 |
| 7643 static const ParserErrorCode STATIC_GETTER_WITHOUT_BODY = const ParserErrorCod
e.con3('STATIC_GETTER_WITHOUT_BODY', 112, "A 'static' getter must have a body"); | 7662 static const ParserErrorCode STATIC_CONSTRUCTOR = const ParserErrorCode.con3('
STATIC_CONSTRUCTOR', 112, "Constructors cannot be static"); |
| 7644 | 7663 |
| 7645 static const ParserErrorCode STATIC_OPERATOR = const ParserErrorCode.con3('STA
TIC_OPERATOR', 113, "Operators cannot be static"); | 7664 static const ParserErrorCode STATIC_GETTER_WITHOUT_BODY = const ParserErrorCod
e.con3('STATIC_GETTER_WITHOUT_BODY', 113, "A 'static' getter must have a body"); |
| 7646 | 7665 |
| 7647 static const ParserErrorCode STATIC_SETTER_WITHOUT_BODY = const ParserErrorCod
e.con3('STATIC_SETTER_WITHOUT_BODY', 114, "A 'static' setter must have a body"); | 7666 static const ParserErrorCode STATIC_OPERATOR = const ParserErrorCode.con3('STA
TIC_OPERATOR', 114, "Operators cannot be static"); |
| 7648 | 7667 |
| 7649 static const ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = const ParserErrorC
ode.con3('STATIC_TOP_LEVEL_DECLARATION', 115, "Top-level declarations cannot be
declared to be 'static'"); | 7668 static const ParserErrorCode STATIC_SETTER_WITHOUT_BODY = const ParserErrorCod
e.con3('STATIC_SETTER_WITHOUT_BODY', 115, "A 'static' setter must have a body"); |
| 7650 | 7669 |
| 7651 static const ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = const Parser
ErrorCode.con3('SWITCH_HAS_CASE_AFTER_DEFAULT_CASE', 116, "The 'default' case sh
ould be the last case in a switch statement"); | 7670 static const ParserErrorCode STATIC_TOP_LEVEL_DECLARATION = const ParserErrorC
ode.con3('STATIC_TOP_LEVEL_DECLARATION', 116, "Top-level declarations cannot be
declared to be 'static'"); |
| 7652 | 7671 |
| 7653 static const ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = const ParserE
rrorCode.con3('SWITCH_HAS_MULTIPLE_DEFAULT_CASES', 117, "The 'default' case can
only be declared once"); | 7672 static const ParserErrorCode SWITCH_HAS_CASE_AFTER_DEFAULT_CASE = const Parser
ErrorCode.con3('SWITCH_HAS_CASE_AFTER_DEFAULT_CASE', 117, "The 'default' case sh
ould be the last case in a switch statement"); |
| 7654 | 7673 |
| 7655 static const ParserErrorCode TOP_LEVEL_OPERATOR = const ParserErrorCode.con3('
TOP_LEVEL_OPERATOR', 118, "Operators must be declared within a class"); | 7674 static const ParserErrorCode SWITCH_HAS_MULTIPLE_DEFAULT_CASES = const ParserE
rrorCode.con3('SWITCH_HAS_MULTIPLE_DEFAULT_CASES', 118, "The 'default' case can
only be declared once"); |
| 7656 | 7675 |
| 7657 static const ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = const
ParserErrorCode.con3('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 119, "There i
s no '%s' to open a parameter group"); | 7676 static const ParserErrorCode TOP_LEVEL_OPERATOR = const ParserErrorCode.con3('
TOP_LEVEL_OPERATOR', 119, "Operators must be declared within a class"); |
| 7658 | 7677 |
| 7659 static const ParserErrorCode UNEXPECTED_TOKEN = const ParserErrorCode.con3('UN
EXPECTED_TOKEN', 120, "Unexpected token '%s'"); | 7678 static const ParserErrorCode UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP = const
ParserErrorCode.con3('UNEXPECTED_TERMINATOR_FOR_PARAMETER_GROUP', 120, "There i
s no '%s' to open a parameter group"); |
| 7660 | 7679 |
| 7661 static const ParserErrorCode WITH_BEFORE_EXTENDS = const ParserErrorCode.con3(
'WITH_BEFORE_EXTENDS', 121, "The extends clause must be before the with clause")
; | 7680 static const ParserErrorCode UNEXPECTED_TOKEN = const ParserErrorCode.con3('UN
EXPECTED_TOKEN', 121, "Unexpected token '%s'"); |
| 7662 | 7681 |
| 7663 static const ParserErrorCode WITH_WITHOUT_EXTENDS = const ParserErrorCode.con3
('WITH_WITHOUT_EXTENDS', 122, "The with clause cannot be used without an extends
clause"); | 7682 static const ParserErrorCode WITH_BEFORE_EXTENDS = const ParserErrorCode.con3(
'WITH_BEFORE_EXTENDS', 122, "The extends clause must be before the with clause")
; |
| 7664 | 7683 |
| 7665 static const ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = const Parse
rErrorCode.con3('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 123, "The default value o
f a named parameter should be preceeded by ':'"); | 7684 static const ParserErrorCode WITH_WITHOUT_EXTENDS = const ParserErrorCode.con3
('WITH_WITHOUT_EXTENDS', 123, "The with clause cannot be used without an extends
clause"); |
| 7666 | 7685 |
| 7667 static const ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = const
ParserErrorCode.con3('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 124, "The defau
lt value of a positional parameter should be preceeded by '='"); | 7686 static const ParserErrorCode WRONG_SEPARATOR_FOR_NAMED_PARAMETER = const Parse
rErrorCode.con3('WRONG_SEPARATOR_FOR_NAMED_PARAMETER', 124, "The default value o
f a named parameter should be preceeded by ':'"); |
| 7668 | 7687 |
| 7669 static const ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = const Pars
erErrorCode.con3('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 125, "Expected '%s' to
close parameter group"); | 7688 static const ParserErrorCode WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER = const
ParserErrorCode.con3('WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER', 125, "The defau
lt value of a positional parameter should be preceeded by '='"); |
| 7670 | 7689 |
| 7671 static const ParserErrorCode VAR_AND_TYPE = const ParserErrorCode.con3('VAR_AN
D_TYPE', 126, "Variables cannot be declared using both 'var' and a type name; re
move the 'var'"); | 7690 static const ParserErrorCode WRONG_TERMINATOR_FOR_PARAMETER_GROUP = const Pars
erErrorCode.con3('WRONG_TERMINATOR_FOR_PARAMETER_GROUP', 126, "Expected '%s' to
close parameter group"); |
| 7672 | 7691 |
| 7673 static const ParserErrorCode VAR_AS_TYPE_NAME = const ParserErrorCode.con3('VA
R_AS_TYPE_NAME', 127, "The keyword 'var' cannot be used as a type name"); | 7692 static const ParserErrorCode VAR_AND_TYPE = const ParserErrorCode.con3('VAR_AN
D_TYPE', 127, "Variables cannot be declared using both 'var' and a type name; re
move the 'var'"); |
| 7674 | 7693 |
| 7675 static const ParserErrorCode VAR_CLASS = const ParserErrorCode.con3('VAR_CLASS
', 128, "Classes cannot be declared to be 'var'"); | 7694 static const ParserErrorCode VAR_AS_TYPE_NAME = const ParserErrorCode.con3('VA
R_AS_TYPE_NAME', 128, "The keyword 'var' cannot be used as a type name"); |
| 7676 | 7695 |
| 7677 static const ParserErrorCode VAR_RETURN_TYPE = const ParserErrorCode.con3('VAR
_RETURN_TYPE', 129, "The return type cannot be 'var'"); | 7696 static const ParserErrorCode VAR_CLASS = const ParserErrorCode.con3('VAR_CLASS
', 129, "Classes cannot be declared to be 'var'"); |
| 7678 | 7697 |
| 7679 static const ParserErrorCode VAR_TYPEDEF = const ParserErrorCode.con3('VAR_TYP
EDEF', 130, "Type aliases cannot be declared to be 'var'"); | 7698 static const ParserErrorCode VAR_RETURN_TYPE = const ParserErrorCode.con3('VAR
_RETURN_TYPE', 130, "The return type cannot be 'var'"); |
| 7680 | 7699 |
| 7681 static const ParserErrorCode VOID_PARAMETER = const ParserErrorCode.con3('VOID
_PARAMETER', 131, "Parameters cannot have a type of 'void'"); | 7700 static const ParserErrorCode VAR_TYPEDEF = const ParserErrorCode.con3('VAR_TYP
EDEF', 131, "Type aliases cannot be declared to be 'var'"); |
| 7682 | 7701 |
| 7683 static const ParserErrorCode VOID_VARIABLE = const ParserErrorCode.con3('VOID_
VARIABLE', 132, "Variables cannot have a type of 'void'"); | 7702 static const ParserErrorCode VOID_PARAMETER = const ParserErrorCode.con3('VOID
_PARAMETER', 132, "Parameters cannot have a type of 'void'"); |
| 7703 |
| 7704 static const ParserErrorCode VOID_VARIABLE = const ParserErrorCode.con3('VOID_
VARIABLE', 133, "Variables cannot have a type of 'void'"); |
| 7684 | 7705 |
| 7685 static const List<ParserErrorCode> values = const [ | 7706 static const List<ParserErrorCode> values = const [ |
| 7686 ABSTRACT_CLASS_MEMBER, | 7707 ABSTRACT_CLASS_MEMBER, |
| 7687 ABSTRACT_STATIC_METHOD, | 7708 ABSTRACT_STATIC_METHOD, |
| 7688 ABSTRACT_TOP_LEVEL_FUNCTION, | 7709 ABSTRACT_TOP_LEVEL_FUNCTION, |
| 7689 ABSTRACT_TOP_LEVEL_VARIABLE, | 7710 ABSTRACT_TOP_LEVEL_VARIABLE, |
| 7690 ABSTRACT_TYPEDEF, | 7711 ABSTRACT_TYPEDEF, |
| 7691 ASSERT_DOES_NOT_TAKE_ASSIGNMENT, | 7712 ASSERT_DOES_NOT_TAKE_ASSIGNMENT, |
| 7692 ASSERT_DOES_NOT_TAKE_CASCADE, | 7713 ASSERT_DOES_NOT_TAKE_CASCADE, |
| 7693 ASSERT_DOES_NOT_TAKE_THROW, | 7714 ASSERT_DOES_NOT_TAKE_THROW, |
| 7694 ASSERT_DOES_NOT_TAKE_RETHROW, | 7715 ASSERT_DOES_NOT_TAKE_RETHROW, |
| 7695 BREAK_OUTSIDE_OF_LOOP, | 7716 BREAK_OUTSIDE_OF_LOOP, |
| 7696 CONST_AND_FINAL, | 7717 CONST_AND_FINAL, |
| 7697 CONST_AND_VAR, | 7718 CONST_AND_VAR, |
| 7698 CONST_CLASS, | 7719 CONST_CLASS, |
| 7699 CONST_CONSTRUCTOR_WITH_BODY, | 7720 CONST_CONSTRUCTOR_WITH_BODY, |
| 7700 CONST_FACTORY, | 7721 CONST_FACTORY, |
| 7701 CONST_METHOD, | 7722 CONST_METHOD, |
| 7702 CONST_TYPEDEF, | 7723 CONST_TYPEDEF, |
| 7703 CONSTRUCTOR_WITH_RETURN_TYPE, | 7724 CONSTRUCTOR_WITH_RETURN_TYPE, |
| 7704 CONTINUE_OUTSIDE_OF_LOOP, | 7725 CONTINUE_OUTSIDE_OF_LOOP, |
| 7705 CONTINUE_WITHOUT_LABEL_IN_CASE, | 7726 CONTINUE_WITHOUT_LABEL_IN_CASE, |
| 7727 DEFERRED_IMPORTS_NOT_SUPPORTED, |
| 7706 DEPRECATED_CLASS_TYPE_ALIAS, | 7728 DEPRECATED_CLASS_TYPE_ALIAS, |
| 7707 DIRECTIVE_AFTER_DECLARATION, | 7729 DIRECTIVE_AFTER_DECLARATION, |
| 7708 DUPLICATE_LABEL_IN_SWITCH_STATEMENT, | 7730 DUPLICATE_LABEL_IN_SWITCH_STATEMENT, |
| 7709 DUPLICATED_MODIFIER, | 7731 DUPLICATED_MODIFIER, |
| 7710 EQUALITY_CANNOT_BE_EQUALITY_OPERAND, | 7732 EQUALITY_CANNOT_BE_EQUALITY_OPERAND, |
| 7711 EXPECTED_CASE_OR_DEFAULT, | 7733 EXPECTED_CASE_OR_DEFAULT, |
| 7712 EXPECTED_CLASS_MEMBER, | 7734 EXPECTED_CLASS_MEMBER, |
| 7713 EXPECTED_EXECUTABLE, | 7735 EXPECTED_EXECUTABLE, |
| 7714 EXPECTED_LIST_OR_MAP_LITERAL, | 7736 EXPECTED_LIST_OR_MAP_LITERAL, |
| 7715 EXPECTED_STRING_LITERAL, | 7737 EXPECTED_STRING_LITERAL, |
| (...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9055 return trampoline(target, arguments[0], arguments[1]); | 9077 return trampoline(target, arguments[0], arguments[1]); |
| 9056 case 3: | 9078 case 3: |
| 9057 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 9079 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 9058 case 4: | 9080 case 4: |
| 9059 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 9081 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 9060 default: | 9082 default: |
| 9061 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 9083 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 9062 } | 9084 } |
| 9063 } | 9085 } |
| 9064 } | 9086 } |
| OLD | NEW |