| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 | 3 |
| 4 library engine.error; | 4 library engine.error; |
| 5 | 5 |
| 6 import 'java_core.dart'; | 6 import 'java_core.dart'; |
| 7 import 'source.dart'; | 7 import 'source.dart'; |
| 8 import 'ast.dart' show ASTNode; | 8 import 'ast.dart' show ASTNode; |
| 9 import 'scanner.dart' show Token; | 9 import 'scanner.dart' show Token; |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 * @param arguments the arguments to the error, used to compose the error mess
age | 115 * @param arguments the arguments to the error, used to compose the error mess
age |
| 116 */ | 116 */ |
| 117 void reportError2(ErrorCode errorCode, Token token, List<Object> arguments) { | 117 void reportError2(ErrorCode errorCode, Token token, List<Object> arguments) { |
| 118 _errorListener.onError(new AnalysisError.con2(_source, token.offset, token.l
ength, errorCode, [arguments])); | 118 _errorListener.onError(new AnalysisError.con2(_source, token.offset, token.l
ength, errorCode, [arguments])); |
| 119 } | 119 } |
| 120 /** | 120 /** |
| 121 * Set the source to be used when reporting errors. Setting the source to {@co
de null} will cause | 121 * Set the source to be used when reporting errors. Setting the source to {@co
de null} will cause |
| 122 * the default source to be used. | 122 * the default source to be used. |
| 123 * @param source the source to be used when reporting errors | 123 * @param source the source to be used when reporting errors |
| 124 */ | 124 */ |
| 125 void set source(Source source7) { | 125 void set source(Source source9) { |
| 126 this._source = source7 == null ? _defaultSource : source7; | 126 this._source = source9 == null ? _defaultSource : source9; |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 /** | 129 /** |
| 130 * Instances of the class {@code AnalysisError} represent an error discovered du
ring the analysis of | 130 * Instances of the class {@code AnalysisError} represent an error discovered du
ring the analysis of |
| 131 * some Dart code. | 131 * some Dart code. |
| 132 * @see AnalysisErrorListener | 132 * @see AnalysisErrorListener |
| 133 * @coverage dart.engine.error | 133 * @coverage dart.engine.error |
| 134 */ | 134 */ |
| 135 class AnalysisError { | 135 class AnalysisError { |
| 136 /** | 136 /** |
| (...skipping 21 matching lines...) Expand all Loading... |
| 158 * compilation error. | 158 * compilation error. |
| 159 */ | 159 */ |
| 160 int _length = 0; | 160 int _length = 0; |
| 161 /** | 161 /** |
| 162 * Initialize a newly created analysis error for the specified source. The err
or has no location | 162 * Initialize a newly created analysis error for the specified source. The err
or has no location |
| 163 * information. | 163 * information. |
| 164 * @param source the source for which the exception occurred | 164 * @param source the source for which the exception occurred |
| 165 * @param errorCode the error code to be associated with this error | 165 * @param errorCode the error code to be associated with this error |
| 166 * @param arguments the arguments used to build the error message | 166 * @param arguments the arguments used to build the error message |
| 167 */ | 167 */ |
| 168 AnalysisError.con1(Source source2, ErrorCode errorCode2, List<Object> argument
s) { | 168 AnalysisError.con1(Source source4, ErrorCode errorCode2, List<Object> argument
s) { |
| 169 _jtd_constructor_129_impl(source2, errorCode2, arguments); | 169 _jtd_constructor_131_impl(source4, errorCode2, arguments); |
| 170 } | 170 } |
| 171 _jtd_constructor_129_impl(Source source2, ErrorCode errorCode2, List<Object> a
rguments) { | 171 _jtd_constructor_131_impl(Source source4, ErrorCode errorCode2, List<Object> a
rguments) { |
| 172 this._source = source2; | 172 this._source = source4; |
| 173 this._errorCode = errorCode2; | 173 this._errorCode = errorCode2; |
| 174 this._message = JavaString.format(errorCode2.message, arguments); | 174 this._message = JavaString.format(errorCode2.message, arguments); |
| 175 } | 175 } |
| 176 /** | 176 /** |
| 177 * Initialize a newly created analysis error for the specified source at the g
iven location. | 177 * Initialize a newly created analysis error for the specified source at the g
iven location. |
| 178 * @param source the source for which the exception occurred | 178 * @param source the source for which the exception occurred |
| 179 * @param offset the offset of the location of the error | 179 * @param offset the offset of the location of the error |
| 180 * @param length the length of the location of the error | 180 * @param length the length of the location of the error |
| 181 * @param errorCode the error code to be associated with this error | 181 * @param errorCode the error code to be associated with this error |
| 182 * @param arguments the arguments used to build the error message | 182 * @param arguments the arguments used to build the error message |
| 183 */ | 183 */ |
| 184 AnalysisError.con2(Source source3, int offset2, int length11, ErrorCode errorC
ode3, List<Object> arguments) { | 184 AnalysisError.con2(Source source5, int offset2, int length11, ErrorCode errorC
ode3, List<Object> arguments) { |
| 185 _jtd_constructor_130_impl(source3, offset2, length11, errorCode3, arguments)
; | 185 _jtd_constructor_132_impl(source5, offset2, length11, errorCode3, arguments)
; |
| 186 } | 186 } |
| 187 _jtd_constructor_130_impl(Source source3, int offset2, int length11, ErrorCode
errorCode3, List<Object> arguments) { | 187 _jtd_constructor_132_impl(Source source5, int offset2, int length11, ErrorCode
errorCode3, List<Object> arguments) { |
| 188 this._source = source3; | 188 this._source = source5; |
| 189 this._offset = offset2; | 189 this._offset = offset2; |
| 190 this._length = length11; | 190 this._length = length11; |
| 191 this._errorCode = errorCode3; | 191 this._errorCode = errorCode3; |
| 192 this._message = JavaString.format(errorCode3.message, arguments); | 192 this._message = JavaString.format(errorCode3.message, arguments); |
| 193 } | 193 } |
| 194 /** | 194 /** |
| 195 * Return the error code associated with the error. | 195 * Return the error code associated with the error. |
| 196 * @return the error code associated with the error | 196 * @return the error code associated with the error |
| 197 */ | 197 */ |
| 198 ErrorCode get errorCode => _errorCode; | 198 ErrorCode get errorCode => _errorCode; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 221 int get hashCode { | 221 int get hashCode { |
| 222 int hashCode = _offset; | 222 int hashCode = _offset; |
| 223 hashCode ^= (_message != null) ? _message.hashCode : 0; | 223 hashCode ^= (_message != null) ? _message.hashCode : 0; |
| 224 hashCode ^= (_source != null) ? _source.hashCode : 0; | 224 hashCode ^= (_source != null) ? _source.hashCode : 0; |
| 225 return hashCode; | 225 return hashCode; |
| 226 } | 226 } |
| 227 /** | 227 /** |
| 228 * Set the source in which the error occurred to the given source. | 228 * Set the source in which the error occurred to the given source. |
| 229 * @param source the source in which the error occurred | 229 * @param source the source in which the error occurred |
| 230 */ | 230 */ |
| 231 void set source(Source source4) { | 231 void set source(Source source6) { |
| 232 this._source = source4; | 232 this._source = source6; |
| 233 } | 233 } |
| 234 String toString() { | 234 String toString() { |
| 235 JavaStringBuilder builder = new JavaStringBuilder(); | 235 JavaStringBuilder builder = new JavaStringBuilder(); |
| 236 builder.append((_source != null) ? _source.fullName : "<unknown source>"); | 236 builder.append((_source != null) ? _source.fullName : "<unknown source>"); |
| 237 builder.append("("); | 237 builder.append("("); |
| 238 builder.append(_offset); | 238 builder.append(_offset); |
| 239 builder.append(".."); | 239 builder.append(".."); |
| 240 builder.append(_offset + _length - 1); | 240 builder.append(_offset + _length - 1); |
| 241 builder.append("): "); | 241 builder.append("): "); |
| 242 builder.append(_message); | 242 builder.append(_message); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 static final CompileTimeErrorCode CONST_FORMAL_PARAMETER = new CompileTimeErro
rCode('CONST_FORMAL_PARAMETER', 13, "Parameters cannot be 'const'"); | 410 static final CompileTimeErrorCode CONST_FORMAL_PARAMETER = new CompileTimeErro
rCode('CONST_FORMAL_PARAMETER', 13, "Parameters cannot be 'const'"); |
| 411 /** | 411 /** |
| 412 * 5 Variables: A constant variable must be initialized to a compile-time cons
tant or a | 412 * 5 Variables: A constant variable must be initialized to a compile-time cons
tant or a |
| 413 * compile-time error occurs. | 413 * compile-time error occurs. |
| 414 */ | 414 */ |
| 415 static final CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE =
new CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 14, "'cons
t' variables must be constant value"); | 415 static final CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE =
new CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 14, "'cons
t' variables must be constant value"); |
| 416 /** | 416 /** |
| 417 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an | 417 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an |
| 418 * uncaught exception being thrown. | 418 * uncaught exception being thrown. |
| 419 */ | 419 */ |
| 420 static final CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = new CompileTim
eErrorCode('CONST_EVAL_THROWS_EXCEPTION', 15, ""); | 420 static final CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = new CompileTim
eErrorCode('CONST_EVAL_THROWS_EXCEPTION', 15, "'const' constructors cannot throw
exceptions"); |
| 421 /** | 421 /** |
| 422 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S<U<sub>1</sub>, &
hellip;, | 422 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S<U<sub>1</sub>, &
hellip;, |
| 423 * U<sub>m</sub>></i>, let <i>R = S</i>; It is a compile time error if <i>S
</i> is not a | 423 * U<sub>m</sub>></i>, let <i>R = S</i>; It is a compile time error if <i>S
</i> is not a |
| 424 * generic type with <i>m</i> type parameters. | 424 * generic type with <i>m</i> type parameters. |
| 425 * @param typeName the name of the type being referenced (<i>S</i>) | 425 * @param typeName the name of the type being referenced (<i>S</i>) |
| 426 * @param argumentCount the number of type arguments provided | 426 * @param argumentCount the number of type arguments provided |
| 427 * @param parameterCount the number of type parameters that were declared | 427 * @param parameterCount the number of type parameters that were declared |
| 428 */ | 428 */ |
| 429 static final CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = new Com
pileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 16, "The type '%s' is de
clared with %d type parameters, but %d type arguments were given"); | 429 static final CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = new Com
pileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 16, "The type '%s' is de
clared with %d type parameters, but %d type arguments were given"); |
| 430 /** | 430 /** |
| (...skipping 24 matching lines...) Expand all Loading... |
| 455 static final CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = new CompileTime
ErrorCode('CONST_WITH_TYPE_PARAMETERS', 20, ""); | 455 static final CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = new CompileTime
ErrorCode('CONST_WITH_TYPE_PARAMETERS', 20, ""); |
| 456 /** | 456 /** |
| 457 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of
a constant | 457 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of
a constant |
| 458 * constructor declared by the type <i>T</i>. | 458 * constructor declared by the type <i>T</i>. |
| 459 */ | 459 */ |
| 460 static final CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = new Compi
leTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR', 21, ""); | 460 static final CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = new Compi
leTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR', 21, ""); |
| 461 /** | 461 /** |
| 462 * 15.3.1 Typedef: It is a compile-time error if any default values are specif
ied in the signature | 462 * 15.3.1 Typedef: It is a compile-time error if any default values are specif
ied in the signature |
| 463 * of a function type alias. | 463 * of a function type alias. |
| 464 */ | 464 */ |
| 465 static final CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = new C
ompileTimeErrorCode('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 22, ""); | 465 static final CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = new C
ompileTimeErrorCode('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 22, "Default values
aren't allowed in typedefs"); |
| 466 /** | 466 /** |
| 467 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi
th the same name | 467 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi
th the same name |
| 468 * declared in the same scope. | 468 * declared in the same scope. |
| 469 * @param duplicateName the name of the duplicate entity | 469 * @param duplicateName the name of the duplicate entity |
| 470 */ | 470 */ |
| 471 static final CompileTimeErrorCode DUPLICATE_DEFINITION = new CompileTimeErrorC
ode('DUPLICATE_DEFINITION', 23, "The name '%s' is already defined"); | 471 static final CompileTimeErrorCode DUPLICATE_DEFINITION = new CompileTimeErrorC
ode('DUPLICATE_DEFINITION', 23, "The name '%s' is already defined"); |
| 472 /** | 472 /** |
| 473 * 7 Classes: It is a compile-time error if a class declares two members of th
e same name. | 473 * 7 Classes: It is a compile-time error if a class declares two members of th
e same name. |
| 474 */ | 474 */ |
| 475 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME = new CompileTimeError
Code('DUPLICATE_MEMBER_NAME', 24, ""); | 475 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME = new CompileTimeError
Code('DUPLICATE_MEMBER_NAME', 24, ""); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 501 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement int. | 501 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement int. |
| 502 * <p> | 502 * <p> |
| 503 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement double. | 503 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement double. |
| 504 * <p> | 504 * <p> |
| 505 * 12.3 Numbers: It is a compile-time error for any type other than the types
int and double to | 505 * 12.3 Numbers: It is a compile-time error for any type other than the types
int and double to |
| 506 * attempt to extend or implement num. | 506 * attempt to extend or implement num. |
| 507 * <p> | 507 * <p> |
| 508 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend
or implement bool. | 508 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend
or implement bool. |
| 509 * <p> | 509 * <p> |
| 510 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o
r implement String. | 510 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o
r implement String. |
| 511 * @param typeName the name of the type that cannot be extended |
| 512 * @see #IMPLEMENTS_DISALLOWED_CLASS |
| 511 */ | 513 */ |
| 512 static final CompileTimeErrorCode EXTENDS_OR_IMPLEMENTS_DISALLOWED_CLASS = new
CompileTimeErrorCode('EXTENDS_OR_IMPLEMENTS_DISALLOWED_CLASS', 29, ""); | 514 static final CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = new CompileTimeEr
rorCode('EXTENDS_DISALLOWED_CLASS', 29, "Classes cannot extend '%s'"); |
| 515 /** |
| 516 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i
mplement Null. |
| 517 * <p> |
| 518 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement int. |
| 519 * <p> |
| 520 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement double. |
| 521 * <p> |
| 522 * 12.3 Numbers: It is a compile-time error for any type other than the types
int and double to |
| 523 * attempt to extend or implement num. |
| 524 * <p> |
| 525 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend
or implement bool. |
| 526 * <p> |
| 527 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o
r implement String. |
| 528 * @param typeName the name of the type that cannot be implemented |
| 529 * @see #EXTENDS_DISALLOWED_CLASS |
| 530 */ |
| 531 static final CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = new CompileTim
eErrorCode('IMPLEMENTS_DISALLOWED_CLASS', 30, "Classes cannot implement '%s'"); |
| 513 /** | 532 /** |
| 514 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile time | 533 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile time |
| 515 * error if more than one initializer corresponding to a given instance variab
le appears in | 534 * error if more than one initializer corresponding to a given instance variab
le appears in |
| 516 * <i>k</i>’s list. | 535 * <i>k</i>’s list. |
| 517 */ | 536 */ |
| 518 static final CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS =
new CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 30, ""); | 537 static final CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS =
new CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 31, ""); |
| 519 /** | 538 /** |
| 520 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile time | 539 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile time |
| 521 * error if <i>k</i>’s initializer list contains an initializer for a final
variable <i>f</i> | 540 * error if <i>k</i>’s initializer list contains an initializer for a final
variable <i>f</i> |
| 522 * whose declaration includes an initialization expression. | 541 * whose declaration includes an initialization expression. |
| 523 */ | 542 */ |
| 524 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARA
TION = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO
N', 31, ""); | 543 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARA
TION = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO
N', 32, ""); |
| 525 /** | 544 /** |
| 526 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile time | 545 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile time |
| 527 * error if <i>k</i>’s initializer list contains an initializer for a variab
le that is initialized | 546 * error if <i>k</i>’s initializer list contains an initializer for a variab
le that is initialized |
| 528 * by means of an initializing formal of <i>k</i>. | 547 * by means of an initializing formal of <i>k</i>. |
| 529 */ | 548 */ |
| 530 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ
ER = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER',
32, ""); | 549 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ
ER = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER',
33, ""); |
| 531 /** | 550 /** |
| 532 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin
g formal is used by | 551 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin
g formal is used by |
| 533 * a function other than a non-redirecting generative constructor. | 552 * a function other than a non-redirecting generative constructor. |
| 534 */ | 553 */ |
| 535 static final CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new
CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 33, ""); | 554 static final CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new
CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 34, ""); |
| 536 /** | 555 /** |
| 537 * 5 Variables: It is a compile-time error if a final instance variable that h
as been initialized | 556 * 5 Variables: It is a compile-time error if a final instance variable that h
as been initialized |
| 538 * at its point of declaration is also initialized in a constructor. | 557 * at its point of declaration is also initialized in a constructor. |
| 539 */ | 558 */ |
| 540 static final CompileTimeErrorCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRU
CTOR = new CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO
R', 34, ""); | 559 static final CompileTimeErrorCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRU
CTOR = new CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO
R', 35, ""); |
| 541 /** | 560 /** |
| 542 * 5 Variables: It is a compile-time error if a final instance variable that h
as is initialized by | 561 * 5 Variables: It is a compile-time error if a final instance variable that h
as is initialized by |
| 543 * means of an initializing formal of a constructor is also initialized elsewh
ere in the same | 562 * means of an initializing formal of a constructor is also initialized elsewh
ere in the same |
| 544 * constructor. | 563 * constructor. |
| 545 */ | 564 */ |
| 546 static final CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = new Compi
leTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', 35, ""); | 565 static final CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = new Compi
leTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', 36, ""); |
| 547 /** | 566 /** |
| 548 * 5 Variables: It is a compile-time error if a library, static or local varia
ble <i>v</i> is | 567 * 5 Variables: It is a compile-time error if a library, static or local varia
ble <i>v</i> is |
| 549 * final and <i>v</i> is not initialized at its point of declaration. | 568 * final and <i>v</i> is not initialized at its point of declaration. |
| 550 */ | 569 */ |
| 551 static final CompileTimeErrorCode FINAL_NOT_INITIALIZED = new CompileTimeError
Code('FINAL_NOT_INITIALIZED', 36, ""); | 570 static final CompileTimeErrorCode FINAL_NOT_INITIALIZED = new CompileTimeError
Code('FINAL_NOT_INITIALIZED', 37, ""); |
| 552 /** | 571 /** |
| 553 * 7.2 Getters: It is a compile-time error if a class has both a getter and a
method with the same | 572 * 7.2 Getters: It is a compile-time error if a class has both a getter and a
method with the same |
| 554 * name. | 573 * name. |
| 555 */ | 574 */ |
| 556 static final CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = new Compi
leTimeErrorCode('GETTER_AND_METHOD_WITH_SAME_NAME', 37, ""); | 575 static final CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = new Compi
leTimeErrorCode('GETTER_AND_METHOD_WITH_SAME_NAME', 38, ""); |
| 557 /** | 576 /** |
| 558 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class includes | 577 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class includes |
| 559 * type dynamic. | 578 * type dynamic. |
| 560 */ | 579 */ |
| 561 static final CompileTimeErrorCode IMPLEMENTS_DYNAMIC = new CompileTimeErrorCod
e('IMPLEMENTS_DYNAMIC', 38, ""); | 580 static final CompileTimeErrorCode IMPLEMENTS_DYNAMIC = new CompileTimeErrorCod
e('IMPLEMENTS_DYNAMIC', 39, ""); |
| 562 /** | 581 /** |
| 563 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class <i>C</i> | 582 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class <i>C</i> |
| 564 * includes a type expression that does not denote a class available in the le
xical scope of | 583 * includes a type expression that does not denote a class available in the le
xical scope of |
| 565 * <i>C</i>. | 584 * <i>C</i>. |
| 566 * @param typeName the name of the interface that was not found | 585 * @param typeName the name of the interface that was not found |
| 567 */ | 586 */ |
| 568 static final CompileTimeErrorCode IMPLEMENTS_NON_CLASS = new CompileTimeErrorC
ode('IMPLEMENTS_NON_CLASS', 39, "Classes can only implement other classes"); | 587 static final CompileTimeErrorCode IMPLEMENTS_NON_CLASS = new CompileTimeErrorC
ode('IMPLEMENTS_NON_CLASS', 40, "Classes can only implement other classes"); |
| 569 /** | 588 /** |
| 570 * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears
more than once in | 589 * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears
more than once in |
| 571 * the implements clause of a class. | 590 * the implements clause of a class. |
| 572 */ | 591 */ |
| 573 static final CompileTimeErrorCode IMPLEMENTS_REPEATED = new CompileTimeErrorCo
de('IMPLEMENTS_REPEATED', 40, ""); | 592 static final CompileTimeErrorCode IMPLEMENTS_REPEATED = new CompileTimeErrorCo
de('IMPLEMENTS_REPEATED', 41, ""); |
| 574 /** | 593 /** |
| 575 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a | 594 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a |
| 576 * superinterface of itself. | 595 * superinterface of itself. |
| 577 */ | 596 */ |
| 578 static final CompileTimeErrorCode IMPLEMENTS_SELF = new CompileTimeErrorCode('
IMPLEMENTS_SELF', 41, ""); | 597 static final CompileTimeErrorCode IMPLEMENTS_SELF = new CompileTimeErrorCode('
IMPLEMENTS_SELF', 42, ""); |
| 579 /** | 598 /** |
| 580 * 14.1 Imports: It is a compile-time error to import two different libraries
with the same name. | 599 * 14.1 Imports: It is a compile-time error to import two different libraries
with the same name. |
| 581 */ | 600 */ |
| 582 static final CompileTimeErrorCode IMPORT_DUPLICATED_LIBRARY_NAME = new Compile
TimeErrorCode('IMPORT_DUPLICATED_LIBRARY_NAME', 42, ""); | 601 static final CompileTimeErrorCode IMPORT_DUPLICATED_LIBRARY_NAME = new Compile
TimeErrorCode('IMPORT_DUPLICATED_LIBRARY_NAME', 43, ""); |
| 583 /** | 602 /** |
| 584 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is | 603 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is |
| 585 * not a library declaration. | 604 * not a library declaration. |
| 586 */ | 605 */ |
| 587 static final CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = new CompileTimeError
Code('IMPORT_OF_NON_LIBRARY', 43, ""); | 606 static final CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = new CompileTimeError
Code('IMPORT_OF_NON_LIBRARY', 44, ""); |
| 588 /** | 607 /** |
| 589 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s
ub>k</sub></i> are | 608 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s
ub>k</sub></i> are |
| 590 * not instances of the same class <i>C</i>, for all <i>1 <= k <= n</i>. | 609 * not instances of the same class <i>C</i>, for all <i>1 <= k <= n</i>. |
| 591 */ | 610 */ |
| 592 static final CompileTimeErrorCode INCONSITENT_CASE_EXPRESSION_TYPES = new Comp
ileTimeErrorCode('INCONSITENT_CASE_EXPRESSION_TYPES', 44, ""); | 611 static final CompileTimeErrorCode INCONSITENT_CASE_EXPRESSION_TYPES = new Comp
ileTimeErrorCode('INCONSITENT_CASE_EXPRESSION_TYPES', 45, ""); |
| 593 /** | 612 /** |
| 594 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a | 613 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a |
| 595 * compile-time error if <i>id</i> is not the name of an instance variable of
the immediately | 614 * compile-time error if <i>id</i> is not the name of an instance variable of
the immediately |
| 596 * enclosing class. | 615 * enclosing class. |
| 597 */ | 616 */ |
| 598 static final CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = new Com
pileTimeErrorCode('INITIALIZER_FOR_NON_EXISTANT_FIELD', 45, ""); | 617 static final CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = new Com
pileTimeErrorCode('INITIALIZER_FOR_NON_EXISTANT_FIELD', 46, ""); |
| 599 /** | 618 /** |
| 600 * TODO(brianwilkerson) Remove this when we have decided on how to report erro
rs in compile-time | 619 * TODO(brianwilkerson) Remove this when we have decided on how to report erro
rs in compile-time |
| 601 * constants. Until then, this acts as a placeholder for more informative erro
rs. | 620 * constants. Until then, this acts as a placeholder for more informative erro
rs. |
| 602 */ | 621 */ |
| 603 static final CompileTimeErrorCode INVALID_CONSTANT = new CompileTimeErrorCode(
'INVALID_CONSTANT', 46, ""); | 622 static final CompileTimeErrorCode INVALID_CONSTANT = new CompileTimeErrorCode(
'INVALID_CONSTANT', 47, ""); |
| 604 /** | 623 /** |
| 605 * 7.6 Constructors: It is a compile-time error if the name of a constructor i
s not a constructor | 624 * 7.6 Constructors: It is a compile-time error if the name of a constructor i
s not a constructor |
| 606 * name. | 625 * name. |
| 607 */ | 626 */ |
| 608 static final CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = new CompileTimeEr
rorCode('INVALID_CONSTRUCTOR_NAME', 47, ""); | 627 static final CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = new CompileTimeEr
rorCode('INVALID_CONSTRUCTOR_NAME', 48, ""); |
| 609 /** | 628 /** |
| 610 * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of
the immediately | 629 * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of
the immediately |
| 611 * enclosing class. | 630 * enclosing class. |
| 612 */ | 631 */ |
| 613 static final CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = new Compi
leTimeErrorCode('INVALID_FACTORY_NAME_NOT_A_CLASS', 48, ""); | 632 static final CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = new Compi
leTimeErrorCode('INVALID_FACTORY_NAME_NOT_A_CLASS', 49, ""); |
| 614 /** | 633 /** |
| 615 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 634 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 616 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for | 635 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for |
| 617 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value | 636 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value |
| 618 * for <i>p</i>. | 637 * for <i>p</i>. |
| 619 */ | 638 */ |
| 620 static final CompileTimeErrorCode INVALID_OVERRIDE_DEFAULT_VALUE = new Compile
TimeErrorCode('INVALID_OVERRIDE_DEFAULT_VALUE', 49, ""); | 639 static final CompileTimeErrorCode INVALID_OVERRIDE_DEFAULT_VALUE = new Compile
TimeErrorCode('INVALID_OVERRIDE_DEFAULT_VALUE', 50, ""); |
| 621 /** | 640 /** |
| 622 * 7.1: It is a compile-time error if an instance method <i>m1</i> overrides a
n instance member | 641 * 7.1: It is a compile-time error if an instance method <i>m1</i> overrides a
n instance member |
| 623 * <i>m2</i> and <i>m1</i> does not declare all the named parameters declared
by <i>m2</i>. | 642 * <i>m2</i> and <i>m1</i> does not declare all the named parameters declared
by <i>m2</i>. |
| 624 */ | 643 */ |
| 625 static final CompileTimeErrorCode INVALID_OVERRIDE_NAMED = new CompileTimeErro
rCode('INVALID_OVERRIDE_NAMED', 50, ""); | 644 static final CompileTimeErrorCode INVALID_OVERRIDE_NAMED = new CompileTimeErro
rCode('INVALID_OVERRIDE_NAMED', 51, ""); |
| 626 /** | 645 /** |
| 627 * 7.1 Instance Methods: It is a compile-time error if an instance method m1 o
verrides an instance | 646 * 7.1 Instance Methods: It is a compile-time error if an instance method m1 o
verrides an instance |
| 628 * member <i>m2</i> and <i>m1</i> has fewer optional positional parameters tha
n <i>m2</i>. | 647 * member <i>m2</i> and <i>m1</i> has fewer optional positional parameters tha
n <i>m2</i>. |
| 629 */ | 648 */ |
| 630 static final CompileTimeErrorCode INVALID_OVERRIDE_POSITIONAL = new CompileTim
eErrorCode('INVALID_OVERRIDE_POSITIONAL', 51, ""); | 649 static final CompileTimeErrorCode INVALID_OVERRIDE_POSITIONAL = new CompileTim
eErrorCode('INVALID_OVERRIDE_POSITIONAL', 52, ""); |
| 631 /** | 650 /** |
| 632 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m
1</i> overrides an | 651 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m
1</i> overrides an |
| 633 * instance member <i>m2</i> and <i>m1</i> has a different number of required
parameters than | 652 * instance member <i>m2</i> and <i>m1</i> has a different number of required
parameters than |
| 634 * <i>m2</i>. | 653 * <i>m2</i>. |
| 635 */ | 654 */ |
| 636 static final CompileTimeErrorCode INVALID_OVERRIDE_REQUIRED = new CompileTimeE
rrorCode('INVALID_OVERRIDE_REQUIRED', 52, ""); | 655 static final CompileTimeErrorCode INVALID_OVERRIDE_REQUIRED = new CompileTimeE
rrorCode('INVALID_OVERRIDE_REQUIRED', 53, ""); |
| 637 /** | 656 /** |
| 638 * 12.10 This: It is a compile-time error if this appears in a top-level funct
ion or variable | 657 * 12.10 This: It is a compile-time error if this appears in a top-level funct
ion or variable |
| 639 * initializer, in a factory constructor, or in a static method or variable in
itializer, or in the | 658 * initializer, in a factory constructor, or in a static method or variable in
itializer, or in the |
| 640 * initializer of an instance variable. | 659 * initializer of an instance variable. |
| 641 */ | 660 */ |
| 642 static final CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = new CompileTimeE
rrorCode('INVALID_REFERENCE_TO_THIS', 53, ""); | 661 static final CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = new CompileTimeE
rrorCode('INVALID_REFERENCE_TO_THIS', 54, ""); |
| 643 /** | 662 /** |
| 644 * 12.7 Maps: It is a compile-time error if the first type argument to a map l
iteral is not | 663 * 12.7 Maps: It is a compile-time error if the first type argument to a map l
iteral is not |
| 645 * String. | 664 * String. |
| 646 */ | 665 */ |
| 647 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_FOR_KEY = new CompileT
imeErrorCode('INVALID_TYPE_ARGUMENT_FOR_KEY', 54, ""); | 666 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_FOR_KEY = new CompileT
imeErrorCode('INVALID_TYPE_ARGUMENT_FOR_KEY', 55, ""); |
| 648 /** | 667 /** |
| 649 * 12.6 Lists: It is a compile time error if the type argument of a constant l
ist literal includes | 668 * 12.6 Lists: It is a compile time error if the type argument of a constant l
ist literal includes |
| 650 * a type parameter. | 669 * a type parameter. |
| 651 */ | 670 */ |
| 652 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = new Co
mpileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 55, ""); | 671 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = new Co
mpileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 56, ""); |
| 653 /** | 672 /** |
| 654 * 12.7 Maps: It is a compile time error if the type arguments of a constant m
ap literal include a | 673 * 12.7 Maps: It is a compile time error if the type arguments of a constant m
ap literal include a |
| 655 * type parameter. | 674 * type parameter. |
| 656 */ | 675 */ |
| 657 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = new Com
pileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 56, ""); | 676 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = new Com
pileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 57, ""); |
| 658 /** | 677 /** |
| 659 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 678 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
| 660 * error if <i>k</i>'s initializer list contains an initializer for a variable
that is not an | 679 * error if <i>k</i>'s initializer list contains an initializer for a variable
that is not an |
| 661 * instance variable declared in the immediately surrounding class. | 680 * instance variable declared in the immediately surrounding class. |
| 662 */ | 681 */ |
| 663 static final CompileTimeErrorCode INVALID_VARIABLE_IN_INITIALIZER = new Compil
eTimeErrorCode('INVALID_VARIABLE_IN_INITIALIZER', 57, ""); | 682 static final CompileTimeErrorCode INVALID_VARIABLE_IN_INITIALIZER = new Compil
eTimeErrorCode('INVALID_VARIABLE_IN_INITIALIZER', 58, ""); |
| 664 /** | 683 /** |
| 665 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within | 684 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within |
| 666 * the innermost function in which <i>s<sub>b</sub></i> occurs. | 685 * the innermost function in which <i>s<sub>b</sub></i> occurs. |
| 667 * <p> | 686 * <p> |
| 668 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use | 687 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use |
| 669 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. | 688 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. |
| 670 * @param labelName the name of the unresolvable label | 689 * @param labelName the name of the unresolvable label |
| 671 */ | 690 */ |
| 672 static final CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = new CompileTimeErrorC
ode('LABEL_IN_OUTER_SCOPE', 58, "Cannot reference label '%s' declared in an oute
r method"); | 691 static final CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = new CompileTimeErrorC
ode('LABEL_IN_OUTER_SCOPE', 59, "Cannot reference label '%s' declared in an oute
r method"); |
| 673 /** | 692 /** |
| 674 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within | 693 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within |
| 675 * the innermost function in which <i>s<sub>b</sub></i> occurs. | 694 * the innermost function in which <i>s<sub>b</sub></i> occurs. |
| 676 * <p> | 695 * <p> |
| 677 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use | 696 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use |
| 678 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. | 697 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. |
| 679 * @param labelName the name of the unresolvable label | 698 * @param labelName the name of the unresolvable label |
| 680 */ | 699 */ |
| 681 static final CompileTimeErrorCode LABEL_UNDEFINED = new CompileTimeErrorCode('
LABEL_UNDEFINED', 59, "Cannot reference undefined label '%s'"); | 700 static final CompileTimeErrorCode LABEL_UNDEFINED = new CompileTimeErrorCode('
LABEL_UNDEFINED', 60, "Cannot reference undefined label '%s'"); |
| 682 /** | 701 /** |
| 683 * 7 Classes: It is a compile time error if a class <i>C</i> declares a member
with the same name | 702 * 7 Classes: It is a compile time error if a class <i>C</i> declares a member
with the same name |
| 684 * as <i>C</i>. | 703 * as <i>C</i>. |
| 685 */ | 704 */ |
| 686 static final CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = new CompileTimeErro
rCode('MEMBER_WITH_CLASS_NAME', 60, ""); | 705 static final CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = new CompileTimeErro
rCode('MEMBER_WITH_CLASS_NAME', 61, ""); |
| 687 /** | 706 /** |
| 688 * 9 Mixins: It is a compile-time error if a declared or derived mixin explici
tly declares a | 707 * 9 Mixins: It is a compile-time error if a declared or derived mixin explici
tly declares a |
| 689 * constructor. | 708 * constructor. |
| 690 */ | 709 */ |
| 691 static final CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = new CompileTime
ErrorCode('MIXIN_DECLARES_CONSTRUCTOR', 61, ""); | 710 static final CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = new CompileTime
ErrorCode('MIXIN_DECLARES_CONSTRUCTOR', 62, ""); |
| 692 /** | 711 /** |
| 693 * 9 Mixins: It is a compile-time error if a mixin is derived from a class who
se superclass is not | 712 * 9 Mixins: It is a compile-time error if a mixin is derived from a class who
se superclass is not |
| 694 * Object. | 713 * Object. |
| 695 */ | 714 */ |
| 696 static final CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = new Compile
TimeErrorCode('MIXIN_INHERITS_FROM_NOT_OBJECT', 62, ""); | 715 static final CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = new Compile
TimeErrorCode('MIXIN_INHERITS_FROM_NOT_OBJECT', 63, ""); |
| 697 /** | 716 /** |
| 698 * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not deno
te a class or mixin | 717 * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not deno
te a class or mixin |
| 699 * available in the immediately enclosing scope. | 718 * available in the immediately enclosing scope. |
| 700 * @param typeName the name of the mixin that was not found | 719 * @param typeName the name of the mixin that was not found |
| 701 */ | 720 */ |
| 702 static final CompileTimeErrorCode MIXIN_OF_NON_CLASS = new CompileTimeErrorCod
e('MIXIN_OF_NON_CLASS', 63, "Classes can only mixin other classes"); | 721 static final CompileTimeErrorCode MIXIN_OF_NON_CLASS = new CompileTimeErrorCod
e('MIXIN_OF_NON_CLASS', 64, "Classes can only mixin other classes"); |
| 703 /** | 722 /** |
| 704 * 9.1 Mixin Application: If <i>M</i> is a class, it is a compile time error i
f a well formed | 723 * 9.1 Mixin Application: If <i>M</i> is a class, it is a compile time error i
f a well formed |
| 705 * mixin cannot be derived from <i>M</i>. | 724 * mixin cannot be derived from <i>M</i>. |
| 706 */ | 725 */ |
| 707 static final CompileTimeErrorCode MIXIN_OF_NON_MIXIN = new CompileTimeErrorCod
e('MIXIN_OF_NON_MIXIN', 64, ""); | 726 static final CompileTimeErrorCode MIXIN_OF_NON_MIXIN = new CompileTimeErrorCod
e('MIXIN_OF_NON_MIXIN', 65, ""); |
| 708 /** | 727 /** |
| 709 * 9 Mixins: It is a compile-time error if a declared or derived mixin refers
to super. | 728 * 9 Mixins: It is a compile-time error if a declared or derived mixin refers
to super. |
| 710 */ | 729 */ |
| 711 static final CompileTimeErrorCode MIXIN_REFERENCES_SUPER = new CompileTimeErro
rCode('MIXIN_REFERENCES_SUPER', 65, ""); | 730 static final CompileTimeErrorCode MIXIN_REFERENCES_SUPER = new CompileTimeErro
rCode('MIXIN_REFERENCES_SUPER', 66, ""); |
| 712 /** | 731 /** |
| 713 * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not deno
te a class available | 732 * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not deno
te a class available |
| 714 * in the immediately enclosing scope. | 733 * in the immediately enclosing scope. |
| 715 */ | 734 */ |
| 716 static final CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = new Compil
eTimeErrorCode('MIXIN_WITH_NON_CLASS_SUPERCLASS', 66, ""); | 735 static final CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = new Compil
eTimeErrorCode('MIXIN_WITH_NON_CLASS_SUPERCLASS', 67, ""); |
| 717 /** | 736 /** |
| 718 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Th
en <i>k</i> may | 737 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Th
en <i>k</i> may |
| 719 * include at most one superinitializer in its initializer list or a compile t
ime error occurs. | 738 * include at most one superinitializer in its initializer list or a compile t
ime error occurs. |
| 720 */ | 739 */ |
| 721 static final CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = new CompileTim
eErrorCode('MULTIPLE_SUPER_INITIALIZERS', 67, ""); | 740 static final CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = new CompileTim
eErrorCode('MULTIPLE_SUPER_INITIALIZERS', 68, ""); |
| 722 /** | 741 /** |
| 723 * 12.11.1 New: It is a compile time error if <i>S</i> is not a generic type w
ith <i>m</i> type | 742 * 12.11.1 New: It is a compile time error if <i>S</i> is not a generic type w
ith <i>m</i> type |
| 724 * parameters. | 743 * parameters. |
| 725 * @param typeName the name of the type being referenced (<i>S</i>) | 744 * @param typeName the name of the type being referenced (<i>S</i>) |
| 726 * @param argumentCount the number of type arguments provided | 745 * @param argumentCount the number of type arguments provided |
| 727 * @param parameterCount the number of type parameters that were declared | 746 * @param parameterCount the number of type parameters that were declared |
| 728 */ | 747 */ |
| 729 static final CompileTimeErrorCode NEW_WITH_INVALID_TYPE_PARAMETERS = new Compi
leTimeErrorCode('NEW_WITH_INVALID_TYPE_PARAMETERS', 68, "The type '%s' is declar
ed with %d type parameters, but %d type arguments were given"); | 748 static final CompileTimeErrorCode NEW_WITH_INVALID_TYPE_PARAMETERS = new Compi
leTimeErrorCode('NEW_WITH_INVALID_TYPE_PARAMETERS', 69, "The type '%s' is declar
ed with %d type parameters, but %d type arguments were given"); |
| 730 /** | 749 /** |
| 731 * 13.2 Expression Statements: It is a compile-time error if a non-constant ma
p literal that has | 750 * 13.2 Expression Statements: It is a compile-time error if a non-constant ma
p literal that has |
| 732 * no explicit type arguments appears in a place where a statement is expected
. | 751 * no explicit type arguments appears in a place where a statement is expected
. |
| 733 */ | 752 */ |
| 734 static final CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = new
CompileTimeErrorCode('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 69, ""); | 753 static final CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = new
CompileTimeErrorCode('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 70, ""); |
| 735 /** | 754 /** |
| 736 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … | 755 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … |
| 737 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … | 756 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … |
| 738 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form | 757 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form |
| 739 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: | 758 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: |
| 740 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: | 759 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: |
| 741 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not | 760 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not |
| 742 * compile-time constants, for all <i>1 <= k <= n</i>. | 761 * compile-time constants, for all <i>1 <= k <= n</i>. |
| 743 */ | 762 */ |
| 744 static final CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = new CompileTi
meErrorCode('NON_CONSTANT_CASE_EXPRESSION', 70, "Case expressions must be consta
nt"); | 763 static final CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = new CompileTi
meErrorCode('NON_CONSTANT_CASE_EXPRESSION', 71, "Case expressions must be consta
nt"); |
| 745 /** | 764 /** |
| 746 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional | 765 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional |
| 747 * parameter is not a compile-time constant. | 766 * parameter is not a compile-time constant. |
| 748 */ | 767 */ |
| 749 static final CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = new CompileTime
ErrorCode('NON_CONSTANT_DEFAULT_VALUE', 71, "Default values of an optional param
eter must be constant"); | 768 static final CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = new CompileTime
ErrorCode('NON_CONSTANT_DEFAULT_VALUE', 72, "Default values of an optional param
eter must be constant"); |
| 750 /** | 769 /** |
| 751 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a | 770 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a |
| 752 * compile-time constant. | 771 * compile-time constant. |
| 753 */ | 772 */ |
| 754 static final CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = new CompileTimeE
rrorCode('NON_CONSTANT_LIST_ELEMENT', 72, "'const' lists must have all constant
values"); | 773 static final CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = new CompileTimeE
rrorCode('NON_CONSTANT_LIST_ELEMENT', 73, "'const' lists must have all constant
values"); |
| 755 /** | 774 /** |
| 756 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map | 775 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
| 757 * literal is not a compile-time constant. | 776 * literal is not a compile-time constant. |
| 758 */ | 777 */ |
| 759 static final CompileTimeErrorCode NON_CONSTANT_MAP_KEY = new CompileTimeErrorC
ode('NON_CONSTANT_MAP_KEY', 73, "The keys in a 'const' map must be constant"); | 778 static final CompileTimeErrorCode NON_CONSTANT_MAP_KEY = new CompileTimeErrorC
ode('NON_CONSTANT_MAP_KEY', 74, "The keys in a 'const' map must be constant"); |
| 760 /** | 779 /** |
| 761 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map | 780 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
| 762 * literal is not a compile-time constant. | 781 * literal is not a compile-time constant. |
| 763 */ | 782 */ |
| 764 static final CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = new CompileTimeErro
rCode('NON_CONSTANT_MAP_VALUE', 74, "The values in a 'const' map must be constan
t"); | 783 static final CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = new CompileTimeErro
rCode('NON_CONSTANT_MAP_VALUE', 75, "The values in a 'const' map must be constan
t"); |
| 765 /** | 784 /** |
| 766 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a | 785 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a |
| 767 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. | 786 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. |
| 768 */ | 787 */ |
| 769 static final CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = new Comp
ileTimeErrorCode('NON_CONSTANT_VALUE_IN_INITIALIZER', 75, ""); | 788 static final CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = new Comp
ileTimeErrorCode('NON_CONSTANT_VALUE_IN_INITIALIZER', 76, ""); |
| 770 /** | 789 /** |
| 771 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f
or class Object. | 790 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f
or class Object. |
| 772 */ | 791 */ |
| 773 static final CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = new Com
pileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 76, ""); | 792 static final CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = new Com
pileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 77, ""); |
| 774 /** | 793 /** |
| 775 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete
r in an operator. | 794 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete
r in an operator. |
| 776 */ | 795 */ |
| 777 static final CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = new Compile
TimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', 77, ""); | 796 static final CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = new Compile
TimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', 78, ""); |
| 778 /** | 797 /** |
| 779 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an | 798 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an |
| 780 * interface member <i>m2</i> and <i>m1</i> does not declare all the named par
ameters declared by | 799 * interface member <i>m2</i> and <i>m1</i> does not declare all the named par
ameters declared by |
| 781 * <i>m2</i> in the same order. | 800 * <i>m2</i> in the same order. |
| 782 */ | 801 */ |
| 783 static final CompileTimeErrorCode OVERRIDE_MISSING_NAMED_PARAMETERS = new Comp
ileTimeErrorCode('OVERRIDE_MISSING_NAMED_PARAMETERS', 78, ""); | 802 static final CompileTimeErrorCode OVERRIDE_MISSING_NAMED_PARAMETERS = new Comp
ileTimeErrorCode('OVERRIDE_MISSING_NAMED_PARAMETERS', 79, ""); |
| 784 /** | 803 /** |
| 785 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an | 804 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an |
| 786 * interface member <i>m2</i> and <i>m1</i> has a different number of required
parameters than | 805 * interface member <i>m2</i> and <i>m1</i> has a different number of required
parameters than |
| 787 * <i>m2</i>. | 806 * <i>m2</i>. |
| 788 */ | 807 */ |
| 789 static final CompileTimeErrorCode OVERRIDE_MISSING_REQUIRED_PARAMETERS = new C
ompileTimeErrorCode('OVERRIDE_MISSING_REQUIRED_PARAMETERS', 79, ""); | 808 static final CompileTimeErrorCode OVERRIDE_MISSING_REQUIRED_PARAMETERS = new C
ompileTimeErrorCode('OVERRIDE_MISSING_REQUIRED_PARAMETERS', 80, ""); |
| 790 /** | 809 /** |
| 791 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part | 810 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part |
| 792 * declaration. | 811 * declaration. |
| 793 */ | 812 */ |
| 794 static final CompileTimeErrorCode PART_OF_NON_PART = new CompileTimeErrorCode(
'PART_OF_NON_PART', 80, ""); | 813 static final CompileTimeErrorCode PART_OF_NON_PART = new CompileTimeErrorCode(
'PART_OF_NON_PART', 81, ""); |
| 795 /** | 814 /** |
| 796 * 14.1 Imports: It is a compile-time error if the current library declares a
top-level member | 815 * 14.1 Imports: It is a compile-time error if the current library declares a
top-level member |
| 797 * named <i>p</i>. | 816 * named <i>p</i>. |
| 798 */ | 817 */ |
| 799 static final CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = new
CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 81, ""); | 818 static final CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = new
CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 82, ""); |
| 800 /** | 819 /** |
| 801 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o
ptional parameter | 820 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o
ptional parameter |
| 802 * begins with an ‘_’ character. | 821 * begins with an ‘_’ character. |
| 803 */ | 822 */ |
| 804 static final CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = new CompileTime
ErrorCode('PRIVATE_OPTIONAL_PARAMETER', 82, ""); | 823 static final CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = new CompileTime
ErrorCode('PRIVATE_OPTIONAL_PARAMETER', 83, ""); |
| 805 /** | 824 /** |
| 806 * 12.1 Constants: It is a compile-time error if the value of a compile-time c
onstant expression | 825 * 12.1 Constants: It is a compile-time error if the value of a compile-time c
onstant expression |
| 807 * depends on itself. | 826 * depends on itself. |
| 808 */ | 827 */ |
| 809 static final CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = new Compil
eTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', 83, ""); | 828 static final CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = new Compil
eTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', 84, ""); |
| 810 /** | 829 /** |
| 811 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr
uctor redirects to | 830 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr
uctor redirects to |
| 812 * itself, either directly or indirectly via a sequence of redirections. | 831 * itself, either directly or indirectly via a sequence of redirections. |
| 813 */ | 832 */ |
| 814 static final CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = new CompileTime
ErrorCode('RECURSIVE_FACTORY_REDIRECT', 84, ""); | 833 static final CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = new CompileTime
ErrorCode('RECURSIVE_FACTORY_REDIRECT', 85, ""); |
| 815 /** | 834 /** |
| 816 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi
a a chain of | 835 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi
a a chain of |
| 817 * references that does not include a class type. | 836 * references that does not include a class type. |
| 818 */ | 837 */ |
| 819 static final CompileTimeErrorCode RECURSIVE_FUNCTION_TYPE_ALIAS = new CompileT
imeErrorCode('RECURSIVE_FUNCTION_TYPE_ALIAS', 85, ""); | 838 static final CompileTimeErrorCode RECURSIVE_FUNCTION_TYPE_ALIAS = new CompileT
imeErrorCode('RECURSIVE_FUNCTION_TYPE_ALIAS', 86, ""); |
| 820 /** | 839 /** |
| 821 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. | 840 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. |
| 822 */ | 841 */ |
| 823 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = new Compil
eTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', 86, ""); | 842 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = new Compil
eTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', 87, ""); |
| 824 /** | 843 /** |
| 825 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 844 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 826 * <i>k’</i> is not a constant constructor. | 845 * <i>k’</i> is not a constant constructor. |
| 827 */ | 846 */ |
| 828 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp
ileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 87, ""); | 847 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp
ileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 88, ""); |
| 829 /** | 848 /** |
| 830 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name | 849 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name |
| 831 * <i>v</i> or the name <i>v=</i>. | 850 * <i>v</i> or the name <i>v=</i>. |
| 832 */ | 851 */ |
| 833 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE
R = new CompileTimeErrorCode('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER', 88
, ""); | 852 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE
R = new CompileTimeErrorCode('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER', 89
, ""); |
| 834 /** | 853 /** |
| 835 * 16.1.1 Reserved Words: A reserved word may not be used as an identifier; it
is a compile-time | 854 * 16.1.1 Reserved Words: A reserved word may not be used as an identifier; it
is a compile-time |
| 836 * error if a reserved word is used where an identifier is expected. | 855 * error if a reserved word is used where an identifier is expected. |
| 837 */ | 856 */ |
| 838 static final CompileTimeErrorCode RESERVED_WORD_AS_IDENTIFIER = new CompileTim
eErrorCode('RESERVED_WORD_AS_IDENTIFIER', 89, ""); | 857 static final CompileTimeErrorCode RESERVED_WORD_AS_IDENTIFIER = new CompileTim
eErrorCode('RESERVED_WORD_AS_IDENTIFIER', 90, ""); |
| 839 /** | 858 /** |
| 840 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> | 859 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> |
| 841 * appears in a generative constructor. | 860 * appears in a generative constructor. |
| 842 */ | 861 */ |
| 843 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', 90, ""); | 862 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', 91, ""); |
| 844 /** | 863 /** |
| 845 * 6.1 Function Declarations: It is a compile-time error to preface a function
declaration with | 864 * 6.1 Function Declarations: It is a compile-time error to preface a function
declaration with |
| 846 * the built-in identifier static. | 865 * the built-in identifier static. |
| 847 */ | 866 */ |
| 848 static final CompileTimeErrorCode STATIC_TOP_LEVEL_FUNCTION = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_FUNCTION', 91, ""); | 867 static final CompileTimeErrorCode STATIC_TOP_LEVEL_FUNCTION = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_FUNCTION', 92, ""); |
| 849 /** | 868 /** |
| 850 * 5 Variables: It is a compile-time error to preface a top level variable dec
laration with the | 869 * 5 Variables: It is a compile-time error to preface a top level variable dec
laration with the |
| 851 * built-in identifier static. | 870 * built-in identifier static. |
| 852 */ | 871 */ |
| 853 static final CompileTimeErrorCode STATIC_TOP_LEVEL_VARIABLE = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_VARIABLE', 92, ""); | 872 static final CompileTimeErrorCode STATIC_TOP_LEVEL_VARIABLE = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_VARIABLE', 93, ""); |
| 854 /** | 873 /** |
| 855 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 874 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
| 856 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 875 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
| 857 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation | 876 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation |
| 858 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or | 877 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or |
| 859 * initializer list, in class Object, in a factory constructor, or in a static
method or variable | 878 * initializer list, in class Object, in a factory constructor, or in a static
method or variable |
| 860 * initializer. | 879 * initializer. |
| 861 */ | 880 */ |
| 862 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode('SUPER_IN_INVALID_CONTEXT', 93, ""); | 881 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode('SUPER_IN_INVALID_CONTEXT', 94, ""); |
| 863 /** | 882 /** |
| 864 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 883 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
| 865 * error if a generative constructor of class Object includes a superinitializ
er. | 884 * error if a generative constructor of class Object includes a superinitializ
er. |
| 866 */ | 885 */ |
| 867 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode('SUPER_INITIALIZER_IN_OBJECT', 94, ""); | 886 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode('SUPER_INITIALIZER_IN_OBJECT', 95, ""); |
| 868 /** | 887 /** |
| 869 * 12.8 Throw: It is a compile-time error if an expression of the form throw;
is not enclosed | 888 * 12.8 Throw: It is a compile-time error if an expression of the form throw;
is not enclosed |
| 870 * within a on-catch clause. | 889 * within a on-catch clause. |
| 871 */ | 890 */ |
| 872 static final CompileTimeErrorCode THROW_WITHOUT_VALUE_OUTSIDE_ON = new Compile
TimeErrorCode('THROW_WITHOUT_VALUE_OUTSIDE_ON', 95, ""); | 891 static final CompileTimeErrorCode THROW_WITHOUT_VALUE_OUTSIDE_ON = new Compile
TimeErrorCode('THROW_WITHOUT_VALUE_OUTSIDE_ON', 96, ""); |
| 873 /** | 892 /** |
| 874 * 12.11 Instance Creation: It is a compile-time error if a constructor of a n
on-generic type | 893 * 12.11 Instance Creation: It is a compile-time error if a constructor of a n
on-generic type |
| 875 * invoked by a new expression or a constant object expression is passed any t
ype arguments. | 894 * invoked by a new expression or a constant object expression is passed any t
ype arguments. |
| 876 * <p> | 895 * <p> |
| 877 * 12.32 Type Cast: It is a compile-time error if <i>T</i> is a parameterized
type of the form | 896 * 12.32 Type Cast: It is a compile-time error if <i>T</i> is a parameterized
type of the form |
| 878 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with | 897 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with |
| 879 * <i>n</i> type parameters. | 898 * <i>n</i> type parameters. |
| 880 */ | 899 */ |
| 881 static final CompileTimeErrorCode TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS = new C
ompileTimeErrorCode('TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS', 96, ""); | 900 static final CompileTimeErrorCode TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS = new C
ompileTimeErrorCode('TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS', 97, ""); |
| 882 /** | 901 /** |
| 883 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 902 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
| 884 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 903 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
| 885 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 904 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
| 886 * (respectively <i>S.id</i>) | 905 * (respectively <i>S.id</i>) |
| 887 */ | 906 */ |
| 888 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 97, ""); | 907 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 98, ""); |
| 889 /** | 908 /** |
| 890 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Ea
ch final instance | 909 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Ea
ch final instance |
| 891 * variable <i>f</i> declared in the immediately enclosing class must have an
initializer in | 910 * variable <i>f</i> declared in the immediately enclosing class must have an
initializer in |
| 892 * <i>k</i>'s initializer list unless it has already been initialized by one o
f the following | 911 * <i>k</i>'s initializer list unless it has already been initialized by one o
f the following |
| 893 * means: | 912 * means: |
| 894 * <ol> | 913 * <ol> |
| 895 * <li>Initialization at the declaration of <i>f</i>. | 914 * <li>Initialization at the declaration of <i>f</i>. |
| 896 * <li>Initialization by means of an initializing formal of <i>k</i>. | 915 * <li>Initialization by means of an initializing formal of <i>k</i>. |
| 897 * </ol> | 916 * </ol> |
| 898 * or a compile-time error occurs. | 917 * or a compile-time error occurs. |
| 899 */ | 918 */ |
| 900 static final CompileTimeErrorCode UNINITIALIZED_FINAL_FIELD = new CompileTimeE
rrorCode('UNINITIALIZED_FINAL_FIELD', 98, ""); | 919 static final CompileTimeErrorCode UNINITIALIZED_FINAL_FIELD = new CompileTimeE
rrorCode('UNINITIALIZED_FINAL_FIELD', 99, ""); |
| 901 /** | 920 /** |
| 902 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if | 921 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if |
| 903 * <i>x</i> involves string interpolation. | 922 * <i>x</i> involves string interpolation. |
| 904 * <p> | 923 * <p> |
| 905 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if | 924 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if |
| 906 * <i>s</i> involves string interpolation. | 925 * <i>s</i> involves string interpolation. |
| 907 * <p> | 926 * <p> |
| 908 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is | 927 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is |
| 909 * not a compile-time constant, or if <i>x</i> involves string interpolation. | 928 * not a compile-time constant, or if <i>x</i> involves string interpolation. |
| 910 */ | 929 */ |
| 911 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode('URI_WITH_INTERPOLATION', 99, "URIs cannot use string interpolation"); | 930 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode('URI_WITH_INTERPOLATION', 100, "URIs cannot use string interpolation"); |
| 912 /** | 931 /** |
| 913 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is | 932 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is |
| 914 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the | 933 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the |
| 915 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. | 934 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. |
| 916 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a | 935 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a |
| 917 * compile time error if the arity of the user-declared operator ~ is not 0. | 936 * compile time error if the arity of the user-declared operator ~ is not 0. |
| 918 */ | 937 */ |
| 919 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 100, ""); | 938 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 101, ""); |
| 920 /** | 939 /** |
| 921 * 7.3 Setters: It is a compile-time error if a setter’s formal parameter li
st does not include | 940 * 7.3 Setters: It is a compile-time error if a setter’s formal parameter li
st does not include |
| 922 * exactly one required formal parameter <i>p</i>. | 941 * exactly one required formal parameter <i>p</i>. |
| 923 */ | 942 */ |
| 924 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 101, ""); | 943 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 102, ""); |
| 925 /** | 944 /** |
| 926 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g
eneric type with | 945 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g
eneric type with |
| 927 * <i>n</i> type parameters invoked by a new expression or a constant object e
xpression is passed | 946 * <i>n</i> type parameters invoked by a new expression or a constant object e
xpression is passed |
| 928 * <i>m</i> type arguments where <i>m != n</i>. | 947 * <i>m</i> type arguments where <i>m != n</i>. |
| 929 * <p> | 948 * <p> |
| 930 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized
type of the form | 949 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized
type of the form |
| 931 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with | 950 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with |
| 932 * <i>n</i> type parameters. | 951 * <i>n</i> type parameters. |
| 933 */ | 952 */ |
| 934 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile
TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 102, ""); | 953 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile
TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 103, ""); |
| 935 static final List<CompileTimeErrorCode> values = [AMBIGUOUS_EXPORT, AMBIGUOUS_
IMPORT, ARGUMENT_DEFINITION_TEST_NON_PARAMETER, BUILT_IN_IDENTIFIER_AS_TYPE, BUI
LT_IN_IDENTIFIER_AS_TYPE_NAME, BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, BUILT_IN_IDE
NTIFIER_AS_TYPE_VARIABLE_NAME, CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, COMPILE_T
IME_CONSTANT_RAISES_EXCEPTION, COMPILE_TIME_CONSTANT_RAISES_EXCEPTION_DIVIDE_BY_
ZERO, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTING_CONSTRUCTOR_NAME_AND_M
ETHOD, CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, CONST_FORMAL_PARAMETER, CONST_INI
TIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_THROWS_EXCEPTION, CONST_WITH_INVALI
D_TYPE_PARAMETERS, CONST_WITH_NON_CONST, CONST_WITH_NON_CONSTANT_ARGUMENT, CONST
_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS, CONST_WITH_UNDEFINED_CONSTRUCTOR, DE
FAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_DEFINITION, DUPLICATE_MEMBER_NAME,
DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED_ARGUMENT, EXPORT_OF_NON_
LIBRARY, EXTENDS_NON_CLASS, EXTENDS_OR_IMPLEMENTS_DISALLOWED_CLASS, FIELD_INITIA
LIZED_BY_MULTIPLE_INITIALIZERS, FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION
, FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, FIELD_INITIALIZER_OUTSIDE_CONS
TRUCTOR, FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, FINAL_INITIALIZED_MUL
TIPLE_TIMES, FINAL_NOT_INITIALIZED, GETTER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS
_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMENTS_REPEATED, IMPLEMENTS_SELF, IMPORT_DUP
LICATED_LIBRARY_NAME, IMPORT_OF_NON_LIBRARY, INCONSITENT_CASE_EXPRESSION_TYPES,
INITIALIZER_FOR_NON_EXISTANT_FIELD, INVALID_CONSTANT, INVALID_CONSTRUCTOR_NAME,
INVALID_FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALUE, INVALID_OVERRI
DE_NAMED, INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRED, INVALID_REFERE
NCE_TO_THIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUMENT_IN_CONST_LIST,
INVALID_TYPE_ARGUMENT_IN_CONST_MAP, INVALID_VARIABLE_IN_INITIALIZER, LABEL_IN_O
UTER_SCOPE, LABEL_UNDEFINED, MEMBER_WITH_CLASS_NAME, MIXIN_DECLARES_CONSTRUCTOR,
MIXIN_INHERITS_FROM_NOT_OBJECT, MIXIN_OF_NON_CLASS, MIXIN_OF_NON_MIXIN, MIXIN_R
EFERENCES_SUPER, MIXIN_WITH_NON_CLASS_SUPERCLASS, MULTIPLE_SUPER_INITIALIZERS, N
EW_WITH_INVALID_TYPE_PARAMETERS, NON_CONST_MAP_AS_EXPRESSION_STATEMENT, NON_CONS
TANT_CASE_EXPRESSION, NON_CONSTANT_DEFAULT_VALUE, NON_CONSTANT_LIST_ELEMENT, NON
_CONSTANT_MAP_KEY, NON_CONSTANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_INITIALIZER, OB
JECT_CANNOT_EXTEND_ANOTHER_CLASS, OPTIONAL_PARAMETER_IN_OPERATOR, OVERRIDE_MISSI
NG_NAMED_PARAMETERS, OVERRIDE_MISSING_REQUIRED_PARAMETERS, PART_OF_NON_PART, PRE
FIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, PRIVATE_OPTIONAL_PARAMETER, RECURSIVE_COMPIL
E_TIME_CONSTANT, RECURSIVE_FACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECU
RSIVE_INTERFACE_INHERITANCE, REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_DEC
LARED_VARIABLE_IN_INITIALIZER, RESERVED_WORD_AS_IDENTIFIER, RETURN_IN_GENERATIVE
_CONSTRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVEL_VARIABLE, SUPER_IN_INV
ALID_CONTEXT, SUPER_INITIALIZER_IN_OBJECT, THROW_WITHOUT_VALUE_OUTSIDE_ON, TYPE_
ARGUMENTS_FOR_NON_GENERIC_CLASS, UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, UNINITIAL
IZED_FINAL_FIELD, URI_WITH_INTERPOLATION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATO
R, WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, WRONG_NUMBER_OF_TYPE_ARGUMENTS]; | 954 static final List<CompileTimeErrorCode> values = [AMBIGUOUS_EXPORT, AMBIGUOUS_
IMPORT, ARGUMENT_DEFINITION_TEST_NON_PARAMETER, BUILT_IN_IDENTIFIER_AS_TYPE, BUI
LT_IN_IDENTIFIER_AS_TYPE_NAME, BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, BUILT_IN_IDE
NTIFIER_AS_TYPE_VARIABLE_NAME, CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, COMPILE_T
IME_CONSTANT_RAISES_EXCEPTION, COMPILE_TIME_CONSTANT_RAISES_EXCEPTION_DIVIDE_BY_
ZERO, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTING_CONSTRUCTOR_NAME_AND_M
ETHOD, CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, CONST_FORMAL_PARAMETER, CONST_INI
TIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_THROWS_EXCEPTION, CONST_WITH_INVALI
D_TYPE_PARAMETERS, CONST_WITH_NON_CONST, CONST_WITH_NON_CONSTANT_ARGUMENT, CONST
_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS, CONST_WITH_UNDEFINED_CONSTRUCTOR, DE
FAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_DEFINITION, DUPLICATE_MEMBER_NAME,
DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED_ARGUMENT, EXPORT_OF_NON_
LIBRARY, EXTENDS_NON_CLASS, EXTENDS_DISALLOWED_CLASS, IMPLEMENTS_DISALLOWED_CLAS
S, FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, FIELD_INITIALIZED_IN_INITIALIZER_
AND_DECLARATION, FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, FIELD_INITIALIZ
ER_OUTSIDE_CONSTRUCTOR, FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, FINAL_
INITIALIZED_MULTIPLE_TIMES, FINAL_NOT_INITIALIZED, GETTER_AND_METHOD_WITH_SAME_N
AME, IMPLEMENTS_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMENTS_REPEATED, IMPLEMENTS_S
ELF, IMPORT_DUPLICATED_LIBRARY_NAME, IMPORT_OF_NON_LIBRARY, INCONSITENT_CASE_EXP
RESSION_TYPES, INITIALIZER_FOR_NON_EXISTANT_FIELD, INVALID_CONSTANT, INVALID_CON
STRUCTOR_NAME, INVALID_FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALUE,
INVALID_OVERRIDE_NAMED, INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRED,
INVALID_REFERENCE_TO_THIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUMENT
_IN_CONST_LIST, INVALID_TYPE_ARGUMENT_IN_CONST_MAP, INVALID_VARIABLE_IN_INITIALI
ZER, LABEL_IN_OUTER_SCOPE, LABEL_UNDEFINED, MEMBER_WITH_CLASS_NAME, MIXIN_DECLAR
ES_CONSTRUCTOR, MIXIN_INHERITS_FROM_NOT_OBJECT, MIXIN_OF_NON_CLASS, MIXIN_OF_NON
_MIXIN, MIXIN_REFERENCES_SUPER, MIXIN_WITH_NON_CLASS_SUPERCLASS, MULTIPLE_SUPER_
INITIALIZERS, NEW_WITH_INVALID_TYPE_PARAMETERS, NON_CONST_MAP_AS_EXPRESSION_STAT
EMENT, NON_CONSTANT_CASE_EXPRESSION, NON_CONSTANT_DEFAULT_VALUE, NON_CONSTANT_LI
ST_ELEMENT, NON_CONSTANT_MAP_KEY, NON_CONSTANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_
INITIALIZER, OBJECT_CANNOT_EXTEND_ANOTHER_CLASS, OPTIONAL_PARAMETER_IN_OPERATOR,
OVERRIDE_MISSING_NAMED_PARAMETERS, OVERRIDE_MISSING_REQUIRED_PARAMETERS, PART_O
F_NON_PART, PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, PRIVATE_OPTIONAL_PARAMETER, R
ECURSIVE_COMPILE_TIME_CONSTANT, RECURSIVE_FACTORY_REDIRECT, RECURSIVE_FUNCTION_T
YPE_ALIAS, RECURSIVE_INTERFACE_INHERITANCE, REDIRECT_TO_NON_CONST_CONSTRUCTOR, R
EFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER, RESERVED_WORD_AS_IDENTIFIER, RETUR
N_IN_GENERATIVE_CONSTRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVEL_VARIABL
E, SUPER_IN_INVALID_CONTEXT, SUPER_INITIALIZER_IN_OBJECT, THROW_WITHOUT_VALUE_OU
TSIDE_ON, TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS, UNDEFINED_CONSTRUCTOR_IN_INITIAL
IZER, UNINITIALIZED_FINAL_FIELD, URI_WITH_INTERPOLATION, WRONG_NUMBER_OF_PARAMET
ERS_FOR_OPERATOR, WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, WRONG_NUMBER_OF_TYPE_AR
GUMENTS]; |
| 936 final String __name; | 955 final String __name; |
| 937 final int __ordinal; | 956 final int __ordinal; |
| 938 int get ordinal => __ordinal; | 957 int get ordinal => __ordinal; |
| 939 /** | 958 /** |
| 940 * The message template used to create the message to be displayed for this er
ror. | 959 * The message template used to create the message to be displayed for this er
ror. |
| 941 */ | 960 */ |
| 942 String _message; | 961 String _message; |
| 943 /** | 962 /** |
| 944 * Initialize a newly created error code to have the given message. | 963 * Initialize a newly created error code to have the given message. |
| 945 * @param message the message template used to create the message to be displa
yed for the error | 964 * @param message the message template used to create the message to be displa
yed for the error |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 */ | 1471 */ |
| 1453 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { | 1472 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { |
| 1454 this._message = message; | 1473 this._message = message; |
| 1455 } | 1474 } |
| 1456 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 1475 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
| 1457 String get message => _message; | 1476 String get message => _message; |
| 1458 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 1477 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
| 1459 bool needsRecompilation() => true; | 1478 bool needsRecompilation() => true; |
| 1460 String toString() => __name; | 1479 String toString() => __name; |
| 1461 } | 1480 } |
| OLD | NEW |