| 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.error; | 8 library engine.error; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = cons
t CompileTimeErrorCode.con1('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 104, "A non
-constant map literal without type arguments cannot be used as an expression sta
tement"); | 1262 static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = cons
t CompileTimeErrorCode.con1('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 104, "A non
-constant map literal without type arguments cannot be used as an expression sta
tement"); |
| 1263 | 1263 |
| 1264 /** | 1264 /** |
| 1265 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … | 1265 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … |
| 1266 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … | 1266 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … |
| 1267 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form | 1267 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form |
| 1268 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: | 1268 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: |
| 1269 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: | 1269 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: |
| 1270 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not | 1270 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not |
| 1271 * compile-time constants, for all <i>1 <= k <= n</i>. | 1271 * compile-time constants, for all <i>1 <= k <= n</i>. |
| 1272 */ |
| 1273 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const Compile
TimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 105, "Case expressions must b
e constant"); |
| 1274 |
| 1275 /** |
| 1276 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … |
| 1277 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … |
| 1278 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form |
| 1279 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: |
| 1280 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: |
| 1281 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not |
| 1282 * compile-time constants, for all <i>1 <= k <= n</i>. |
| 1272 * | 1283 * |
| 1273 * TODO (jwren) For this and all other NON_CONSTANT_* error codes we need a co
rresponding | 1284 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a |
| 1274 * NON_CONSTANT_*_FROM_DEFERRED_LIBRARY, see NON_CONSTANT_DEFAULT_VALUE_FROM_D
EFERRED_LIBRARY or | 1285 * deferred prefix. |
| 1275 * CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY. | |
| 1276 */ | 1286 */ |
| 1277 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const Compile
TimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 105, "Case expressions must b
e constant"); | 1287 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_L
IBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFE
RRED_LIBRARY', 106, "Constant values from a deferred library cannot be used as a
case expression"); |
| 1278 | 1288 |
| 1279 /** | 1289 /** |
| 1280 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional | 1290 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional |
| 1281 * parameter is not a compile-time constant. | 1291 * parameter is not a compile-time constant. |
| 1282 */ | 1292 */ |
| 1283 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTi
meErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 106, "Default values of an option
al parameter must be constant"); | 1293 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTi
meErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 107, "Default values of an option
al parameter must be constant"); |
| 1284 | 1294 |
| 1285 /** | 1295 /** |
| 1286 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional | 1296 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional |
| 1287 * parameter is not a compile-time constant. | 1297 * parameter is not a compile-time constant. |
| 1288 * | 1298 * |
| 1289 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a | 1299 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a |
| 1290 * deferred prefix. | 1300 * deferred prefix. |
| 1291 */ | 1301 */ |
| 1292 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIB
RARY = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED
_LIBRARY', 107, "Constant values from a deferred library cannot be used as a def
ault parameter value"); | 1302 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIB
RARY = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED
_LIBRARY', 108, "Constant values from a deferred library cannot be used as a def
ault parameter value"); |
| 1293 | 1303 |
| 1294 /** | 1304 /** |
| 1295 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a | 1305 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a |
| 1296 * compile-time constant. | 1306 * compile-time constant. |
| 1297 */ | 1307 */ |
| 1298 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTim
eErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 108, "'const' lists must have all c
onstant values"); | 1308 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTim
eErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 109, "'const' lists must have all c
onstant values"); |
| 1309 |
| 1310 /** |
| 1311 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a |
| 1312 * compile-time constant. |
| 1313 * |
| 1314 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a |
| 1315 * deferred prefix. |
| 1316 */ |
| 1317 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBR
ARY = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_L
IBRARY', 110, "Constant values from a deferred library cannot be used as values
in a 'const' list"); |
| 1299 | 1318 |
| 1300 /** | 1319 /** |
| 1301 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map | 1320 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
| 1302 * literal is not a compile-time constant. | 1321 * literal is not a compile-time constant. |
| 1303 */ | 1322 */ |
| 1304 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErro
rCode.con1('NON_CONSTANT_MAP_KEY', 109, "The keys in a map must be constant"); | 1323 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErro
rCode.con1('NON_CONSTANT_MAP_KEY', 111, "The keys in a map must be constant"); |
| 1324 |
| 1325 /** |
| 1326 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
| 1327 * literal is not a compile-time constant. |
| 1328 * |
| 1329 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a |
| 1330 * deferred prefix. |
| 1331 */ |
| 1332 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY =
const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', 1
12, "Constant values from a deferred library cannot be used as keys in a map"); |
| 1305 | 1333 |
| 1306 /** | 1334 /** |
| 1307 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map | 1335 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
| 1308 * literal is not a compile-time constant. | 1336 * literal is not a compile-time constant. |
| 1309 */ | 1337 */ |
| 1310 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeEr
rorCode.con1('NON_CONSTANT_MAP_VALUE', 110, "The values in a 'const' map must be
constant"); | 1338 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeEr
rorCode.con1('NON_CONSTANT_MAP_VALUE', 113, "The values in a 'const' map must be
constant"); |
| 1339 |
| 1340 /** |
| 1341 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
| 1342 * literal is not a compile-time constant. |
| 1343 * |
| 1344 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a |
| 1345 * deferred prefix. |
| 1346 */ |
| 1347 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY
= const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY
', 114, "Constant values from a deferred library cannot be used as values in a '
const' map"); |
| 1311 | 1348 |
| 1312 /** | 1349 /** |
| 1313 * 11 Metadata: Metadata consists of a series of annotations, each of which be
gin with the | 1350 * 11 Metadata: Metadata consists of a series of annotations, each of which be
gin with the |
| 1314 * character @, followed by a constant expression that must be either a refere
nce to a | 1351 * character @, followed by a constant expression that must be either a refere
nce to a |
| 1315 * compile-time constant variable, or a call to a constant constructor. | 1352 * compile-time constant variable, or a call to a constant constructor. |
| 1353 * |
| 1354 * "From deferred library" case is covered by |
| 1355 * [CompileTimeErrorCode#INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY]. |
| 1316 */ | 1356 */ |
| 1317 static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const
CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 111, "Annotatio
n creation can use only 'const' constructor"); | 1357 static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const
CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 115, "Annotatio
n creation can use only 'const' constructor"); |
| 1318 | 1358 |
| 1319 /** | 1359 /** |
| 1320 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a | 1360 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a |
| 1321 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. | 1361 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. |
| 1322 */ | 1362 */ |
| 1323 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const Co
mpileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 112, "Initializer e
xpressions in constant constructors must be constants"); | 1363 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const Co
mpileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 116, "Initializer e
xpressions in constant constructors must be constants"); |
| 1364 |
| 1365 /** |
| 1366 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a |
| 1367 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. |
| 1368 * |
| 1369 * 12.1 Constants: A qualified reference to a static constant variable that is
not qualified by a |
| 1370 * deferred prefix. |
| 1371 */ |
| 1372 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFER
RED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER
_FROM_DEFERRED_LIBRARY', 117, "Constant values from a deferred library cannot be
used as constant initializers"); |
| 1324 | 1373 |
| 1325 /** | 1374 /** |
| 1326 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i>
or if <i>m > n</i>. | 1375 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i>
or if <i>m > n</i>. |
| 1327 * | 1376 * |
| 1328 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an | 1377 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an |
| 1329 * uncaught exception being thrown. | 1378 * uncaught exception being thrown. |
| 1330 * | 1379 * |
| 1331 * @param requiredCount the expected number of required arguments | 1380 * @param requiredCount the expected number of required arguments |
| 1332 * @param argumentCount the actual number of positional arguments given | 1381 * @param argumentCount the actual number of positional arguments given |
| 1333 */ | 1382 */ |
| 1334 static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const Compil
eTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 113, "%d required argument(
s) expected, but %d found"); | 1383 static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const Compil
eTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 118, "%d required argument(
s) expected, but %d found"); |
| 1335 | 1384 |
| 1336 /** | 1385 /** |
| 1337 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1386 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
| 1338 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1387 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
| 1339 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1388 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
| 1340 * (respectively <i>S.id</i>) | 1389 * (respectively <i>S.id</i>) |
| 1341 */ | 1390 */ |
| 1342 static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTi
meErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 114, "The generative constructor
'%s' expected, but factory found"); | 1391 static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTi
meErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 119, "The generative constructor
'%s' expected, but factory found"); |
| 1343 | 1392 |
| 1344 /** | 1393 /** |
| 1345 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f
or class Object. | 1394 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f
or class Object. |
| 1346 */ | 1395 */ |
| 1347 static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const C
ompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 115, ""); | 1396 static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const C
ompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 120, ""); |
| 1348 | 1397 |
| 1349 /** | 1398 /** |
| 1350 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete
r in an operator. | 1399 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete
r in an operator. |
| 1351 */ | 1400 */ |
| 1352 static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const Compi
leTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 116, "Optional parameters
are not allowed when defining an operator"); | 1401 static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const Compi
leTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 121, "Optional parameters
are not allowed when defining an operator"); |
| 1353 | 1402 |
| 1354 /** | 1403 /** |
| 1355 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part | 1404 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part |
| 1356 * declaration. | 1405 * declaration. |
| 1357 * | 1406 * |
| 1358 * @param uri the uri pointing to a non-library declaration | 1407 * @param uri the uri pointing to a non-library declaration |
| 1359 */ | 1408 */ |
| 1360 static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCod
e.con1('PART_OF_NON_PART', 117, "The included part '%s' must have a part-of dire
ctive"); | 1409 static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCod
e.con1('PART_OF_NON_PART', 122, "The included part '%s' must have a part-of dire
ctive"); |
| 1361 | 1410 |
| 1362 /** | 1411 /** |
| 1363 * 14.1 Imports: It is a compile-time error if the current library declares a
top-level member | 1412 * 14.1 Imports: It is a compile-time error if the current library declares a
top-level member |
| 1364 * named <i>p</i>. | 1413 * named <i>p</i>. |
| 1365 */ | 1414 */ |
| 1366 static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = cons
t CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 118, "The n
ame '%s' is already used as an import prefix and cannot be used to name a top-le
vel element"); | 1415 static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = cons
t CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 123, "The n
ame '%s' is already used as an import prefix and cannot be used to name a top-le
vel element"); |
| 1367 | 1416 |
| 1368 /** | 1417 /** |
| 1369 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o
ptional parameter | 1418 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o
ptional parameter |
| 1370 * begins with an '_' character. | 1419 * begins with an '_' character. |
| 1371 */ | 1420 */ |
| 1372 static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTi
meErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 119, "Named optional parameters c
annot start with an underscore"); | 1421 static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTi
meErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 124, "Named optional parameters c
annot start with an underscore"); |
| 1373 | 1422 |
| 1374 /** | 1423 /** |
| 1375 * 12.1 Constants: It is a compile-time error if the value of a compile-time c
onstant expression | 1424 * 12.1 Constants: It is a compile-time error if the value of a compile-time c
onstant expression |
| 1376 * depends on itself. | 1425 * depends on itself. |
| 1377 */ | 1426 */ |
| 1378 static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const Comp
ileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 120, ""); | 1427 static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const Comp
ileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 125, ""); |
| 1379 | 1428 |
| 1380 /** | 1429 /** |
| 1381 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its | 1430 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its |
| 1382 * only action is to invoke another generative constructor. | 1431 * only action is to invoke another generative constructor. |
| 1383 * | 1432 * |
| 1384 * TODO(scheglov) review this later, there are no explicit "it is a compile-ti
me error" in | 1433 * TODO(scheglov) review this later, there are no explicit "it is a compile-ti
me error" in |
| 1385 * specification. But it was added to the co19 and there is same error for fac
tories. | 1434 * specification. But it was added to the co19 and there is same error for fac
tories. |
| 1386 * | 1435 * |
| 1387 * https://code.google.com/p/dart/issues/detail?id=954 | 1436 * https://code.google.com/p/dart/issues/detail?id=954 |
| 1388 */ | 1437 */ |
| 1389 static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const Compi
leTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 121, "Cycle in redirectin
g generative constructors"); | 1438 static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const Compi
leTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 126, "Cycle in redirectin
g generative constructors"); |
| 1390 | 1439 |
| 1391 /** | 1440 /** |
| 1392 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr
uctor redirects to | 1441 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr
uctor redirects to |
| 1393 * itself, either directly or indirectly via a sequence of redirections. | 1442 * itself, either directly or indirectly via a sequence of redirections. |
| 1394 */ | 1443 */ |
| 1395 static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTi
meErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 122, "Cycle in redirecting factor
y constructors"); | 1444 static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTi
meErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 127, "Cycle in redirecting factor
y constructors"); |
| 1396 | 1445 |
| 1397 /** | 1446 /** |
| 1398 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a | 1447 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a |
| 1399 * superinterface of itself. | 1448 * superinterface of itself. |
| 1400 * | 1449 * |
| 1401 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. | 1450 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. |
| 1402 * | 1451 * |
| 1403 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. | 1452 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. |
| 1404 * | 1453 * |
| 1405 * @param className the name of the class that implements itself recursively | 1454 * @param className the name of the class that implements itself recursively |
| 1406 * @param strImplementsPath a string representation of the implements loop | 1455 * @param strImplementsPath a string representation of the implements loop |
| 1407 */ | 1456 */ |
| 1408 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const Comp
ileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 123, "'%s' cannot be a
superinterface of itself: %s"); | 1457 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const Comp
ileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 128, "'%s' cannot be a
superinterface of itself: %s"); |
| 1409 | 1458 |
| 1410 /** | 1459 /** |
| 1411 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a | 1460 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a |
| 1412 * superinterface of itself. | 1461 * superinterface of itself. |
| 1413 * | 1462 * |
| 1414 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. | 1463 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. |
| 1415 * | 1464 * |
| 1416 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. | 1465 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. |
| 1417 * | 1466 * |
| 1418 * @param className the name of the class that implements itself recursively | 1467 * @param className the name of the class that implements itself recursively |
| 1419 */ | 1468 */ |
| 1420 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EX
TENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CA
SE_EXTENDS', 124, "'%s' cannot extend itself"); | 1469 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EX
TENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CA
SE_EXTENDS', 129, "'%s' cannot extend itself"); |
| 1421 | 1470 |
| 1422 /** | 1471 /** |
| 1423 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a | 1472 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a |
| 1424 * superinterface of itself. | 1473 * superinterface of itself. |
| 1425 * | 1474 * |
| 1426 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. | 1475 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. |
| 1427 * | 1476 * |
| 1428 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. | 1477 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. |
| 1429 * | 1478 * |
| 1430 * @param className the name of the class that implements itself recursively | 1479 * @param className the name of the class that implements itself recursively |
| 1431 */ | 1480 */ |
| 1432 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM
PLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE
_CASE_IMPLEMENTS', 125, "'%s' cannot implement itself"); | 1481 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM
PLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE
_CASE_IMPLEMENTS', 130, "'%s' cannot implement itself"); |
| 1433 | 1482 |
| 1434 /** | 1483 /** |
| 1435 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 1484 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 1436 * <i>k'</i> is not a constant constructor. | 1485 * <i>k'</i> is not a constant constructor. |
| 1437 */ | 1486 */ |
| 1438 static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const Comp
ileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 126, "The constructor '
%s' could not be found in '%s'"); | 1487 static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const Comp
ileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 131, "The constructor '
%s' could not be found in '%s'"); |
| 1439 | 1488 |
| 1440 /** | 1489 /** |
| 1441 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 1490 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 1442 * <i>k'</i> is not a constant constructor. | 1491 * <i>k'</i> is not a constant constructor. |
| 1443 */ | 1492 */ |
| 1444 static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErr
orCode.con1('REDIRECT_TO_NON_CLASS', 127, "The name '%s' is not a type and canno
t be used in a redirected constructor"); | 1493 static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErr
orCode.con1('REDIRECT_TO_NON_CLASS', 132, "The name '%s' is not a type and canno
t be used in a redirected constructor"); |
| 1445 | 1494 |
| 1446 /** | 1495 /** |
| 1447 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 1496 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 1448 * <i>k'</i> is not a constant constructor. | 1497 * <i>k'</i> is not a constant constructor. |
| 1449 */ | 1498 */ |
| 1450 static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const Co
mpileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 128, "Constant fact
ory constructor cannot delegate to a non-constant constructor"); | 1499 static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const Co
mpileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 133, "Constant fact
ory constructor cannot delegate to a non-constant constructor"); |
| 1500 |
| 1501 /** |
| 1502 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti
ng</i>, in which |
| 1503 * case its only action is to invoke another generative constructor. |
| 1504 */ |
| 1505 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR =
const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 1
34, "The constructor '%s' could not be found in '%s'"); |
| 1506 |
| 1507 /** |
| 1508 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti
ng</i>, in which |
| 1509 * case its only action is to invoke another generative constructor. |
| 1510 */ |
| 1511 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTR
UCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_C
ONSTRUCTOR', 135, "Generative constructor cannot redirect to a factory construct
or"); |
| 1451 | 1512 |
| 1452 /** | 1513 /** |
| 1453 * 5 Variables: A local variable may only be referenced at a source code locat
ion that is after | 1514 * 5 Variables: A local variable may only be referenced at a source code locat
ion that is after |
| 1454 * its initializer, if any, is complete, or a compile-time error occurs. | 1515 * its initializer, if any, is complete, or a compile-time error occurs. |
| 1455 */ | 1516 */ |
| 1456 static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const Compil
eTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 129, "Local variables canno
t be referenced before they are declared"); | 1517 static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const Compil
eTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 136, "Local variables canno
t be referenced before they are declared"); |
| 1457 | 1518 |
| 1458 /** | 1519 /** |
| 1459 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>
rethrow;</i> is not | 1520 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>
rethrow;</i> is not |
| 1460 * enclosed within a on-catch clause. | 1521 * enclosed within a on-catch clause. |
| 1461 */ | 1522 */ |
| 1462 static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErr
orCode.con1('RETHROW_OUTSIDE_CATCH', 130, "rethrow must be inside of a catch cla
use"); | 1523 static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErr
orCode.con1('RETHROW_OUTSIDE_CATCH', 137, "rethrow must be inside of a catch cla
use"); |
| 1463 | 1524 |
| 1464 /** | 1525 /** |
| 1465 * 13.12 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> | 1526 * 13.12 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> |
| 1466 * appears in a generative constructor. | 1527 * appears in a generative constructor. |
| 1467 */ | 1528 */ |
| 1468 static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const Com
pileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 131, "Constructors ca
nnot return a value"); | 1529 static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const Com
pileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 138, "Constructors ca
nnot return a value"); |
| 1469 | 1530 |
| 1470 /** | 1531 /** |
| 1471 * 14.1 Imports: It is a compile-time error if a prefix used in a deferred imp
ort is used in | 1532 * 14.1 Imports: It is a compile-time error if a prefix used in a deferred imp
ort is used in |
| 1472 * another import clause. | 1533 * another import clause. |
| 1473 */ | 1534 */ |
| 1474 static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeEr
rorCode.con1('SHARED_DEFERRED_PREFIX', 132, "The prefix of a deferred import can
not be used in other import directives"); | 1535 static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeEr
rorCode.con1('SHARED_DEFERRED_PREFIX', 139, "The prefix of a deferred import can
not be used in other import directives"); |
| 1475 | 1536 |
| 1476 /** | 1537 /** |
| 1477 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 1538 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
| 1478 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 1539 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
| 1479 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation | 1540 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation |
| 1480 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or | 1541 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or |
| 1481 * initializer list, in class Object, in a factory constructor, or in a static
method or variable | 1542 * initializer list, in class Object, in a factory constructor, or in a static
method or variable |
| 1482 * initializer. | 1543 * initializer. |
| 1483 */ | 1544 */ |
| 1484 static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTime
ErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 133, "Invalid context for 'super' inv
ocation"); | 1545 static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTime
ErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 140, "Invalid context for 'super' inv
ocation"); |
| 1485 | 1546 |
| 1486 /** | 1547 /** |
| 1487 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its | 1548 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its |
| 1488 * only action is to invoke another generative constructor. | 1549 * only action is to invoke another generative constructor. |
| 1489 */ | 1550 */ |
| 1490 static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const Com
pileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 134, "The redirecting
constructor cannot have a 'super' initializer"); | 1551 static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const Com
pileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 141, "The redirecting
constructor cannot have a 'super' initializer"); |
| 1491 | 1552 |
| 1492 /** | 1553 /** |
| 1493 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 1554 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
| 1494 * error if a generative constructor of class Object includes a superinitializ
er. | 1555 * error if a generative constructor of class Object includes a superinitializ
er. |
| 1495 */ | 1556 */ |
| 1496 static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileT
imeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 135, ""); | 1557 static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileT
imeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 142, ""); |
| 1497 | 1558 |
| 1498 /** | 1559 /** |
| 1499 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a | 1560 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a |
| 1500 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object | 1561 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object |
| 1501 * expression are not subtypes of the bounds of the corresponding formal type
parameters of | 1562 * expression are not subtypes of the bounds of the corresponding formal type
parameters of |
| 1502 * <i>G</i>. | 1563 * <i>G</i>. |
| 1503 * | 1564 * |
| 1504 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a | 1565 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a |
| 1505 * dynamic error occurs. | 1566 * dynamic error occurs. |
| 1506 * | 1567 * |
| 1507 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise | 1568 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise |
| 1508 * an exception. | 1569 * an exception. |
| 1509 * | 1570 * |
| 1510 * @param boundedTypeName the name of the type used in the instance creation t
hat should be | 1571 * @param boundedTypeName the name of the type used in the instance creation t
hat should be |
| 1511 * limited by the bound as specified in the class declaration | 1572 * limited by the bound as specified in the class declaration |
| 1512 * @param boundingTypeName the name of the bounding type | 1573 * @param boundingTypeName the name of the bounding type |
| 1513 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS | 1574 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS |
| 1514 */ | 1575 */ |
| 1515 static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const Co
mpileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 136, "'%s' does not
extend '%s'"); | 1576 static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const Co
mpileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 143, "'%s' does not
extend '%s'"); |
| 1516 | 1577 |
| 1517 /** | 1578 /** |
| 1518 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano
ther typedef, is a | 1579 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano
ther typedef, is a |
| 1519 * compile time error. | 1580 * compile time error. |
| 1520 */ | 1581 */ |
| 1521 static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const C
ompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 137, "Type alias
cannot reference itself directly or recursively via another typedef"); | 1582 static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const C
ompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 144, "Type alias
cannot reference itself directly or recursively via another typedef"); |
| 1522 | 1583 |
| 1523 /** | 1584 /** |
| 1524 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current | 1585 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current |
| 1525 * scope, optionally followed by type arguments. | 1586 * scope, optionally followed by type arguments. |
| 1526 */ | 1587 */ |
| 1527 static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode
.con1('UNDEFINED_CLASS', 138, "Undefined class '%s'"); | 1588 static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode
.con1('UNDEFINED_CLASS', 145, "Undefined class '%s'"); |
| 1528 | 1589 |
| 1529 /** | 1590 /** |
| 1530 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1591 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
| 1531 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1592 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
| 1532 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1593 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
| 1533 * (respectively <i>S.id</i>) | 1594 * (respectively <i>S.id</i>) |
| 1534 */ | 1595 */ |
| 1535 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const
CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 139, "The cla
ss '%s' does not have a generative constructor '%s'"); | 1596 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const
CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 146, "The cla
ss '%s' does not have a generative constructor '%s'"); |
| 1536 | 1597 |
| 1537 /** | 1598 /** |
| 1538 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1599 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
| 1539 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1600 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
| 1540 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1601 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
| 1541 * (respectively <i>S.id</i>) | 1602 * (respectively <i>S.id</i>) |
| 1542 */ | 1603 */ |
| 1543 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
= const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
', 140, "The class '%s' does not have a default generative constructor"); | 1604 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
= const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
', 147, "The class '%s' does not have a default generative constructor"); |
| 1544 | 1605 |
| 1545 /** | 1606 /** |
| 1546 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, | 1607 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, |
| 1547 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... | 1608 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... |
| 1548 * <i>p<sub>n+k</sub></i>} or a static warning occurs. | 1609 * <i>p<sub>n+k</sub></i>} or a static warning occurs. |
| 1549 * | 1610 * |
| 1550 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an | 1611 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an |
| 1551 * uncaught exception being thrown. | 1612 * uncaught exception being thrown. |
| 1552 * | 1613 * |
| 1553 * @param name the name of the requested named parameter | 1614 * @param name the name of the requested named parameter |
| 1554 */ | 1615 */ |
| 1555 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim
eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 141, "The named parameter '%s' is n
ot defined"); | 1616 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim
eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 148, "The named parameter '%s' is n
ot defined"); |
| 1556 | 1617 |
| 1557 /** | 1618 /** |
| 1558 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is | 1619 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is |
| 1559 * not a library declaration. | 1620 * not a library declaration. |
| 1560 * | 1621 * |
| 1561 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is | 1622 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is |
| 1562 * not a library declaration. | 1623 * not a library declaration. |
| 1563 * | 1624 * |
| 1564 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part | 1625 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part |
| 1565 * declaration. | 1626 * declaration. |
| 1566 * | 1627 * |
| 1567 * @param uri the URI pointing to a non-existent file | 1628 * @param uri the URI pointing to a non-existent file |
| 1568 * @see #INVALID_URI | 1629 * @see #INVALID_URI |
| 1569 */ | 1630 */ |
| 1570 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC
ode.con1('URI_DOES_NOT_EXIST', 142, "Target of URI does not exist: '%s'"); | 1631 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC
ode.con1('URI_DOES_NOT_EXIST', 149, "Target of URI does not exist: '%s'"); |
| 1571 | 1632 |
| 1572 /** | 1633 /** |
| 1573 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if | 1634 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if |
| 1574 * <i>x</i> involves string interpolation. | 1635 * <i>x</i> involves string interpolation. |
| 1575 * | 1636 * |
| 1576 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if | 1637 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if |
| 1577 * <i>s</i> involves string interpolation. | 1638 * <i>s</i> involves string interpolation. |
| 1578 * | 1639 * |
| 1579 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is | 1640 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is |
| 1580 * not a compile-time constant, or if <i>x</i> involves string interpolation. | 1641 * not a compile-time constant, or if <i>x</i> involves string interpolation. |
| 1581 */ | 1642 */ |
| 1582 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr
rorCode.con1('URI_WITH_INTERPOLATION', 143, "URIs cannot use string interpolatio
n"); | 1643 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr
rorCode.con1('URI_WITH_INTERPOLATION', 150, "URIs cannot use string interpolatio
n"); |
| 1583 | 1644 |
| 1584 /** | 1645 /** |
| 1585 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is | 1646 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is |
| 1586 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the | 1647 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the |
| 1587 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. | 1648 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. |
| 1588 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a | 1649 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a |
| 1589 * compile time error if the arity of the user-declared operator ~ is not 0. | 1650 * compile time error if the arity of the user-declared operator ~ is not 0. |
| 1590 * | 1651 * |
| 1591 * @param operatorName the name of the declared operator | 1652 * @param operatorName the name of the declared operator |
| 1592 * @param expectedNumberOfParameters the number of parameters expected | 1653 * @param expectedNumberOfParameters the number of parameters expected |
| 1593 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration | 1654 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration |
| 1594 */ | 1655 */ |
| 1595 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co
nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 144, "O
perator '%s' should declare exactly %d parameter(s), but %d found"); | 1656 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co
nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 151, "O
perator '%s' should declare exactly %d parameter(s), but %d found"); |
| 1596 | 1657 |
| 1597 /** | 1658 /** |
| 1598 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar
ed operator - is not | 1659 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar
ed operator - is not |
| 1599 * 0 or 1. | 1660 * 0 or 1. |
| 1600 * | 1661 * |
| 1601 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration | 1662 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration |
| 1602 */ | 1663 */ |
| 1603 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU
S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN
US', 145, "Operator '-' should declare 0 or 1 parameter, but %d found"); | 1664 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU
S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN
US', 152, "Operator '-' should declare 0 or 1 parameter, but %d found"); |
| 1604 | 1665 |
| 1605 /** | 1666 /** |
| 1606 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list
does not include | 1667 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list
does not include |
| 1607 * exactly one required formal parameter <i>p</i>. | 1668 * exactly one required formal parameter <i>p</i>. |
| 1608 */ | 1669 */ |
| 1609 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons
t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 146, "Sette
rs should declare exactly one required parameter"); | 1670 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons
t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 153, "Sette
rs should declare exactly one required parameter"); |
| 1610 | 1671 |
| 1611 static const List<CompileTimeErrorCode> values = const [ | 1672 static const List<CompileTimeErrorCode> values = const [ |
| 1612 AMBIGUOUS_EXPORT, | 1673 AMBIGUOUS_EXPORT, |
| 1613 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, | 1674 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, |
| 1614 BUILT_IN_IDENTIFIER_AS_TYPE, | 1675 BUILT_IN_IDENTIFIER_AS_TYPE, |
| 1615 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, | 1676 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, |
| 1616 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, | 1677 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, |
| 1617 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, | 1678 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, |
| 1618 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, | 1679 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, |
| 1619 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, | 1680 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1708 MIXIN_OF_NON_CLASS, | 1769 MIXIN_OF_NON_CLASS, |
| 1709 MIXIN_REFERENCES_SUPER, | 1770 MIXIN_REFERENCES_SUPER, |
| 1710 MIXIN_WITH_NON_CLASS_SUPERCLASS, | 1771 MIXIN_WITH_NON_CLASS_SUPERCLASS, |
| 1711 MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS, | 1772 MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS, |
| 1712 MULTIPLE_SUPER_INITIALIZERS, | 1773 MULTIPLE_SUPER_INITIALIZERS, |
| 1713 NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS, | 1774 NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS, |
| 1714 NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT, | 1775 NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT, |
| 1715 NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT, | 1776 NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT, |
| 1716 NON_CONST_MAP_AS_EXPRESSION_STATEMENT, | 1777 NON_CONST_MAP_AS_EXPRESSION_STATEMENT, |
| 1717 NON_CONSTANT_CASE_EXPRESSION, | 1778 NON_CONSTANT_CASE_EXPRESSION, |
| 1779 NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_LIBRARY, |
| 1718 NON_CONSTANT_DEFAULT_VALUE, | 1780 NON_CONSTANT_DEFAULT_VALUE, |
| 1719 NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY, | 1781 NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIBRARY, |
| 1720 NON_CONSTANT_LIST_ELEMENT, | 1782 NON_CONSTANT_LIST_ELEMENT, |
| 1783 NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBRARY, |
| 1721 NON_CONSTANT_MAP_KEY, | 1784 NON_CONSTANT_MAP_KEY, |
| 1785 NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY, |
| 1722 NON_CONSTANT_MAP_VALUE, | 1786 NON_CONSTANT_MAP_VALUE, |
| 1787 NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY, |
| 1723 NON_CONSTANT_ANNOTATION_CONSTRUCTOR, | 1788 NON_CONSTANT_ANNOTATION_CONSTRUCTOR, |
| 1724 NON_CONSTANT_VALUE_IN_INITIALIZER, | 1789 NON_CONSTANT_VALUE_IN_INITIALIZER, |
| 1790 NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFERRED_LIBRARY, |
| 1725 NOT_ENOUGH_REQUIRED_ARGUMENTS, | 1791 NOT_ENOUGH_REQUIRED_ARGUMENTS, |
| 1726 NON_GENERATIVE_CONSTRUCTOR, | 1792 NON_GENERATIVE_CONSTRUCTOR, |
| 1727 OBJECT_CANNOT_EXTEND_ANOTHER_CLASS, | 1793 OBJECT_CANNOT_EXTEND_ANOTHER_CLASS, |
| 1728 OPTIONAL_PARAMETER_IN_OPERATOR, | 1794 OPTIONAL_PARAMETER_IN_OPERATOR, |
| 1729 PART_OF_NON_PART, | 1795 PART_OF_NON_PART, |
| 1730 PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, | 1796 PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, |
| 1731 PRIVATE_OPTIONAL_PARAMETER, | 1797 PRIVATE_OPTIONAL_PARAMETER, |
| 1732 RECURSIVE_COMPILE_TIME_CONSTANT, | 1798 RECURSIVE_COMPILE_TIME_CONSTANT, |
| 1733 RECURSIVE_CONSTRUCTOR_REDIRECT, | 1799 RECURSIVE_CONSTRUCTOR_REDIRECT, |
| 1734 RECURSIVE_FACTORY_REDIRECT, | 1800 RECURSIVE_FACTORY_REDIRECT, |
| 1735 RECURSIVE_INTERFACE_INHERITANCE, | 1801 RECURSIVE_INTERFACE_INHERITANCE, |
| 1736 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, | 1802 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, |
| 1737 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, | 1803 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, |
| 1738 REDIRECT_TO_MISSING_CONSTRUCTOR, | 1804 REDIRECT_TO_MISSING_CONSTRUCTOR, |
| 1739 REDIRECT_TO_NON_CLASS, | 1805 REDIRECT_TO_NON_CLASS, |
| 1740 REDIRECT_TO_NON_CONST_CONSTRUCTOR, | 1806 REDIRECT_TO_NON_CONST_CONSTRUCTOR, |
| 1807 REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR, |
| 1808 REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR, |
| 1741 REFERENCED_BEFORE_DECLARATION, | 1809 REFERENCED_BEFORE_DECLARATION, |
| 1742 RETHROW_OUTSIDE_CATCH, | 1810 RETHROW_OUTSIDE_CATCH, |
| 1743 RETURN_IN_GENERATIVE_CONSTRUCTOR, | 1811 RETURN_IN_GENERATIVE_CONSTRUCTOR, |
| 1744 SHARED_DEFERRED_PREFIX, | 1812 SHARED_DEFERRED_PREFIX, |
| 1745 SUPER_IN_INVALID_CONTEXT, | 1813 SUPER_IN_INVALID_CONTEXT, |
| 1746 SUPER_IN_REDIRECTING_CONSTRUCTOR, | 1814 SUPER_IN_REDIRECTING_CONSTRUCTOR, |
| 1747 SUPER_INITIALIZER_IN_OBJECT, | 1815 SUPER_INITIALIZER_IN_OBJECT, |
| 1748 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, | 1816 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, |
| 1749 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, | 1817 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, |
| 1750 UNDEFINED_CLASS, | 1818 UNDEFINED_CLASS, |
| (...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2930 static const StaticWarningCode ASSIGNMENT_TO_CONST = const StaticWarningCode.c
on1('ASSIGNMENT_TO_CONST', 2, "Constant variables cannot be assigned a value"); | 2998 static const StaticWarningCode ASSIGNMENT_TO_CONST = const StaticWarningCode.c
on1('ASSIGNMENT_TO_CONST', 2, "Constant variables cannot be assigned a value"); |
| 2931 | 2999 |
| 2932 /** | 3000 /** |
| 2933 * 5 Variables: Attempting to assign to a final variable elsewhere will cause
a NoSuchMethodError | 3001 * 5 Variables: Attempting to assign to a final variable elsewhere will cause
a NoSuchMethodError |
| 2934 * to be thrown, because no setter is defined for it. The assignment will also
give rise to a | 3002 * to be thrown, because no setter is defined for it. The assignment will also
give rise to a |
| 2935 * static warning for the same reason. | 3003 * static warning for the same reason. |
| 2936 */ | 3004 */ |
| 2937 static const StaticWarningCode ASSIGNMENT_TO_FINAL = const StaticWarningCode.c
on1('ASSIGNMENT_TO_FINAL', 3, "'%s' cannot be used as a setter, it is final"); | 3005 static const StaticWarningCode ASSIGNMENT_TO_FINAL = const StaticWarningCode.c
on1('ASSIGNMENT_TO_FINAL', 3, "'%s' cannot be used as a setter, it is final"); |
| 2938 | 3006 |
| 2939 /** | 3007 /** |
| 3008 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs |
| 3009 * inside a top level or static function (be it function, method, getter, or s
etter) or variable |
| 3010 * initializer and there is neither a local variable declaration with name <i>
v</i> nor setter |
| 3011 * declaration with name <i>v=</i> in the lexical scope enclosing the assignme
nt. |
| 3012 */ |
| 3013 static const StaticWarningCode ASSIGNMENT_TO_FUNCTION = const StaticWarningCod
e.con1('ASSIGNMENT_TO_FUNCTION', 4, "Functions cannot be assigned a value"); |
| 3014 |
| 3015 /** |
| 2940 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
It is a static type | 3016 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
It is a static type |
| 2941 * warning if <i>T</i> does not have an accessible instance setter named <i>v
=</i>. | 3017 * warning if <i>T</i> does not have an accessible instance setter named <i>v=
</i>. |
| 2942 */ | 3018 */ |
| 2943 static const StaticWarningCode ASSIGNMENT_TO_METHOD = const StaticWarningCode.
con1('ASSIGNMENT_TO_METHOD', 4, "Methods cannot be assigned a value"); | 3019 static const StaticWarningCode ASSIGNMENT_TO_METHOD = const StaticWarningCode.
con1('ASSIGNMENT_TO_METHOD', 5, "Methods cannot be assigned a value"); |
| 2944 | 3020 |
| 2945 /** | 3021 /** |
| 2946 * 13.9 Switch: It is a static warning if the last statement of the statement
sequence | 3022 * 13.9 Switch: It is a static warning if the last statement of the statement
sequence |
| 2947 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement. | 3023 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement. |
| 2948 */ | 3024 */ |
| 2949 static const StaticWarningCode CASE_BLOCK_NOT_TERMINATED = const StaticWarning
Code.con1('CASE_BLOCK_NOT_TERMINATED', 5, "The last statement of the 'case' shou
ld be 'break', 'continue', 'return' or 'throw'"); | 3025 static const StaticWarningCode CASE_BLOCK_NOT_TERMINATED = const StaticWarning
Code.con1('CASE_BLOCK_NOT_TERMINATED', 6, "The last statement of the 'case' shou
ld be 'break', 'continue', 'return' or 'throw'"); |
| 2950 | 3026 |
| 2951 /** | 3027 /** |
| 2952 * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type
available in the | 3028 * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type
available in the |
| 2953 * current lexical scope. | 3029 * current lexical scope. |
| 2954 */ | 3030 */ |
| 2955 static const StaticWarningCode CAST_TO_NON_TYPE = const StaticWarningCode.con1
('CAST_TO_NON_TYPE', 6, "The name '%s' is not a type and cannot be used in an 'a
s' expression"); | 3031 static const StaticWarningCode CAST_TO_NON_TYPE = const StaticWarningCode.con1
('CAST_TO_NON_TYPE', 7, "The name '%s' is not a type and cannot be used in an 'a
s' expression"); |
| 2956 | 3032 |
| 2957 /** | 3033 /** |
| 2958 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 3034 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
| 2959 * inherited in a concrete class. | 3035 * inherited in a concrete class. |
| 2960 */ | 3036 */ |
| 2961 static const StaticWarningCode CONCRETE_CLASS_WITH_ABSTRACT_MEMBER = const Sta
ticWarningCode.con1('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', 7, "'%s' must have a
method body because '%s' is not abstract"); | 3037 static const StaticWarningCode CONCRETE_CLASS_WITH_ABSTRACT_MEMBER = const Sta
ticWarningCode.con1('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', 8, "'%s' must have a
method body because '%s' is not abstract"); |
| 2962 | 3038 |
| 2963 /** | 3039 /** |
| 2964 * 14.1 Imports: If a name <i>N</i> is referenced by a library <i>L</i> and <i
>N</i> would be | 3040 * 14.1 Imports: If a name <i>N</i> is referenced by a library <i>L</i> and <i
>N</i> would be |
| 2965 * introduced into the top level scope of <i>L</i> by an import from a library
whose URI begins | 3041 * introduced into the top level scope of <i>L</i> by an import from a library
whose URI begins |
| 2966 * with <i>dart:</i> and an import from a library whose URI does not begin wit
h <i>dart:</i>: | 3042 * with <i>dart:</i> and an import from a library whose URI does not begin wit
h <i>dart:</i>: |
| 2967 * * The import from <i>dart:</i> is implicitly extended by a hide N clause. | 3043 * * The import from <i>dart:</i> is implicitly extended by a hide N clause. |
| 2968 * * A static warning is issued. | 3044 * * A static warning is issued. |
| 2969 * | 3045 * |
| 2970 * @param ambiguousName the ambiguous name | 3046 * @param ambiguousName the ambiguous name |
| 2971 * @param sdkLibraryName the name of the dart: library that the element is fou
nd | 3047 * @param sdkLibraryName the name of the dart: library that the element is fou
nd |
| 2972 * @param otherLibraryName the name of the non-dart: library that the element
is found | 3048 * @param otherLibraryName the name of the non-dart: library that the element
is found |
| 2973 */ | 3049 */ |
| 2974 static const StaticWarningCode CONFLICTING_DART_IMPORT = const StaticWarningCo
de.con1('CONFLICTING_DART_IMPORT', 8, "Element '%s' from SDK library '%s' is imp
licitly hidden by '%s'"); | 3050 static const StaticWarningCode CONFLICTING_DART_IMPORT = const StaticWarningCo
de.con1('CONFLICTING_DART_IMPORT', 9, "Element '%s' from SDK library '%s' is imp
licitly hidden by '%s'"); |
| 2975 | 3051 |
| 2976 /** | 3052 /** |
| 2977 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an instanc
e getter named | 3053 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an instanc
e getter named |
| 2978 * <i>v</i> and an accessible static member named <i>v</i> or <i>v=</i> is dec
lared in a | 3054 * <i>v</i> and an accessible static member named <i>v</i> or <i>v=</i> is dec
lared in a |
| 2979 * superclass of <i>C</i>. | 3055 * superclass of <i>C</i>. |
| 2980 * | 3056 * |
| 2981 * @param superName the name of the super class declaring a static member | 3057 * @param superName the name of the super class declaring a static member |
| 2982 */ | 3058 */ |
| 2983 static const StaticWarningCode CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMB
ER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_ME
MBER', 9, "Superclass '%s' declares static member with the same name"); | 3059 static const StaticWarningCode CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMB
ER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_ME
MBER', 10, "Superclass '%s' declares static member with the same name"); |
| 2984 | 3060 |
| 2985 /** | 3061 /** |
| 2986 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a
n instance method | 3062 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a
n instance method |
| 2987 * named <i>n</i> and has a setter named <i>n=</i>. | 3063 * named <i>n</i> and has a setter named <i>n=</i>. |
| 2988 */ | 3064 */ |
| 2989 static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER = const Stat
icWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER', 10, "Class '%s' declare
s instance method '%s', but also has a setter with the same name from '%s'"); | 3065 static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER = const Stat
icWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER', 11, "Class '%s' declare
s instance method '%s', but also has a setter with the same name from '%s'"); |
| 2990 | 3066 |
| 2991 /** | 3067 /** |
| 2992 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a
n instance method | 3068 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a
n instance method |
| 2993 * named <i>n</i> and has a setter named <i>n=</i>. | 3069 * named <i>n</i> and has a setter named <i>n=</i>. |
| 2994 */ | 3070 */ |
| 2995 static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER2 = const Sta
ticWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER2', 11, "Class '%s' decla
res the setter '%s', but also has an instance method in the same class"); | 3071 static const StaticWarningCode CONFLICTING_INSTANCE_METHOD_SETTER2 = const Sta
ticWarningCode.con1('CONFLICTING_INSTANCE_METHOD_SETTER2', 12, "Class '%s' decla
res the setter '%s', but also has an instance method in the same class"); |
| 2996 | 3072 |
| 2997 /** | 3073 /** |
| 2998 * 7.3 Setters: It is a static warning if a class <i>C</i> declares an instanc
e setter named | 3074 * 7.3 Setters: It is a static warning if a class <i>C</i> declares an instanc
e setter named |
| 2999 * <i>v=</i> and an accessible static member named <i>v=</i> or <i>v</i> is de
clared in a | 3075 * <i>v=</i> and an accessible static member named <i>v=</i> or <i>v</i> is de
clared in a |
| 3000 * superclass of <i>C</i>. | 3076 * superclass of <i>C</i>. |
| 3001 * | 3077 * |
| 3002 * @param superName the name of the super class declaring a static member | 3078 * @param superName the name of the super class declaring a static member |
| 3003 */ | 3079 */ |
| 3004 static const StaticWarningCode CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMB
ER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_ME
MBER', 12, "Superclass '%s' declares static member with the same name"); | 3080 static const StaticWarningCode CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMB
ER = const StaticWarningCode.con1('CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_ME
MBER', 13, "Superclass '%s' declares static member with the same name"); |
| 3005 | 3081 |
| 3006 /** | 3082 /** |
| 3007 * 7.2 Getters: It is a static warning if a class declares a static getter nam
ed <i>v</i> and also | 3083 * 7.2 Getters: It is a static warning if a class declares a static getter nam
ed <i>v</i> and also |
| 3008 * has a non-static setter named <i>v=</i>. | 3084 * has a non-static setter named <i>v=</i>. |
| 3009 */ | 3085 */ |
| 3010 static const StaticWarningCode CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER =
const StaticWarningCode.con1('CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER', 1
3, "Class '%s' declares non-static setter with the same name"); | 3086 static const StaticWarningCode CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER =
const StaticWarningCode.con1('CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER', 1
4, "Class '%s' declares non-static setter with the same name"); |
| 3011 | 3087 |
| 3012 /** | 3088 /** |
| 3013 * 7.3 Setters: It is a static warning if a class declares a static setter nam
ed <i>v=</i> and | 3089 * 7.3 Setters: It is a static warning if a class declares a static setter nam
ed <i>v=</i> and |
| 3014 * also has a non-static member named <i>v</i>. | 3090 * also has a non-static member named <i>v</i>. |
| 3015 */ | 3091 */ |
| 3016 static const StaticWarningCode CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER =
const StaticWarningCode.con1('CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER', 1
4, "Class '%s' declares non-static member with the same name"); | 3092 static const StaticWarningCode CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER =
const StaticWarningCode.con1('CONFLICTING_STATIC_SETTER_AND_INSTANCE_MEMBER', 1
5, "Class '%s' declares non-static member with the same name"); |
| 3017 | 3093 |
| 3018 /** | 3094 /** |
| 3019 * 12.11.2 Const: Given an instance creation expression of the form <i>const q
(a<sub>1</sub>, | 3095 * 12.11.2 Const: Given an instance creation expression of the form <i>const q
(a<sub>1</sub>, |
| 3020 * … a<sub>n</sub>)</i> it is a static warning if <i>q</i> is the const
ructor of an | 3096 * … a<sub>n</sub>)</i> it is a static warning if <i>q</i> is the const
ructor of an |
| 3021 * abstract class but <i>q</i> is not a factory constructor. | 3097 * abstract class but <i>q</i> is not a factory constructor. |
| 3022 */ | 3098 */ |
| 3023 static const StaticWarningCode CONST_WITH_ABSTRACT_CLASS = const StaticWarning
Code.con1('CONST_WITH_ABSTRACT_CLASS', 15, "Abstract classes cannot be created w
ith a 'const' expression"); | 3099 static const StaticWarningCode CONST_WITH_ABSTRACT_CLASS = const StaticWarning
Code.con1('CONST_WITH_ABSTRACT_CLASS', 16, "Abstract classes cannot be created w
ith a 'const' expression"); |
| 3024 | 3100 |
| 3025 /** | 3101 /** |
| 3026 * 12.7 Maps: It is a static warning if the values of any two keys in a map li
teral are equal. | 3102 * 12.7 Maps: It is a static warning if the values of any two keys in a map li
teral are equal. |
| 3027 */ | 3103 */ |
| 3028 static const StaticWarningCode EQUAL_KEYS_IN_MAP = const StaticWarningCode.con
1('EQUAL_KEYS_IN_MAP', 16, "Keys in a map cannot be equal"); | 3104 static const StaticWarningCode EQUAL_KEYS_IN_MAP = const StaticWarningCode.con
1('EQUAL_KEYS_IN_MAP', 17, "Keys in a map cannot be equal"); |
| 3029 | 3105 |
| 3030 /** | 3106 /** |
| 3031 * 14.2 Exports: It is a static warning to export two different libraries with
the same name. | 3107 * 14.2 Exports: It is a static warning to export two different libraries with
the same name. |
| 3032 * | 3108 * |
| 3033 * @param uri1 the uri pointing to a first library | 3109 * @param uri1 the uri pointing to a first library |
| 3034 * @param uri2 the uri pointing to a second library | 3110 * @param uri2 the uri pointing to a second library |
| 3035 * @param name the shared name of the exported libraries | 3111 * @param name the shared name of the exported libraries |
| 3036 */ | 3112 */ |
| 3037 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAME = const StaticWa
rningCode.con1('EXPORT_DUPLICATED_LIBRARY_NAME', 17, "The exported libraries '%s
' and '%s' should not have the same name '%s'"); | 3113 static const StaticWarningCode EXPORT_DUPLICATED_LIBRARY_NAME = const StaticWa
rningCode.con1('EXPORT_DUPLICATED_LIBRARY_NAME', 18, "The exported libraries '%s
' and '%s' should not have the same name '%s'"); |
| 3038 | 3114 |
| 3039 /** | 3115 /** |
| 3040 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</
i> or if <i>m > | 3116 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</
i> or if <i>m > |
| 3041 * n</i>. | 3117 * n</i>. |
| 3042 * | 3118 * |
| 3043 * @param requiredCount the maximum number of positional arguments | 3119 * @param requiredCount the maximum number of positional arguments |
| 3044 * @param argumentCount the actual number of positional arguments given | 3120 * @param argumentCount the actual number of positional arguments given |
| 3045 * @see #NOT_ENOUGH_REQUIRED_ARGUMENTS | 3121 * @see #NOT_ENOUGH_REQUIRED_ARGUMENTS |
| 3046 */ | 3122 */ |
| 3047 static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = const StaticWarnin
gCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 18, "%d positional arguments expected,
but %d found"); | 3123 static const StaticWarningCode EXTRA_POSITIONAL_ARGUMENTS = const StaticWarnin
gCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 19, "%d positional arguments expected,
but %d found"); |
| 3048 | 3124 |
| 3049 /** | 3125 /** |
| 3050 * 5. Variables: It is a static warning if a final instance variable that has
been initialized at | 3126 * 5. Variables: It is a static warning if a final instance variable that has
been initialized at |
| 3051 * its point of declaration is also initialized in a constructor. | 3127 * its point of declaration is also initialized in a constructor. |
| 3052 */ | 3128 */ |
| 3053 static const StaticWarningCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO
N = const StaticWarningCode.con1('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATI
ON', 19, "Values cannot be set in the constructor if they are final, and have al
ready been set"); | 3129 static const StaticWarningCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO
N = const StaticWarningCode.con1('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATI
ON', 20, "Values cannot be set in the constructor if they are final, and have al
ready been set"); |
| 3054 | 3130 |
| 3055 /** | 3131 /** |
| 3056 * 5. Variables: It is a static warning if a final instance variable that has
been initialized at | 3132 * 5. Variables: It is a static warning if a final instance variable that has
been initialized at |
| 3057 * its point of declaration is also initialized in a constructor. | 3133 * its point of declaration is also initialized in a constructor. |
| 3058 * | 3134 * |
| 3059 * @param name the name of the field in question | 3135 * @param name the name of the field in question |
| 3060 */ | 3136 */ |
| 3061 static const StaticWarningCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO
R = const StaticWarningCode.con1('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCT
OR', 20, "'%s' is final and was given a value when it was declared, so it cannot
be set to a new value"); | 3137 static const StaticWarningCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO
R = const StaticWarningCode.con1('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCT
OR', 21, "'%s' is final and was given a value when it was declared, so it cannot
be set to a new value"); |
| 3062 | 3138 |
| 3063 /** | 3139 /** |
| 3064 * 7.6.1 Generative Constructors: Execution of an initializer of the form <b>t
his</b>.<i>v</i> = | 3140 * 7.6.1 Generative Constructors: Execution of an initializer of the form <b>t
his</b>.<i>v</i> = |
| 3065 * <i>e</i> proceeds as follows: First, the expression <i>e</i> is evaluated t
o an object | 3141 * <i>e</i> proceeds as follows: First, the expression <i>e</i> is evaluated t
o an object |
| 3066 * <i>o</i>. Then, the instance variable <i>v</i> of the object denoted by thi
s is bound to | 3142 * <i>o</i>. Then, the instance variable <i>v</i> of the object denoted by thi
s is bound to |
| 3067 * <i>o</i>. | 3143 * <i>o</i>. |
| 3068 * | 3144 * |
| 3069 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of | 3145 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of |
| 3070 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= | 3146 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= |
| 3071 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. | 3147 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. |
| 3072 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= | 3148 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= |
| 3073 * j <= m</i>. | 3149 * j <= m</i>. |
| 3074 * | 3150 * |
| 3075 * @param initializerType the name of the type of the initializer expression | 3151 * @param initializerType the name of the type of the initializer expression |
| 3076 * @param fieldType the name of the type of the field | 3152 * @param fieldType the name of the type of the field |
| 3077 */ | 3153 */ |
| 3078 static const StaticWarningCode FIELD_INITIALIZER_NOT_ASSIGNABLE = const Static
WarningCode.con1('FIELD_INITIALIZER_NOT_ASSIGNABLE', 21, "The initializer type '
%s' cannot be assigned to the field type '%s'"); | 3154 static const StaticWarningCode FIELD_INITIALIZER_NOT_ASSIGNABLE = const Static
WarningCode.con1('FIELD_INITIALIZER_NOT_ASSIGNABLE', 22, "The initializer type '
%s' cannot be assigned to the field type '%s'"); |
| 3079 | 3155 |
| 3080 /** | 3156 /** |
| 3081 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a | 3157 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a |
| 3082 * static warning if the static type of <i>id</i> is not assignable to <i>T<su
b>id</sub></i>. | 3158 * static warning if the static type of <i>id</i> is not assignable to <i>T<su
b>id</sub></i>. |
| 3083 * | 3159 * |
| 3084 * @param parameterType the name of the type of the field formal parameter | 3160 * @param parameterType the name of the type of the field formal parameter |
| 3085 * @param fieldType the name of the type of the field | 3161 * @param fieldType the name of the type of the field |
| 3086 */ | 3162 */ |
| 3087 static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = cons
t StaticWarningCode.con1('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 22, "The pa
rameter type '%s' is incompatable with the field type '%s'"); | 3163 static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = cons
t StaticWarningCode.con1('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 23, "The pa
rameter type '%s' is incompatable with the field type '%s'"); |
| 3088 | 3164 |
| 3089 /** | 3165 /** |
| 3090 * 5 Variables: It is a static warning if a library, static or local variable
<i>v</i> is final | 3166 * 5 Variables: It is a static warning if a library, static or local variable
<i>v</i> is final |
| 3091 * and <i>v</i> is not initialized at its point of declaration. | 3167 * and <i>v</i> is not initialized at its point of declaration. |
| 3092 * | 3168 * |
| 3093 * 7.6.1 Generative Constructors: Each final instance variable <i>f</i> declar
ed in the | 3169 * 7.6.1 Generative Constructors: Each final instance variable <i>f</i> declar
ed in the |
| 3094 * immediately enclosing class must have an initializer in <i>k</i>'s initiali
zer list unless it | 3170 * immediately enclosing class must have an initializer in <i>k</i>'s initiali
zer list unless it |
| 3095 * has already been initialized by one of the following means: | 3171 * has already been initialized by one of the following means: |
| 3096 * * Initialization at the declaration of <i>f</i>. | 3172 * * Initialization at the declaration of <i>f</i>. |
| 3097 * * Initialization by means of an initializing formal of <i>k</i>. | 3173 * * Initialization by means of an initializing formal of <i>k</i>. |
| 3098 * or a static warning occurs. | 3174 * or a static warning occurs. |
| 3099 * | 3175 * |
| 3100 * @param name the name of the uninitialized final variable | 3176 * @param name the name of the uninitialized final variable |
| 3101 */ | 3177 */ |
| 3102 static const StaticWarningCode FINAL_NOT_INITIALIZED = const StaticWarningCode
.con1('FINAL_NOT_INITIALIZED', 23, "The final variable '%s' must be initialized"
); | 3178 static const StaticWarningCode FINAL_NOT_INITIALIZED = const StaticWarningCode
.con1('FINAL_NOT_INITIALIZED', 24, "The final variable '%s' must be initialized"
); |
| 3103 | 3179 |
| 3104 /** | 3180 /** |
| 3105 * 15.5 Function Types: It is a static warning if a concrete class implements
Function and does | 3181 * 15.5 Function Types: It is a static warning if a concrete class implements
Function and does |
| 3106 * not have a concrete method named call(). | 3182 * not have a concrete method named call(). |
| 3107 */ | 3183 */ |
| 3108 static const StaticWarningCode FUNCTION_WITHOUT_CALL = const StaticWarningCode
.con1('FUNCTION_WITHOUT_CALL', 24, "Concrete classes that implement Function mus
t implement the method call()"); | 3184 static const StaticWarningCode FUNCTION_WITHOUT_CALL = const StaticWarningCode
.con1('FUNCTION_WITHOUT_CALL', 25, "Concrete classes that implement Function mus
t implement the method call()"); |
| 3109 | 3185 |
| 3110 /** | 3186 /** |
| 3111 * 14.1 Imports: It is a static warning to import two different libraries with
the same name. | 3187 * 14.1 Imports: It is a static warning to import two different libraries with
the same name. |
| 3112 * | 3188 * |
| 3113 * @param uri1 the uri pointing to a first library | 3189 * @param uri1 the uri pointing to a first library |
| 3114 * @param uri2 the uri pointing to a second library | 3190 * @param uri2 the uri pointing to a second library |
| 3115 * @param name the shared name of the imported libraries | 3191 * @param name the shared name of the imported libraries |
| 3116 */ | 3192 */ |
| 3117 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWa
rningCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 25, "The imported libraries '%s
' and '%s' should not have the same name '%s'"); | 3193 static const StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = const StaticWa
rningCode.con1('IMPORT_DUPLICATED_LIBRARY_NAME', 26, "The imported libraries '%s
' and '%s' should not have the same name '%s'"); |
| 3118 | 3194 |
| 3119 /** | 3195 /** |
| 3120 * 14.1 Imports: It is a static warning if the specified URI of a deferred imp
ort does not refer | 3196 * 14.1 Imports: It is a static warning if the specified URI of a deferred imp
ort does not refer |
| 3121 * to a library declaration. | 3197 * to a library declaration. |
| 3122 * | 3198 * |
| 3123 * @param uri the uri pointing to a non-library declaration | 3199 * @param uri the uri pointing to a non-library declaration |
| 3124 * @see CompileTimeErrorCode#IMPORT_OF_NON_LIBRARY | 3200 * @see CompileTimeErrorCode#IMPORT_OF_NON_LIBRARY |
| 3125 */ | 3201 */ |
| 3126 static const StaticWarningCode IMPORT_OF_NON_LIBRARY = const StaticWarningCode
.con1('IMPORT_OF_NON_LIBRARY', 26, "The imported library '%s' must not have a pa
rt-of directive"); | 3202 static const StaticWarningCode IMPORT_OF_NON_LIBRARY = const StaticWarningCode
.con1('IMPORT_OF_NON_LIBRARY', 27, "The imported library '%s' must not have a pa
rt-of directive"); |
| 3127 | 3203 |
| 3128 /** | 3204 /** |
| 3129 * 8.1.1 Inheritance and Overriding: However, if the above rules would cause m
ultiple members | 3205 * 8.1.1 Inheritance and Overriding: However, if the above rules would cause m
ultiple members |
| 3130 * <i>m<sub>1</sub>, …, m<sub>k</sub></i> with the same name <i>n</i> t
hat would be | 3206 * <i>m<sub>1</sub>, …, m<sub>k</sub></i> with the same name <i>n</i> t
hat would be |
| 3131 * inherited (because identically named members existed in several superinterf
aces) then at most | 3207 * inherited (because identically named members existed in several superinterf
aces) then at most |
| 3132 * one member is inherited. | 3208 * one member is inherited. |
| 3133 * | 3209 * |
| 3134 * If some but not all of the <i>m<sub>i</sub>, 1 <= i <= k</i> are gett
ers none of the | 3210 * If some but not all of the <i>m<sub>i</sub>, 1 <= i <= k</i> are gett
ers none of the |
| 3135 * <i>m<sub>i</sub></i> are inherited, and a static warning is issued. | 3211 * <i>m<sub>i</sub></i> are inherited, and a static warning is issued. |
| 3136 */ | 3212 */ |
| 3137 static const StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH
OD = const StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_ME
THOD', 27, "'%s' is inherited as a getter and also a method"); | 3213 static const StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH
OD = const StaticWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_ME
THOD', 28, "'%s' is inherited as a getter and also a method"); |
| 3138 | 3214 |
| 3139 /** | 3215 /** |
| 3140 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a
n instance method | 3216 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a
n instance method |
| 3141 * named <i>n</i> and an accessible static member named <i>n</i> is declared i
n a superclass of | 3217 * named <i>n</i> and an accessible static member named <i>n</i> is declared i
n a superclass of |
| 3142 * <i>C</i>. | 3218 * <i>C</i>. |
| 3143 * | 3219 * |
| 3144 * @param memberName the name of the member with the name conflict | 3220 * @param memberName the name of the member with the name conflict |
| 3145 * @param superclassName the name of the enclosing class that has the static m
ember | 3221 * @param superclassName the name of the enclosing class that has the static m
ember |
| 3146 */ | 3222 */ |
| 3147 static const StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_S
TATIC = const StaticWarningCode.con1('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCL
ASS_STATIC', 28, "'%s' collides with a static member in the superclass '%s'"); | 3223 static const StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_S
TATIC = const StaticWarningCode.con1('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCL
ASS_STATIC', 29, "'%s' collides with a static member in the superclass '%s'"); |
| 3148 | 3224 |
| 3149 /** | 3225 /** |
| 3150 * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a gette
r <i>m2</i> and the | 3226 * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a gette
r <i>m2</i> and the |
| 3151 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. | 3227 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. |
| 3152 * | 3228 * |
| 3153 * @param actualReturnTypeName the name of the expected return type | 3229 * @param actualReturnTypeName the name of the expected return type |
| 3154 * @param expectedReturnType the name of the actual return type, not assignabl
e to the | 3230 * @param expectedReturnType the name of the actual return type, not assignabl
e to the |
| 3155 * actualReturnTypeName | 3231 * actualReturnTypeName |
| 3156 * @param className the name of the class where the overridden getter is decla
red | 3232 * @param className the name of the class where the overridden getter is decla
red |
| 3157 * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE | 3233 * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE |
| 3158 */ | 3234 */ |
| 3159 static const StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = const Sta
ticWarningCode.con1('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 29, "The return type
'%s' is not assignable to '%s' as required by the getter it is overriding from '
%s'"); | 3235 static const StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = const Sta
ticWarningCode.con1('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 30, "The return type
'%s' is not assignable to '%s' as required by the getter it is overriding from '
%s'"); |
| 3160 | 3236 |
| 3161 /** | 3237 /** |
| 3162 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3238 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3163 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. | 3239 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. |
| 3164 * | 3240 * |
| 3165 * @param actualParamTypeName the name of the expected parameter type | 3241 * @param actualParamTypeName the name of the expected parameter type |
| 3166 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the | 3242 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the |
| 3167 * actualParamTypeName | 3243 * actualParamTypeName |
| 3168 * @param className the name of the class where the overridden method is decla
red | 3244 * @param className the name of the class where the overridden method is decla
red |
| 3169 */ | 3245 */ |
| 3170 static const StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = cons
t StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 30, "The pa
rameter type '%s' is not assignable to '%s' as required by the method it is over
riding from '%s'"); | 3246 static const StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = cons
t StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 31, "The pa
rameter type '%s' is not assignable to '%s' as required by the method it is over
riding from '%s'"); |
| 3171 | 3247 |
| 3172 /** | 3248 /** |
| 3173 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3249 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3174 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. | 3250 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. |
| 3175 * | 3251 * |
| 3176 * @param actualParamTypeName the name of the expected parameter type | 3252 * @param actualParamTypeName the name of the expected parameter type |
| 3177 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the | 3253 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the |
| 3178 * actualParamTypeName | 3254 * actualParamTypeName |
| 3179 * @param className the name of the class where the overridden method is decla
red | 3255 * @param className the name of the class where the overridden method is decla
red |
| 3180 * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE | 3256 * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE |
| 3181 */ | 3257 */ |
| 3182 static const StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = con
st StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 31, "The
parameter type '%s' is not assignable to '%s' as required by the method it is ov
erriding from '%s'"); | 3258 static const StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = con
st StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 32, "The
parameter type '%s' is not assignable to '%s' as required by the method it is ov
erriding from '%s'"); |
| 3183 | 3259 |
| 3184 /** | 3260 /** |
| 3185 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3261 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3186 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. | 3262 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. |
| 3187 * | 3263 * |
| 3188 * @param actualParamTypeName the name of the expected parameter type | 3264 * @param actualParamTypeName the name of the expected parameter type |
| 3189 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the | 3265 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the |
| 3190 * actualParamTypeName | 3266 * actualParamTypeName |
| 3191 * @param className the name of the class where the overridden method is decla
red | 3267 * @param className the name of the class where the overridden method is decla
red |
| 3192 */ | 3268 */ |
| 3193 static const StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = c
onst StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 32, "
The parameter type '%s' is not assignable to '%s' as required by the method it i
s overriding from '%s'"); | 3269 static const StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = c
onst StaticWarningCode.con1('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 33, "
The parameter type '%s' is not assignable to '%s' as required by the method it i
s overriding from '%s'"); |
| 3194 | 3270 |
| 3195 /** | 3271 /** |
| 3196 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3272 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3197 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. | 3273 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the
type of <i>m2</i>. |
| 3198 * | 3274 * |
| 3199 * @param actualReturnTypeName the name of the expected return type | 3275 * @param actualReturnTypeName the name of the expected return type |
| 3200 * @param expectedReturnType the name of the actual return type, not assignabl
e to the | 3276 * @param expectedReturnType the name of the actual return type, not assignabl
e to the |
| 3201 * actualReturnTypeName | 3277 * actualReturnTypeName |
| 3202 * @param className the name of the class where the overridden method is decla
red | 3278 * @param className the name of the class where the overridden method is decla
red |
| 3203 * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE | 3279 * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE |
| 3204 */ | 3280 */ |
| 3205 static const StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = const Sta
ticWarningCode.con1('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 33, "The return type
'%s' is not assignable to '%s' as required by the method it is overriding from '
%s'"); | 3281 static const StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = const Sta
ticWarningCode.con1('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 34, "The return type
'%s' is not assignable to '%s' as required by the method it is overriding from '
%s'"); |
| 3206 | 3282 |
| 3207 /** | 3283 /** |
| 3208 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3284 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3209 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for | 3285 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for |
| 3210 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value | 3286 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value |
| 3211 * for <i>p</i>. | 3287 * for <i>p</i>. |
| 3212 */ | 3288 */ |
| 3213 static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED
= const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED
', 34, "Parameters cannot override default values, this method overrides '%s.%s'
where '%s' has a different value"); | 3289 static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED
= const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED
', 35, "Parameters cannot override default values, this method overrides '%s.%s'
where '%s' has a different value"); |
| 3214 | 3290 |
| 3215 /** | 3291 /** |
| 3216 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3292 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3217 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for | 3293 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for |
| 3218 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value | 3294 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value |
| 3219 * for <i>p</i>. | 3295 * for <i>p</i>. |
| 3220 */ | 3296 */ |
| 3221 static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSIT
IONAL = const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_
POSITIONAL', 35, "Parameters cannot override default values, this method overrid
es '%s.%s' where this positional parameter has a different value"); | 3297 static const StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSIT
IONAL = const StaticWarningCode.con1('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_
POSITIONAL', 36, "Parameters cannot override default values, this method overrid
es '%s.%s' where this positional parameter has a different value"); |
| 3222 | 3298 |
| 3223 /** | 3299 /** |
| 3224 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3300 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3225 * instance member <i>m2</i> and <i>m1</i> does not declare all the named para
meters declared by | 3301 * instance member <i>m2</i> and <i>m1</i> does not declare all the named para
meters declared by |
| 3226 * <i>m2</i>. | 3302 * <i>m2</i>. |
| 3227 * | 3303 * |
| 3228 * @param paramCount the number of named parameters in the overridden member | 3304 * @param paramCount the number of named parameters in the overridden member |
| 3229 * @param className the name of the class from the overridden method | 3305 * @param className the name of the class from the overridden method |
| 3230 */ | 3306 */ |
| 3231 static const StaticWarningCode INVALID_OVERRIDE_NAMED = const StaticWarningCod
e.con1('INVALID_OVERRIDE_NAMED', 36, "Missing the named parameter '%s' to match
the overridden method from '%s'"); | 3307 static const StaticWarningCode INVALID_OVERRIDE_NAMED = const StaticWarningCod
e.con1('INVALID_OVERRIDE_NAMED', 37, "Missing the named parameter '%s' to match
the overridden method from '%s'"); |
| 3232 | 3308 |
| 3233 /** | 3309 /** |
| 3234 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3310 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3235 * instance member <i>m2</i> and <i>m1</i> has fewer positional parameters tha
n <i>m2</i>. | 3311 * instance member <i>m2</i> and <i>m1</i> has fewer positional parameters tha
n <i>m2</i>. |
| 3236 * | 3312 * |
| 3237 * @param paramCount the number of positional parameters in the overridden mem
ber | 3313 * @param paramCount the number of positional parameters in the overridden mem
ber |
| 3238 * @param className the name of the class from the overridden method | 3314 * @param className the name of the class from the overridden method |
| 3239 */ | 3315 */ |
| 3240 static const StaticWarningCode INVALID_OVERRIDE_POSITIONAL = const StaticWarni
ngCode.con1('INVALID_OVERRIDE_POSITIONAL', 37, "Must have at least %d parameters
to match the overridden method from '%s'"); | 3316 static const StaticWarningCode INVALID_OVERRIDE_POSITIONAL = const StaticWarni
ngCode.con1('INVALID_OVERRIDE_POSITIONAL', 38, "Must have at least %d parameters
to match the overridden method from '%s'"); |
| 3241 | 3317 |
| 3242 /** | 3318 /** |
| 3243 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 3319 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
| 3244 * instance member <i>m2</i> and <i>m1</i> has a greater number of required pa
rameters than | 3320 * instance member <i>m2</i> and <i>m1</i> has a greater number of required pa
rameters than |
| 3245 * <i>m2</i>. | 3321 * <i>m2</i>. |
| 3246 * | 3322 * |
| 3247 * @param paramCount the number of required parameters in the overridden membe
r | 3323 * @param paramCount the number of required parameters in the overridden membe
r |
| 3248 * @param className the name of the class from the overridden method | 3324 * @param className the name of the class from the overridden method |
| 3249 */ | 3325 */ |
| 3250 static const StaticWarningCode INVALID_OVERRIDE_REQUIRED = const StaticWarning
Code.con1('INVALID_OVERRIDE_REQUIRED', 38, "Must have %d required parameters or
less to match the overridden method from '%s'"); | 3326 static const StaticWarningCode INVALID_OVERRIDE_REQUIRED = const StaticWarning
Code.con1('INVALID_OVERRIDE_REQUIRED', 39, "Must have %d required parameters or
less to match the overridden method from '%s'"); |
| 3251 | 3327 |
| 3252 /** | 3328 /** |
| 3253 * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a sette
r <i>m2</i> and the | 3329 * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a sette
r <i>m2</i> and the |
| 3254 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. | 3330 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. |
| 3255 * | 3331 * |
| 3256 * @param actualParamTypeName the name of the expected parameter type | 3332 * @param actualParamTypeName the name of the expected parameter type |
| 3257 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the | 3333 * @param expectedParamType the name of the actual parameter type, not assigna
ble to the |
| 3258 * actualParamTypeName | 3334 * actualParamTypeName |
| 3259 * @param className the name of the class where the overridden setter is decla
red | 3335 * @param className the name of the class where the overridden setter is decla
red |
| 3260 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE | 3336 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE |
| 3261 */ | 3337 */ |
| 3262 static const StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = con
st StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 39, "The
parameter type '%s' is not assignable to '%s' as required by the setter it is ov
erriding from '%s'"); | 3338 static const StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = con
st StaticWarningCode.con1('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 40, "The
parameter type '%s' is not assignable to '%s' as required by the setter it is ov
erriding from '%s'"); |
| 3263 | 3339 |
| 3264 /** | 3340 /** |
| 3265 * 12.6 Lists: A run-time list literal <<i>E</i>> [<i>e<sub>1</sub></i>
… | 3341 * 12.6 Lists: A run-time list literal <<i>E</i>> [<i>e<sub>1</sub></i>
… |
| 3266 * <i>e<sub>n</sub></i>] is evaluated as follows: | 3342 * <i>e<sub>n</sub></i>] is evaluated as follows: |
| 3267 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and
second argument | 3343 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and
second argument |
| 3268 * <i>o<sub>i+1</sub></i><i>, 1 <= i <= n</i> | 3344 * <i>o<sub>i+1</sub></i><i>, 1 <= i <= n</i> |
| 3269 * | 3345 * |
| 3270 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of | 3346 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of |
| 3271 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= | 3347 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= |
| 3272 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. | 3348 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. |
| 3273 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= | 3349 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= |
| 3274 * j <= m</i>. | 3350 * j <= m</i>. |
| 3275 */ | 3351 */ |
| 3276 static const StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const Static
WarningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 40, "The element type '%s'
cannot be assigned to the list type '%s'"); | 3352 static const StaticWarningCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const Static
WarningCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s'
cannot be assigned to the list type '%s'"); |
| 3277 | 3353 |
| 3278 /** | 3354 /** |
| 3279 * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</su
b></i> : | 3355 * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</su
b></i> : |
| 3280 * <i>e<sub>1</sub></i> … <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>]
is evaluated as | 3356 * <i>e<sub>1</sub></i> … <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>]
is evaluated as |
| 3281 * follows: | 3357 * follows: |
| 3282 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s
ub></i> and second | 3358 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s
ub></i> and second |
| 3283 * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i> | 3359 * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i> |
| 3284 * | 3360 * |
| 3285 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of | 3361 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of |
| 3286 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= | 3362 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= |
| 3287 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. | 3363 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. |
| 3288 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= | 3364 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= |
| 3289 * j <= m</i>. | 3365 * j <= m</i>. |
| 3290 */ | 3366 */ |
| 3291 static const StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const StaticWarni
ngCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 41, "The element type '%s' cannot be
assigned to the map key type '%s'"); | 3367 static const StaticWarningCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const StaticWarni
ngCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 42, "The element type '%s' cannot be
assigned to the map key type '%s'"); |
| 3292 | 3368 |
| 3293 /** | 3369 /** |
| 3294 * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</su
b></i> : | 3370 * 12.7 Map: A run-time map literal <<i>K</i>, <i>V</i>> [<i>k<sub>1</su
b></i> : |
| 3295 * <i>e<sub>1</sub></i> … <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>]
is evaluated as | 3371 * <i>e<sub>1</sub></i> … <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>]
is evaluated as |
| 3296 * follows: | 3372 * follows: |
| 3297 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s
ub></i> and second | 3373 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s
ub></i> and second |
| 3298 * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i> | 3374 * argument <i>e<sub>i</sub></i><i>, 1 <= i <= n</i> |
| 3299 * | 3375 * |
| 3300 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of | 3376 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static
type of |
| 3301 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= | 3377 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s
ub>, 1 <= i <= |
| 3302 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. | 3378 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>
q</i> of <i>f</i>. |
| 3303 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= | 3379 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<
sub>j</sub>, 1 <= |
| 3304 * j <= m</i>. | 3380 * j <= m</i>. |
| 3305 */ | 3381 */ |
| 3306 static const StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const StaticWar
ningCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 42, "The element type '%s' cannot
be assigned to the map value type '%s'"); | 3382 static const StaticWarningCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const StaticWar
ningCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 43, "The element type '%s' cannot
be assigned to the map value type '%s'"); |
| 3307 | 3383 |
| 3308 /** | 3384 /** |
| 3309 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type | 3385 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type |
| 3310 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be | 3386 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be |
| 3311 * assigned to <i>S</i>. | 3387 * assigned to <i>S</i>. |
| 3312 */ | 3388 */ |
| 3313 static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = const Stat
icWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES', 43, "The parameter type
for setter '%s' is '%s' which is not assignable to its getter (of type '%s')"); | 3389 static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = const Stat
icWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES', 44, "The parameter type
for setter '%s' is '%s' which is not assignable to its getter (of type '%s')"); |
| 3314 | 3390 |
| 3315 /** | 3391 /** |
| 3316 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type | 3392 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type |
| 3317 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be | 3393 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be |
| 3318 * assigned to <i>S</i>. | 3394 * assigned to <i>S</i>. |
| 3319 */ | 3395 */ |
| 3320 static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTY
PE = const StaticWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPER
TYPE', 44, "The parameter type for setter '%s' is '%s' which is not assignable t
o its getter (of type '%s'), from superclass '%s'"); | 3396 static const StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPERTY
PE = const StaticWarningCode.con1('MISMATCHED_GETTER_AND_SETTER_TYPES_FROM_SUPER
TYPE', 45, "The parameter type for setter '%s' is '%s' which is not assignable t
o its getter (of type '%s'), from superclass '%s'"); |
| 3321 | 3397 |
| 3322 /** | 3398 /** |
| 3323 * 13.12 Return: It is a static warning if a function contains both one or mor
e return statements | 3399 * 13.12 Return: It is a static warning if a function contains both one or mor
e return statements |
| 3324 * of the form <i>return;</i> and one or more return statements of the form <i
>return e;</i>. | 3400 * of the form <i>return;</i> and one or more return statements of the form <i
>return e;</i>. |
| 3325 */ | 3401 */ |
| 3326 static const StaticWarningCode MIXED_RETURN_TYPES = const StaticWarningCode.co
n1('MIXED_RETURN_TYPES', 45, "Methods and functions cannot use return both with
and without values"); | 3402 static const StaticWarningCode MIXED_RETURN_TYPES = const StaticWarningCode.co
n1('MIXED_RETURN_TYPES', 46, "Methods and functions cannot use return both with
and without values"); |
| 3327 | 3403 |
| 3328 /** | 3404 /** |
| 3329 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst
ract class and | 3405 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst
ract class and |
| 3330 * <i>q</i> is not a factory constructor. | 3406 * <i>q</i> is not a factory constructor. |
| 3331 */ | 3407 */ |
| 3332 static const StaticWarningCode NEW_WITH_ABSTRACT_CLASS = const StaticWarningCo
de.con1('NEW_WITH_ABSTRACT_CLASS', 46, "Abstract classes cannot be created with
a 'new' expression"); | 3408 static const StaticWarningCode NEW_WITH_ABSTRACT_CLASS = const StaticWarningCo
de.con1('NEW_WITH_ABSTRACT_CLASS', 47, "Abstract classes cannot be created with
a 'new' expression"); |
| 3333 | 3409 |
| 3334 /** | 3410 /** |
| 3335 * 15.8 Parameterized Types: Any use of a malbounded type gives rise to a stat
ic warning. | 3411 * 15.8 Parameterized Types: Any use of a malbounded type gives rise to a stat
ic warning. |
| 3336 * | 3412 * |
| 3337 * @param typeName the name of the type being referenced (<i>S</i>) | 3413 * @param typeName the name of the type being referenced (<i>S</i>) |
| 3338 * @param parameterCount the number of type parameters that were declared | 3414 * @param parameterCount the number of type parameters that were declared |
| 3339 * @param argumentCount the number of type arguments provided | 3415 * @param argumentCount the number of type arguments provided |
| 3340 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS | 3416 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS |
| 3341 * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS | 3417 * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS |
| 3342 */ | 3418 */ |
| 3343 static const StaticWarningCode NEW_WITH_INVALID_TYPE_PARAMETERS = const Static
WarningCode.con1('NEW_WITH_INVALID_TYPE_PARAMETERS', 47, "The type '%s' is decla
red with %d type parameters, but %d type arguments were given"); | 3419 static const StaticWarningCode NEW_WITH_INVALID_TYPE_PARAMETERS = const Static
WarningCode.con1('NEW_WITH_INVALID_TYPE_PARAMETERS', 48, "The type '%s' is decla
red with %d type parameters, but %d type arguments were given"); |
| 3344 | 3420 |
| 3345 /** | 3421 /** |
| 3346 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i
n the current scope, | 3422 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i
n the current scope, |
| 3347 * optionally followed by type arguments. | 3423 * optionally followed by type arguments. |
| 3348 * | 3424 * |
| 3349 * @param name the name of the non-type element | 3425 * @param name the name of the non-type element |
| 3350 */ | 3426 */ |
| 3351 static const StaticWarningCode NEW_WITH_NON_TYPE = const StaticWarningCode.con
1('NEW_WITH_NON_TYPE', 48, "The name '%s' is not a class"); | 3427 static const StaticWarningCode NEW_WITH_NON_TYPE = const StaticWarningCode.con
1('NEW_WITH_NON_TYPE', 49, "The name '%s' is not a class"); |
| 3352 | 3428 |
| 3353 /** | 3429 /** |
| 3354 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: | 3430 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: |
| 3355 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, | 3431 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, |
| 3356 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a | 3432 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a |
| 3357 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. | 3433 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. |
| 3358 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: | 3434 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: |
| 3359 * a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a st
atic warning if the | 3435 * a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a st
atic warning if the |
| 3360 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. | 3436 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. |
| 3361 */ | 3437 */ |
| 3362 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = const StaticWa
rningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 49, "The class '%s' does not ha
ve a constructor '%s'"); | 3438 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = const StaticWa
rningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR', 50, "The class '%s' does not ha
ve a constructor '%s'"); |
| 3363 | 3439 |
| 3364 /** | 3440 /** |
| 3365 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: | 3441 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: |
| 3366 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, | 3442 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, |
| 3367 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a | 3443 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a |
| 3368 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. | 3444 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. |
| 3369 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: | 3445 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: |
| 3370 * a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a st
atic warning if the | 3446 * a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a st
atic warning if the |
| 3371 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. | 3447 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. |
| 3372 */ | 3448 */ |
| 3373 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const
StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 50, "The class
'%s' does not have a default constructor"); | 3449 static const StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = const
StaticWarningCode.con1('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 51, "The class
'%s' does not have a default constructor"); |
| 3374 | 3450 |
| 3375 /** | 3451 /** |
| 3376 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 3452 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 3377 * abstract method. | 3453 * abstract method. |
| 3378 * | 3454 * |
| 3379 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 3455 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
| 3380 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 3456 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
| 3381 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 3457 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
| 3382 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 3458 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
| 3383 * | 3459 * |
| 3384 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 3460 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
| 3385 * inherited in a concrete class unless that member overrides a concrete one. | 3461 * inherited in a concrete class unless that member overrides a concrete one. |
| 3386 * | 3462 * |
| 3387 * @param memberName the name of the first member | 3463 * @param memberName the name of the first member |
| 3388 * @param memberName the name of the second member | 3464 * @param memberName the name of the second member |
| 3389 * @param memberName the name of the third member | 3465 * @param memberName the name of the third member |
| 3390 * @param memberName the name of the fourth member | 3466 * @param memberName the name of the fourth member |
| 3391 * @param additionalCount the number of additional missing members that aren't
listed | 3467 * @param additionalCount the number of additional missing members that aren't
listed |
| 3392 */ | 3468 */ |
| 3393 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV
E_PLUS = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMB
ER_FIVE_PLUS', 51, "Missing concrete implementation of %s, %s, %s, %s and %d mor
e"); | 3469 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV
E_PLUS = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMB
ER_FIVE_PLUS', 52, "Missing concrete implementation of %s, %s, %s, %s and %d mor
e"); |
| 3394 | 3470 |
| 3395 /** | 3471 /** |
| 3396 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 3472 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 3397 * abstract method. | 3473 * abstract method. |
| 3398 * | 3474 * |
| 3399 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 3475 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
| 3400 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 3476 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
| 3401 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 3477 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
| 3402 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 3478 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
| 3403 * | 3479 * |
| 3404 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 3480 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
| 3405 * inherited in a concrete class unless that member overrides a concrete one. | 3481 * inherited in a concrete class unless that member overrides a concrete one. |
| 3406 * | 3482 * |
| 3407 * @param memberName the name of the first member | 3483 * @param memberName the name of the first member |
| 3408 * @param memberName the name of the second member | 3484 * @param memberName the name of the second member |
| 3409 * @param memberName the name of the third member | 3485 * @param memberName the name of the third member |
| 3410 * @param memberName the name of the fourth member | 3486 * @param memberName the name of the fourth member |
| 3411 */ | 3487 */ |
| 3412 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU
R = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FO
UR', 52, "Missing concrete implementation of %s, %s, %s and %s"); | 3488 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU
R = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FO
UR', 53, "Missing concrete implementation of %s, %s, %s and %s"); |
| 3413 | 3489 |
| 3414 /** | 3490 /** |
| 3415 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 3491 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 3416 * abstract method. | 3492 * abstract method. |
| 3417 * | 3493 * |
| 3418 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 3494 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
| 3419 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 3495 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
| 3420 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 3496 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
| 3421 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 3497 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
| 3422 * | 3498 * |
| 3423 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 3499 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
| 3424 * inherited in a concrete class unless that member overrides a concrete one. | 3500 * inherited in a concrete class unless that member overrides a concrete one. |
| 3425 * | 3501 * |
| 3426 * @param memberName the name of the member | 3502 * @param memberName the name of the member |
| 3427 */ | 3503 */ |
| 3428 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
= const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
', 53, "Missing concrete implementation of %s"); | 3504 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
= const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
', 54, "Missing concrete implementation of %s"); |
| 3429 | 3505 |
| 3430 /** | 3506 /** |
| 3431 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 3507 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 3432 * abstract method. | 3508 * abstract method. |
| 3433 * | 3509 * |
| 3434 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 3510 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
| 3435 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 3511 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
| 3436 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 3512 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
| 3437 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 3513 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
| 3438 * | 3514 * |
| 3439 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 3515 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
| 3440 * inherited in a concrete class unless that member overrides a concrete one. | 3516 * inherited in a concrete class unless that member overrides a concrete one. |
| 3441 * | 3517 * |
| 3442 * @param memberName the name of the first member | 3518 * @param memberName the name of the first member |
| 3443 * @param memberName the name of the second member | 3519 * @param memberName the name of the second member |
| 3444 * @param memberName the name of the third member | 3520 * @param memberName the name of the third member |
| 3445 */ | 3521 */ |
| 3446 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_T
HREE', 54, "Missing concrete implementation of %s, %s and %s"); | 3522 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE = const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_T
HREE', 55, "Missing concrete implementation of %s, %s and %s"); |
| 3447 | 3523 |
| 3448 /** | 3524 /** |
| 3449 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 3525 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 3450 * abstract method. | 3526 * abstract method. |
| 3451 * | 3527 * |
| 3452 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 3528 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
| 3453 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 3529 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
| 3454 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 3530 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
| 3455 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 3531 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
| 3456 * | 3532 * |
| 3457 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 3533 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
| 3458 * inherited in a concrete class unless that member overrides a concrete one. | 3534 * inherited in a concrete class unless that member overrides a concrete one. |
| 3459 * | 3535 * |
| 3460 * @param memberName the name of the first member | 3536 * @param memberName the name of the first member |
| 3461 * @param memberName the name of the second member | 3537 * @param memberName the name of the second member |
| 3462 */ | 3538 */ |
| 3463 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
= const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
', 55, "Missing concrete implementation of %s and %s"); | 3539 static const StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
= const StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
', 56, "Missing concrete implementation of %s and %s"); |
| 3464 | 3540 |
| 3465 /** | 3541 /** |
| 3466 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s
ub>2</sub>) s</i> or | 3542 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s
ub>2</sub>) s</i> or |
| 3467 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty
pe of <i>T</i>. It | 3543 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty
pe of <i>T</i>. It |
| 3468 * is a static warning if <i>T</i> does not denote a type available in the lex
ical scope of the | 3544 * is a static warning if <i>T</i> does not denote a type available in the lex
ical scope of the |
| 3469 * catch clause. | 3545 * catch clause. |
| 3470 * | 3546 * |
| 3471 * @param name the name of the non-type element | 3547 * @param name the name of the non-type element |
| 3472 */ | 3548 */ |
| 3473 static const StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = const StaticWarningC
ode.con1('NON_TYPE_IN_CATCH_CLAUSE', 56, "The name '%s' is not a type and cannot
be used in an on-catch clause"); | 3549 static const StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = const StaticWarningC
ode.con1('NON_TYPE_IN_CATCH_CLAUSE', 57, "The name '%s' is not a type and cannot
be used in an on-catch clause"); |
| 3474 | 3550 |
| 3475 /** | 3551 /** |
| 3476 * 7.1.1 Operators: It is a static warning if the return type of the user-decl
ared operator []= is | 3552 * 7.1.1 Operators: It is a static warning if the return type of the user-decl
ared operator []= is |
| 3477 * explicitly declared and not void. | 3553 * explicitly declared and not void. |
| 3478 */ | 3554 */ |
| 3479 static const StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = const StaticWarn
ingCode.con1('NON_VOID_RETURN_FOR_OPERATOR', 57, "The return type of the operato
r []= must be 'void'"); | 3555 static const StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = const StaticWarn
ingCode.con1('NON_VOID_RETURN_FOR_OPERATOR', 58, "The return type of the operato
r []= must be 'void'"); |
| 3480 | 3556 |
| 3481 /** | 3557 /** |
| 3482 * 7.3 Setters: It is a static warning if a setter declares a return type othe
r than void. | 3558 * 7.3 Setters: It is a static warning if a setter declares a return type othe
r than void. |
| 3483 */ | 3559 */ |
| 3484 static const StaticWarningCode NON_VOID_RETURN_FOR_SETTER = const StaticWarnin
gCode.con1('NON_VOID_RETURN_FOR_SETTER', 58, "The return type of the setter must
be 'void'"); | 3560 static const StaticWarningCode NON_VOID_RETURN_FOR_SETTER = const StaticWarnin
gCode.con1('NON_VOID_RETURN_FOR_SETTER', 59, "The return type of the setter must
be 'void'"); |
| 3485 | 3561 |
| 3486 /** | 3562 /** |
| 3487 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for
m <i>id</i> or the | 3563 * 15.1 Static Types: A type <i>T</i> is malformed iff: * <i>T</i> has the for
m <i>id</i> or the |
| 3488 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively | 3564 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively |
| 3489 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type paramet
er in the | 3565 * <i>prefix.id</i>) does not denote a type. * <i>T</i> denotes a type paramet
er in the |
| 3490 * enclosing lexical scope, but occurs in the signature or body of a static me
mber. * | 3566 * enclosing lexical scope, but occurs in the signature or body of a static me
mber. * |
| 3491 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, | 3567 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, |
| 3492 * | 3568 * |
| 3493 * Any use of a malformed type gives rise to a static warning. | 3569 * Any use of a malformed type gives rise to a static warning. |
| 3494 * | 3570 * |
| 3495 * @param nonTypeName the name that is not a type | 3571 * @param nonTypeName the name that is not a type |
| 3496 */ | 3572 */ |
| 3497 static const StaticWarningCode NOT_A_TYPE = const StaticWarningCode.con1('NOT_
A_TYPE', 59, "%s is not a type"); | 3573 static const StaticWarningCode NOT_A_TYPE = const StaticWarningCode.con1('NOT_
A_TYPE', 60, "%s is not a type"); |
| 3498 | 3574 |
| 3499 /** | 3575 /** |
| 3500 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</
i> or if <i>m > | 3576 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</
i> or if <i>m > |
| 3501 * n</i>. | 3577 * n</i>. |
| 3502 * | 3578 * |
| 3503 * @param requiredCount the expected number of required arguments | 3579 * @param requiredCount the expected number of required arguments |
| 3504 * @param argumentCount the actual number of positional arguments given | 3580 * @param argumentCount the actual number of positional arguments given |
| 3505 * @see #EXTRA_POSITIONAL_ARGUMENTS | 3581 * @see #EXTRA_POSITIONAL_ARGUMENTS |
| 3506 */ | 3582 */ |
| 3507 static const StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const StaticWar
ningCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 60, "%d required argument(s) expe
cted, but %d found"); | 3583 static const StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const StaticWar
ningCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 61, "%d required argument(s) expe
cted, but %d found"); |
| 3508 | 3584 |
| 3509 /** | 3585 /** |
| 3510 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p<
/i> names a library | 3586 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p<
/i> names a library |
| 3511 * other than the current library as the library to which <i>p</i> belongs. | 3587 * other than the current library as the library to which <i>p</i> belongs. |
| 3512 * | 3588 * |
| 3513 * @param expectedLibraryName the name of expected library name | 3589 * @param expectedLibraryName the name of expected library name |
| 3514 * @param actualLibraryName the non-matching actual library name from the "par
t of" declaration | 3590 * @param actualLibraryName the non-matching actual library name from the "par
t of" declaration |
| 3515 */ | 3591 */ |
| 3516 static const StaticWarningCode PART_OF_DIFFERENT_LIBRARY = const StaticWarning
Code.con1('PART_OF_DIFFERENT_LIBRARY', 61, "Expected this library to be part of
'%s', not '%s'"); | 3592 static const StaticWarningCode PART_OF_DIFFERENT_LIBRARY = const StaticWarning
Code.con1('PART_OF_DIFFERENT_LIBRARY', 62, "Expected this library to be part of
'%s', not '%s'"); |
| 3517 | 3593 |
| 3518 /** | 3594 /** |
| 3519 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i
s not a subtype of | 3595 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i
s not a subtype of |
| 3520 * the type of <i>k</i>. | 3596 * the type of <i>k</i>. |
| 3521 * | 3597 * |
| 3522 * @param redirectedName the name of the redirected constructor | 3598 * @param redirectedName the name of the redirected constructor |
| 3523 * @param redirectingName the name of the redirecting constructor | 3599 * @param redirectingName the name of the redirecting constructor |
| 3524 */ | 3600 */ |
| 3525 static const StaticWarningCode REDIRECT_TO_INVALID_FUNCTION_TYPE = const Stati
cWarningCode.con1('REDIRECT_TO_INVALID_FUNCTION_TYPE', 62, "The redirected const
ructor '%s' has incompatible parameters with '%s'"); | 3601 static const StaticWarningCode REDIRECT_TO_INVALID_FUNCTION_TYPE = const Stati
cWarningCode.con1('REDIRECT_TO_INVALID_FUNCTION_TYPE', 63, "The redirected const
ructor '%s' has incompatible parameters with '%s'"); |
| 3526 | 3602 |
| 3527 /** | 3603 /** |
| 3528 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i
s not a subtype of | 3604 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i
s not a subtype of |
| 3529 * the type of <i>k</i>. | 3605 * the type of <i>k</i>. |
| 3530 * | 3606 * |
| 3531 * @param redirectedName the name of the redirected constructor return type | 3607 * @param redirectedName the name of the redirected constructor return type |
| 3532 * @param redirectingName the name of the redirecting constructor return type | 3608 * @param redirectingName the name of the redirecting constructor return type |
| 3533 */ | 3609 */ |
| 3534 static const StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = const StaticW
arningCode.con1('REDIRECT_TO_INVALID_RETURN_TYPE', 63, "The return type '%s' of
the redirected constructor is not assignable to '%s'"); | 3610 static const StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = const StaticW
arningCode.con1('REDIRECT_TO_INVALID_RETURN_TYPE', 64, "The return type '%s' of
the redirected constructor is not assignable to '%s'"); |
| 3535 | 3611 |
| 3536 /** | 3612 /** |
| 3537 * 7.6.2 Factories: It is a static warning if type does not denote a class acc
essible in the | 3613 * 7.6.2 Factories: It is a static warning if type does not denote a class acc
essible in the |
| 3538 * current scope; if type does denote such a class <i>C</i> it is a static war
ning if the | 3614 * current scope; if type does denote such a class <i>C</i> it is a static war
ning if the |
| 3539 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const
ructor of <i>C</i>. | 3615 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const
ructor of <i>C</i>. |
| 3540 */ | 3616 */ |
| 3541 static const StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = const StaticW
arningCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 64, "The constructor '%s' cou
ld not be found in '%s'"); | 3617 static const StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = const StaticW
arningCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 65, "The constructor '%s' cou
ld not be found in '%s'"); |
| 3542 | 3618 |
| 3543 /** | 3619 /** |
| 3544 * 7.6.2 Factories: It is a static warning if type does not denote a class acc
essible in the | 3620 * 7.6.2 Factories: It is a static warning if type does not denote a class acc
essible in the |
| 3545 * current scope; if type does denote such a class <i>C</i> it is a static war
ning if the | 3621 * current scope; if type does denote such a class <i>C</i> it is a static war
ning if the |
| 3546 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const
ructor of <i>C</i>. | 3622 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const
ructor of <i>C</i>. |
| 3547 */ | 3623 */ |
| 3548 static const StaticWarningCode REDIRECT_TO_NON_CLASS = const StaticWarningCode
.con1('REDIRECT_TO_NON_CLASS', 65, "The name '%s' is not a type and cannot be us
ed in a redirected constructor"); | 3624 static const StaticWarningCode REDIRECT_TO_NON_CLASS = const StaticWarningCode
.con1('REDIRECT_TO_NON_CLASS', 66, "The name '%s' is not a type and cannot be us
ed in a redirected constructor"); |
| 3549 | 3625 |
| 3550 /** | 3626 /** |
| 3551 * 13.12 Return: Let <i>f</i> be the function immediately enclosing a return s
tatement of the form | 3627 * 13.12 Return: Let <i>f</i> be the function immediately enclosing a return s
tatement of the form |
| 3552 * <i>return;</i> It is a static warning if both of the following conditions h
old: | 3628 * <i>return;</i> It is a static warning if both of the following conditions h
old: |
| 3553 * <ol> | 3629 * <ol> |
| 3554 * * <i>f</i> is not a generative constructor. | 3630 * * <i>f</i> is not a generative constructor. |
| 3555 * * The return type of <i>f</i> may not be assigned to void. | 3631 * * The return type of <i>f</i> may not be assigned to void. |
| 3556 * </ol> | 3632 * </ol> |
| 3557 */ | 3633 */ |
| 3558 static const StaticWarningCode RETURN_WITHOUT_VALUE = const StaticWarningCode.
con1('RETURN_WITHOUT_VALUE', 66, "Missing return value after 'return'"); | 3634 static const StaticWarningCode RETURN_WITHOUT_VALUE = const StaticWarningCode.
con1('RETURN_WITHOUT_VALUE', 67, "Missing return value after 'return'"); |
| 3559 | 3635 |
| 3560 /** | 3636 /** |
| 3561 * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method | 3637 * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method |
| 3562 * or getter <i>m</i>. | 3638 * or getter <i>m</i>. |
| 3563 * | 3639 * |
| 3564 * @param memberName the name of the instance member | 3640 * @param memberName the name of the instance member |
| 3565 */ | 3641 */ |
| 3566 static const StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = const Static
WarningCode.con1('STATIC_ACCESS_TO_INSTANCE_MEMBER', 67, "Instance member '%s' c
annot be accessed using static access"); | 3642 static const StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = const Static
WarningCode.con1('STATIC_ACCESS_TO_INSTANCE_MEMBER', 68, "Instance member '%s' c
annot be accessed using static access"); |
| 3567 | 3643 |
| 3568 /** | 3644 /** |
| 3569 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi
gned to the type of | 3645 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi
gned to the type of |
| 3570 * <i>e<sub>k</sub></i>. | 3646 * <i>e<sub>k</sub></i>. |
| 3571 */ | 3647 */ |
| 3572 static const StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = const Static
WarningCode.con1('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 68, "Type '%s' of the switc
h expression is not assignable to the type '%s' of case expressions"); | 3648 static const StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = const Static
WarningCode.con1('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 69, "Type '%s' of the switc
h expression is not assignable to the type '%s' of case expressions"); |
| 3573 | 3649 |
| 3574 /** | 3650 /** |
| 3575 * 15.1 Static Types: It is a static warning to use a deferred type in a type
annotation. | 3651 * 15.1 Static Types: It is a static warning to use a deferred type in a type
annotation. |
| 3576 * | 3652 * |
| 3577 * @param name the name of the type that is deferred and being used in a type
annotation | 3653 * @param name the name of the type that is deferred and being used in a type
annotation |
| 3578 */ | 3654 */ |
| 3579 static const StaticWarningCode TYPE_ANNOTATION_DEFERRED_CLASS = const StaticWa
rningCode.con1('TYPE_ANNOTATION_DEFERRED_CLASS', 69, "The deferred type '%s' can
not be used in a declaration"); | 3655 static const StaticWarningCode TYPE_ANNOTATION_DEFERRED_CLASS = const StaticWa
rningCode.con1('TYPE_ANNOTATION_DEFERRED_CLASS', 70, "The deferred type '%s' can
not be used in a declaration"); |
| 3580 | 3656 |
| 3581 /** | 3657 /** |
| 3582 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
available in the | 3658 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
available in the |
| 3583 * current lexical scope. | 3659 * current lexical scope. |
| 3584 */ | 3660 */ |
| 3585 static const StaticWarningCode TYPE_TEST_NON_TYPE = const StaticWarningCode.co
n1('TYPE_TEST_NON_TYPE', 70, "The name '%s' is not a type and cannot be used in
an 'is' expression"); | 3661 static const StaticWarningCode TYPE_TEST_NON_TYPE = const StaticWarningCode.co
n1('TYPE_TEST_NON_TYPE', 71, "The name '%s' is not a type and cannot be used in
an 'is' expression"); |
| 3586 | 3662 |
| 3587 /** | 3663 /** |
| 3588 * 10 Generics: However, a type parameter is considered to be a malformed type
when referenced by | 3664 * 10 Generics: However, a type parameter is considered to be a malformed type
when referenced by |
| 3589 * a static member. | 3665 * a static member. |
| 3590 * | 3666 * |
| 3591 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni
ng. A malformed type | 3667 * 15.1 Static Types: Any use of a malformed type gives rise to a static warni
ng. A malformed type |
| 3592 * is then interpreted as dynamic by the static type checker and the runtime. | 3668 * is then interpreted as dynamic by the static type checker and the runtime. |
| 3593 */ | 3669 */ |
| 3594 static const StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = const Sta
ticWarningCode.con1('TYPE_PARAMETER_REFERENCED_BY_STATIC', 71, "Static members c
annot reference type parameters"); | 3670 static const StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = const Sta
ticWarningCode.con1('TYPE_PARAMETER_REFERENCED_BY_STATIC', 72, "Static members c
annot reference type parameters"); |
| 3595 | 3671 |
| 3596 /** | 3672 /** |
| 3597 * 12.16.3 Static Invocation: A static method invocation <i>i</i> has the form | 3673 * 12.16.3 Static Invocation: A static method invocation <i>i</i> has the form |
| 3598 * <i>C.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</
sub>, … | 3674 * <i>C.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</
sub>, … |
| 3599 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d
oes not denote a | 3675 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d
oes not denote a |
| 3600 * class in the current scope. | 3676 * class in the current scope. |
| 3601 * | 3677 * |
| 3602 * @param undefinedClassName the name of the undefined class | 3678 * @param undefinedClassName the name of the undefined class |
| 3603 */ | 3679 */ |
| 3604 static const StaticWarningCode UNDEFINED_CLASS = const StaticWarningCode.con1(
'UNDEFINED_CLASS', 72, "Undefined class '%s'"); | 3680 static const StaticWarningCode UNDEFINED_CLASS = const StaticWarningCode.con1(
'UNDEFINED_CLASS', 73, "Undefined class '%s'"); |
| 3605 | 3681 |
| 3606 /** | 3682 /** |
| 3607 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool". | 3683 * Same as [UNDEFINED_CLASS], but to catch using "boolean" instead of "bool". |
| 3608 */ | 3684 */ |
| 3609 static const StaticWarningCode UNDEFINED_CLASS_BOOLEAN = const StaticWarningCo
de.con1('UNDEFINED_CLASS_BOOLEAN', 73, "Undefined class 'boolean'; did you mean
'bool'?"); | 3685 static const StaticWarningCode UNDEFINED_CLASS_BOOLEAN = const StaticWarningCo
de.con1('UNDEFINED_CLASS_BOOLEAN', 74, "Undefined class 'boolean'; did you mean
'bool'?"); |
| 3610 | 3686 |
| 3611 /** | 3687 /** |
| 3612 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</
i> in the enclosing | 3688 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</
i> in the enclosing |
| 3613 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e
xplicitly, a getter | 3689 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e
xplicitly, a getter |
| 3614 * named <i>m</i>. | 3690 * named <i>m</i>. |
| 3615 * | 3691 * |
| 3616 * @param getterName the name of the getter | 3692 * @param getterName the name of the getter |
| 3617 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for | 3693 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for |
| 3618 */ | 3694 */ |
| 3619 static const StaticWarningCode UNDEFINED_GETTER = const StaticWarningCode.con1
('UNDEFINED_GETTER', 74, "There is no such getter '%s' in '%s'"); | 3695 static const StaticWarningCode UNDEFINED_GETTER = const StaticWarningCode.con1
('UNDEFINED_GETTER', 75, "There is no such getter '%s' in '%s'"); |
| 3620 | 3696 |
| 3621 /** | 3697 /** |
| 3622 * 12.30 Identifier Reference: It is as static warning if an identifier expres
sion of the form | 3698 * 12.30 Identifier Reference: It is as static warning if an identifier expres
sion of the form |
| 3623 * <i>id</i> occurs inside a top level or static function (be it function, met
hod, getter, or | 3699 * <i>id</i> occurs inside a top level or static function (be it function, met
hod, getter, or |
| 3624 * setter) or variable initializer and there is no declaration <i>d</i> with n
ame <i>id</i> in the | 3700 * setter) or variable initializer and there is no declaration <i>d</i> with n
ame <i>id</i> in the |
| 3625 * lexical scope enclosing the expression. | 3701 * lexical scope enclosing the expression. |
| 3626 * | 3702 * |
| 3627 * @param name the name of the identifier | 3703 * @param name the name of the identifier |
| 3628 */ | 3704 */ |
| 3629 static const StaticWarningCode UNDEFINED_IDENTIFIER = const StaticWarningCode.
con1('UNDEFINED_IDENTIFIER', 75, "Undefined name '%s'"); | 3705 static const StaticWarningCode UNDEFINED_IDENTIFIER = const StaticWarningCode.
con1('UNDEFINED_IDENTIFIER', 76, "Undefined name '%s'"); |
| 3630 | 3706 |
| 3631 /** | 3707 /** |
| 3632 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, | 3708 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, |
| 3633 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> … | 3709 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> … |
| 3634 * <i>p<sub>n+k</sub></i>} or a static warning occurs. | 3710 * <i>p<sub>n+k</sub></i>} or a static warning occurs. |
| 3635 * | 3711 * |
| 3636 * @param name the name of the requested named parameter | 3712 * @param name the name of the requested named parameter |
| 3637 */ | 3713 */ |
| 3638 static const StaticWarningCode UNDEFINED_NAMED_PARAMETER = const StaticWarning
Code.con1('UNDEFINED_NAMED_PARAMETER', 76, "The named parameter '%s' is not defi
ned"); | 3714 static const StaticWarningCode UNDEFINED_NAMED_PARAMETER = const StaticWarning
Code.con1('UNDEFINED_NAMED_PARAMETER', 77, "The named parameter '%s' is not defi
ned"); |
| 3639 | 3715 |
| 3640 /** | 3716 /** |
| 3641 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs | 3717 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs |
| 3642 * inside a top level or static function (be it function, method, getter, or s
etter) or variable | 3718 * inside a top level or static function (be it function, method, getter, or s
etter) or variable |
| 3643 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the
lexical scope | 3719 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the
lexical scope |
| 3644 * enclosing the assignment. | 3720 * enclosing the assignment. |
| 3645 * | 3721 * |
| 3646 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t
he enclosing lexical | 3722 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t
he enclosing lexical |
| 3647 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp
licitly, a setter | 3723 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp
licitly, a setter |
| 3648 * <i>v=</i>. | 3724 * <i>v=</i>. |
| 3649 * | 3725 * |
| 3650 * @param setterName the name of the getter | 3726 * @param setterName the name of the getter |
| 3651 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for | 3727 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for |
| 3652 */ | 3728 */ |
| 3653 static const StaticWarningCode UNDEFINED_SETTER = const StaticWarningCode.con1
('UNDEFINED_SETTER', 77, "There is no such setter '%s' in '%s'"); | 3729 static const StaticWarningCode UNDEFINED_SETTER = const StaticWarningCode.con1
('UNDEFINED_SETTER', 78, "There is no such setter '%s' in '%s'"); |
| 3654 | 3730 |
| 3655 /** | 3731 /** |
| 3656 * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method | 3732 * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method |
| 3657 * or getter <i>m</i>. | 3733 * or getter <i>m</i>. |
| 3658 * | 3734 * |
| 3659 * @param methodName the name of the method | 3735 * @param methodName the name of the method |
| 3660 * @param enclosingType the name of the enclosing type where the method is bei
ng looked for | 3736 * @param enclosingType the name of the enclosing type where the method is bei
ng looked for |
| 3661 */ | 3737 */ |
| 3662 static const StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = const Stati
cWarningCode.con1('UNDEFINED_STATIC_METHOD_OR_GETTER', 78, "There is no such sta
tic method, getter or setter '%s' in '%s'"); | 3738 static const StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = const Stati
cWarningCode.con1('UNDEFINED_STATIC_METHOD_OR_GETTER', 79, "There is no such sta
tic method, getter or setter '%s' in '%s'"); |
| 3663 | 3739 |
| 3664 /** | 3740 /** |
| 3665 * 7.2 Getters: It is a static warning if the return type of a getter is void. | 3741 * 7.2 Getters: It is a static warning if the return type of a getter is void. |
| 3666 */ | 3742 */ |
| 3667 static const StaticWarningCode VOID_RETURN_FOR_GETTER = const StaticWarningCod
e.con1('VOID_RETURN_FOR_GETTER', 79, "The return type of the getter must not be
'void'"); | 3743 static const StaticWarningCode VOID_RETURN_FOR_GETTER = const StaticWarningCod
e.con1('VOID_RETURN_FOR_GETTER', 80, "The return type of the getter must not be
'void'"); |
| 3668 | 3744 |
| 3669 static const List<StaticWarningCode> values = const [ | 3745 static const List<StaticWarningCode> values = const [ |
| 3670 AMBIGUOUS_IMPORT, | 3746 AMBIGUOUS_IMPORT, |
| 3671 ARGUMENT_TYPE_NOT_ASSIGNABLE, | 3747 ARGUMENT_TYPE_NOT_ASSIGNABLE, |
| 3672 ASSIGNMENT_TO_CONST, | 3748 ASSIGNMENT_TO_CONST, |
| 3673 ASSIGNMENT_TO_FINAL, | 3749 ASSIGNMENT_TO_FINAL, |
| 3750 ASSIGNMENT_TO_FUNCTION, |
| 3674 ASSIGNMENT_TO_METHOD, | 3751 ASSIGNMENT_TO_METHOD, |
| 3675 CASE_BLOCK_NOT_TERMINATED, | 3752 CASE_BLOCK_NOT_TERMINATED, |
| 3676 CAST_TO_NON_TYPE, | 3753 CAST_TO_NON_TYPE, |
| 3677 CONCRETE_CLASS_WITH_ABSTRACT_MEMBER, | 3754 CONCRETE_CLASS_WITH_ABSTRACT_MEMBER, |
| 3678 CONFLICTING_DART_IMPORT, | 3755 CONFLICTING_DART_IMPORT, |
| 3679 CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, | 3756 CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, |
| 3680 CONFLICTING_INSTANCE_METHOD_SETTER, | 3757 CONFLICTING_INSTANCE_METHOD_SETTER, |
| 3681 CONFLICTING_INSTANCE_METHOD_SETTER2, | 3758 CONFLICTING_INSTANCE_METHOD_SETTER2, |
| 3682 CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER, | 3759 CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_MEMBER, |
| 3683 CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, | 3760 CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3814 | 3891 |
| 3815 @override | 3892 @override |
| 3816 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 3893 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 3817 | 3894 |
| 3818 @override | 3895 @override |
| 3819 String get message => "%s"; | 3896 String get message => "%s"; |
| 3820 | 3897 |
| 3821 @override | 3898 @override |
| 3822 ErrorType get type => ErrorType.TODO; | 3899 ErrorType get type => ErrorType.TODO; |
| 3823 } | 3900 } |
| OLD | NEW |