Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1750143005: Move more messages. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Undo change to analyze_test_test.dart Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 library analyzer.src.generated.error; 5 library analyzer.src.generated.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode;
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 3611 matching lines...) Expand 10 before | Expand all | Expand 10 after
3622 /** 3622 /**
3623 * This hint is generated anywhere where the 3623 * This hint is generated anywhere where the
3624 * [StaticTypeWarningCode.UNDEFINED_GETTER] or 3624 * [StaticTypeWarningCode.UNDEFINED_GETTER] or
3625 * [StaticWarningCode.UNDEFINED_GETTER] would have been generated, if we used 3625 * [StaticWarningCode.UNDEFINED_GETTER] would have been generated, if we used
3626 * propagated information for the warnings. 3626 * propagated information for the warnings.
3627 * 3627 *
3628 * Parameters: 3628 * Parameters:
3629 * 0: the name of the getter 3629 * 0: the name of the getter
3630 * 1: the name of the enclosing type where the getter is being looked for 3630 * 1: the name of the enclosing type where the getter is being looked for
3631 */ 3631 */
3632 static const HintCode UNDEFINED_GETTER = const HintCode('UNDEFINED_GETTER', 3632 static const HintCode UNDEFINED_GETTER =
3633 "The getter '{0}' is not defined for the class '{1}'"); 3633 shared_messages.UNDEFINED_GETTER_HINT;
3634 3634
3635 /** 3635 /**
3636 * This hint is generated anywhere where the 3636 * This hint is generated anywhere where the
3637 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we 3637 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we
3638 * used propagated information for the warnings. 3638 * used propagated information for the warnings.
3639 * 3639 *
3640 * Parameters: 3640 * Parameters:
3641 * 0: the name of the method that is undefined 3641 * 0: the name of the method that is undefined
3642 * 1: the resolved type name that the method lookup is happening on 3642 * 1: the resolved type name that the method lookup is happening on
3643 */ 3643 */
3644 static const HintCode UNDEFINED_METHOD = const HintCode('UNDEFINED_METHOD', 3644 static const HintCode UNDEFINED_METHOD =
3645 "The method '{0}' is not defined for the class '{1}'"); 3645 shared_messages.UNDEFINED_METHOD_HINT;
3646 3646
3647 /** 3647 /**
3648 * This hint is generated anywhere where the 3648 * This hint is generated anywhere where the
3649 * [StaticTypeWarningCode.UNDEFINED_OPERATOR] would have been generated, if we 3649 * [StaticTypeWarningCode.UNDEFINED_OPERATOR] would have been generated, if we
3650 * used propagated information for the warnings. 3650 * used propagated information for the warnings.
3651 * 3651 *
3652 * Parameters: 3652 * Parameters:
3653 * 0: the name of the operator 3653 * 0: the name of the operator
3654 * 1: the name of the enclosing type where the operator is being looked for 3654 * 1: the name of the enclosing type where the operator is being looked for
3655 */ 3655 */
3656 static const HintCode UNDEFINED_OPERATOR = const HintCode( 3656 static const HintCode UNDEFINED_OPERATOR =
3657 'UNDEFINED_OPERATOR', 3657 shared_messages.UNDEFINED_OPERATOR_HINT;
3658 "The operator '{0}' is not defined for the class '{1}'");
3659 3658
3660 /** 3659 /**
3661 * This hint is generated anywhere where the 3660 * This hint is generated anywhere where the
3662 * [StaticTypeWarningCode.UNDEFINED_SETTER] or 3661 * [StaticTypeWarningCode.UNDEFINED_SETTER] or
3663 * [StaticWarningCode.UNDEFINED_SETTER] would have been generated, if we used 3662 * [StaticWarningCode.UNDEFINED_SETTER] would have been generated, if we used
3664 * propagated information for the warnings. 3663 * propagated information for the warnings.
3665 * 3664 *
3666 * Parameters: 3665 * Parameters:
3667 * 0: the name of the setter 3666 * 0: the name of the setter
3668 * 1: the name of the enclosing type where the setter is being looked for 3667 * 1: the name of the enclosing type where the setter is being looked for
3669 */ 3668 */
3670 static const HintCode UNDEFINED_SETTER = const HintCode('UNDEFINED_SETTER', 3669 static const HintCode UNDEFINED_SETTER =
3671 "The setter '{0}' is not defined for the class '{1}'"); 3670 shared_messages.UNDEFINED_SETTER_HINT;
3672 3671
3673 /** 3672 /**
3674 * Unnecessary cast. 3673 * Unnecessary cast.
3675 */ 3674 */
3676 static const HintCode UNNECESSARY_CAST = 3675 static const HintCode UNNECESSARY_CAST =
3677 const HintCode('UNNECESSARY_CAST', "Unnecessary cast"); 3676 const HintCode('UNNECESSARY_CAST', "Unnecessary cast");
3678 3677
3679 /** 3678 /**
3680 * Unnecessary `noSuchMethod` declaration. 3679 * Unnecessary `noSuchMethod` declaration.
3681 */ 3680 */
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
4174 /** 4173 /**
4175 * 12.17 Getter Invocation: It is a static warning if there is no class 4174 * 12.17 Getter Invocation: It is a static warning if there is no class
4176 * <i>C</i> in the enclosing lexical scope of <i>i</i>, or if <i>C</i> does 4175 * <i>C</i> in the enclosing lexical scope of <i>i</i>, or if <i>C</i> does
4177 * not declare, implicitly or explicitly, a getter named <i>m</i>. 4176 * not declare, implicitly or explicitly, a getter named <i>m</i>.
4178 * 4177 *
4179 * Parameters: 4178 * Parameters:
4180 * 0: the name of the enumeration constant that is not defined 4179 * 0: the name of the enumeration constant that is not defined
4181 * 1: the name of the enumeration used to access the constant 4180 * 1: the name of the enumeration used to access the constant
4182 */ 4181 */
4183 static const StaticTypeWarningCode UNDEFINED_ENUM_CONSTANT = 4182 static const StaticTypeWarningCode UNDEFINED_ENUM_CONSTANT =
4184 const StaticTypeWarningCode('UNDEFINED_ENUM_CONSTANT', 4183 shared_messages.UNDEFINED_ENUM_CONSTANT;
4185 "There is no constant named '{0}' in '{1}'");
4186 4184
4187 /** 4185 /**
4188 * 12.15.3 Unqualified Invocation: If there exists a lexically visible 4186 * 12.15.3 Unqualified Invocation: If there exists a lexically visible
4189 * declaration named <i>id</i>, let <i>f<sub>id</sub></i> be the innermost 4187 * declaration named <i>id</i>, let <i>f<sub>id</sub></i> be the innermost
4190 * such declaration. Then: [skip]. Otherwise, <i>f<sub>id</sub></i> is 4188 * such declaration. Then: [skip]. Otherwise, <i>f<sub>id</sub></i> is
4191 * considered equivalent to the ordinary method invocation 4189 * considered equivalent to the ordinary method invocation
4192 * <b>this</b>.<i>id</i>(<i>a<sub>1</sub></i>, ..., <i>a<sub>n</sub></i>, 4190 * <b>this</b>.<i>id</i>(<i>a<sub>1</sub></i>, ..., <i>a<sub>n</sub></i>,
4193 * <i>x<sub>n+1</sub></i> : <i>a<sub>n+1</sub></i>, ..., 4191 * <i>x<sub>n+1</sub></i> : <i>a<sub>n+1</sub></i>, ...,
4194 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>). 4192 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>).
4195 * 4193 *
4196 * Parameters: 4194 * Parameters:
4197 * 0: the name of the method that is undefined 4195 * 0: the name of the method that is undefined
4198 */ 4196 */
4199 static const StaticTypeWarningCode UNDEFINED_FUNCTION = 4197 static const StaticTypeWarningCode UNDEFINED_FUNCTION =
4200 const StaticTypeWarningCode( 4198 shared_messages.UNDEFINED_FUNCTION;
4201 'UNDEFINED_FUNCTION', "The function '{0}' is not defined");
4202 4199
4203 /** 4200 /**
4204 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is 4201 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is
4205 * a static type warning if <i>T</i> does not have a getter named <i>m</i>. 4202 * a static type warning if <i>T</i> does not have a getter named <i>m</i>.
4206 * 4203 *
4207 * Parameters: 4204 * Parameters:
4208 * 0: the name of the getter 4205 * 0: the name of the getter
4209 * 1: the name of the enclosing type where the getter is being looked for 4206 * 1: the name of the enclosing type where the getter is being looked for
4210 */ 4207 */
4211 static const StaticTypeWarningCode UNDEFINED_GETTER = 4208 static const StaticTypeWarningCode UNDEFINED_GETTER =
4212 const StaticTypeWarningCode('UNDEFINED_GETTER', 4209 shared_messages.UNDEFINED_GETTER_STATIC_TYPE_WARNING;
4213 "The getter '{0}' is not defined for the class '{1}'");
4214 4210
4215 /** 4211 /**
4216 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. 4212 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>.
4217 * It is a static type warning if <i>T</i> does not have an accessible 4213 * It is a static type warning if <i>T</i> does not have an accessible
4218 * instance member named <i>m</i>. 4214 * instance member named <i>m</i>.
4219 * 4215 *
4220 * Parameters: 4216 * Parameters:
4221 * 0: the name of the method that is undefined 4217 * 0: the name of the method that is undefined
4222 * 1: the resolved type name that the method lookup is happening on 4218 * 1: the resolved type name that the method lookup is happening on
4223 */ 4219 */
4224 static const StaticTypeWarningCode UNDEFINED_METHOD = 4220 static const StaticTypeWarningCode UNDEFINED_METHOD =
4225 const StaticTypeWarningCode('UNDEFINED_METHOD', 4221 shared_messages.UNDEFINED_METHOD_STATIC_TYPE_WARNING;
4226 "The method '{0}' is not defined for the class '{1}'");
4227 4222
4228 /** 4223 /**
4229 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. 4224 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>.
4230 * It is a static type warning if <i>T</i> does not have an accessible 4225 * It is a static type warning if <i>T</i> does not have an accessible
4231 * instance member named <i>m</i>. 4226 * instance member named <i>m</i>.
4232 * 4227 *
4233 * Parameters: 4228 * Parameters:
4234 * 0: the name of the method that is undefined 4229 * 0: the name of the method that is undefined
4235 * 1: the resolved type name that the method lookup is happening on 4230 * 1: the resolved type name that the method lookup is happening on
4236 */ 4231 */
4237 static const StaticTypeWarningCode UNDEFINED_METHOD_WITH_CONSTRUCTOR = 4232 static const StaticTypeWarningCode UNDEFINED_METHOD_WITH_CONSTRUCTOR =
4238 const StaticTypeWarningCode( 4233 shared_messages.UNDEFINED_METHOD_WITH_CONSTRUCTOR;
4239 'UNDEFINED_METHOD_WITH_CONSTRUCTOR',
4240 "The method '{0}' is not defined for the class '{1}', but a constructo r with that name is defined",
4241 "Add 'new' or 'const' to invoke the constuctor, or change the method n ame.");
4242 4234
4243 /** 4235 /**
4244 * 12.18 Assignment: Evaluation of an assignment of the form 4236 * 12.18 Assignment: Evaluation of an assignment of the form
4245 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is 4237 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is
4246 * equivalent to the evaluation of the expression (a, i, e){a.[]=(i, e); 4238 * equivalent to the evaluation of the expression (a, i, e){a.[]=(i, e);
4247 * return e;} (<i>e<sub>1</sub></i>, <i>e<sub>2</sub></i>, 4239 * return e;} (<i>e<sub>1</sub></i>, <i>e<sub>2</sub></i>,
4248 * <i>e<sub>2</sub></i>). 4240 * <i>e<sub>2</sub></i>).
4249 * 4241 *
4250 * 12.29 Assignable Expressions: An assignable expression of the form 4242 * 12.29 Assignable Expressions: An assignable expression of the form
4251 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method 4243 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method
4252 * invocation of the operator method [] on <i>e<sub>1</sub></i> with argument 4244 * invocation of the operator method [] on <i>e<sub>1</sub></i> with argument
4253 * <i>e<sub>2</sub></i>. 4245 * <i>e<sub>2</sub></i>.
4254 * 4246 *
4255 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. 4247 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>.
4256 * It is a static type warning if <i>T</i> does not have an accessible 4248 * It is a static type warning if <i>T</i> does not have an accessible
4257 * instance member named <i>m</i>. 4249 * instance member named <i>m</i>.
4258 * 4250 *
4259 * Parameters: 4251 * Parameters:
4260 * 0: the name of the operator 4252 * 0: the name of the operator
4261 * 1: the name of the enclosing type where the operator is being looked for 4253 * 1: the name of the enclosing type where the operator is being looked for
4262 */ 4254 */
4263 static const StaticTypeWarningCode UNDEFINED_OPERATOR = 4255 static const StaticTypeWarningCode UNDEFINED_OPERATOR =
4264 const StaticTypeWarningCode('UNDEFINED_OPERATOR', 4256 shared_messages.UNDEFINED_OPERATOR_STATIC_TYPE_WARNING;
4265 "The operator '{0}' is not defined for the class '{1}'");
4266 4257
4267 /** 4258 /**
4268 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. 4259 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
4269 * It is a static type warning if <i>T</i> does not have an accessible 4260 * It is a static type warning if <i>T</i> does not have an accessible
4270 * instance setter named <i>v=</i>. 4261 * instance setter named <i>v=</i>.
4271 * 4262 *
4272 * Parameters: 4263 * Parameters:
4273 * 0: the name of the setter 4264 * 0: the name of the setter
4274 * 1: the name of the enclosing type where the setter is being looked for 4265 * 1: the name of the enclosing type where the setter is being looked for
4275 * 4266 *
4276 * See [INACCESSIBLE_SETTER]. 4267 * See [INACCESSIBLE_SETTER].
4277 */ 4268 */
4278 static const StaticTypeWarningCode UNDEFINED_SETTER = 4269 static const StaticTypeWarningCode UNDEFINED_SETTER =
4279 const StaticTypeWarningCode('UNDEFINED_SETTER', 4270 shared_messages.UNDEFINED_SETTER_STATIC_TYPE_WARNING;
4280 "The setter '{0}' is not defined for the class '{1}'");
4281 4271
4282 /** 4272 /**
4283 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is 4273 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is
4284 * a static type warning if <i>T</i> does not have a getter named <i>m</i>. 4274 * a static type warning if <i>T</i> does not have a getter named <i>m</i>.
4285 * 4275 *
4286 * Parameters: 4276 * Parameters:
4287 * 0: the name of the getter 4277 * 0: the name of the getter
4288 * 1: the name of the enclosing type where the getter is being looked for 4278 * 1: the name of the enclosing type where the getter is being looked for
4289 */ 4279 */
4290 static const StaticTypeWarningCode UNDEFINED_SUPER_GETTER = 4280 static const StaticTypeWarningCode UNDEFINED_SUPER_GETTER =
4291 const StaticTypeWarningCode('UNDEFINED_SUPER_GETTER', 4281 shared_messages.UNDEFINED_SUPER_GETTER_STATIC_TYPE_WARNING;
4292 "The getter '{0}' is not defined in a superclass of '{1}'");
4293 4282
4294 /** 4283 /**
4295 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form 4284 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form
4296 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: 4285 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>:
4297 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a 4286 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a
4298 * static type warning if <i>S</i> does not have an accessible instance member 4287 * static type warning if <i>S</i> does not have an accessible instance member
4299 * named <i>m</i>. 4288 * named <i>m</i>.
4300 * 4289 *
4301 * Parameters: 4290 * Parameters:
4302 * 0: the name of the method that is undefined 4291 * 0: the name of the method that is undefined
4303 * 1: the resolved type name that the method lookup is happening on 4292 * 1: the resolved type name that the method lookup is happening on
4304 */ 4293 */
4305 static const StaticTypeWarningCode UNDEFINED_SUPER_METHOD = 4294 static const StaticTypeWarningCode UNDEFINED_SUPER_METHOD =
4306 const StaticTypeWarningCode('UNDEFINED_SUPER_METHOD', 4295 shared_messages.UNDEFINED_SUPER_METHOD;
4307 "The method '{0}' is not defined in a superclass of '{1}'");
4308 4296
4309 /** 4297 /**
4310 * 12.18 Assignment: Evaluation of an assignment of the form 4298 * 12.18 Assignment: Evaluation of an assignment of the form
4311 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is 4299 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is
4312 * equivalent to the evaluation of the expression (a, i, e){a.[]=(i, e); 4300 * equivalent to the evaluation of the expression (a, i, e){a.[]=(i, e);
4313 * return e;} (<i>e<sub>1</sub></i>, <i>e<sub>2</sub></i>, 4301 * return e;} (<i>e<sub>1</sub></i>, <i>e<sub>2</sub></i>,
4314 * <i>e<sub>2</sub></i>). 4302 * <i>e<sub>2</sub></i>).
4315 * 4303 *
4316 * 12.29 Assignable Expressions: An assignable expression of the form 4304 * 12.29 Assignable Expressions: An assignable expression of the form
4317 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method 4305 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method
4318 * invocation of the operator method [] on <i>e<sub>1</sub></i> with argument 4306 * invocation of the operator method [] on <i>e<sub>1</sub></i> with argument
4319 * <i>e<sub>2</sub></i>. 4307 * <i>e<sub>2</sub></i>.
4320 * 4308 *
4321 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. 4309 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>.
4322 * It is a static type warning if <i>T</i> does not have an accessible 4310 * It is a static type warning if <i>T</i> does not have an accessible
4323 * instance member named <i>m</i>. 4311 * instance member named <i>m</i>.
4324 * 4312 *
4325 * Parameters: 4313 * Parameters:
4326 * 0: the name of the operator 4314 * 0: the name of the operator
4327 * 1: the name of the enclosing type where the operator is being looked for 4315 * 1: the name of the enclosing type where the operator is being looked for
4328 */ 4316 */
4329 static const StaticTypeWarningCode UNDEFINED_SUPER_OPERATOR = 4317 static const StaticTypeWarningCode UNDEFINED_SUPER_OPERATOR =
4330 const StaticTypeWarningCode('UNDEFINED_SUPER_OPERATOR', 4318 shared_messages.UNDEFINED_SUPER_OPERATOR;
4331 "The operator '{0}' is not defined in a superclass of '{1}'");
4332 4319
4333 /** 4320 /**
4334 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. 4321 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
4335 * It is a static type warning if <i>T</i> does not have an accessible 4322 * It is a static type warning if <i>T</i> does not have an accessible
4336 * instance setter named <i>v=</i>. 4323 * instance setter named <i>v=</i>.
4337 * 4324 *
4338 * Parameters: 4325 * Parameters:
4339 * 0: the name of the setter 4326 * 0: the name of the setter
4340 * 1: the name of the enclosing type where the setter is being looked for 4327 * 1: the name of the enclosing type where the setter is being looked for
4341 * 4328 *
4342 * See [INACCESSIBLE_SETTER]. 4329 * See [INACCESSIBLE_SETTER].
4343 */ 4330 */
4344 static const StaticTypeWarningCode UNDEFINED_SUPER_SETTER = 4331 static const StaticTypeWarningCode UNDEFINED_SUPER_SETTER =
4345 const StaticTypeWarningCode('UNDEFINED_SUPER_SETTER', 4332 shared_messages.UNDEFINED_SUPER_SETTER_STATIC_TYPE_WARNING;
4346 "The setter '{0}' is not defined in a superclass of '{1}'");
4347 4333
4348 /** 4334 /**
4349 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does 4335 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does
4350 * not have an accessible (3.2) instance member named <i>m</i>. 4336 * not have an accessible (3.2) instance member named <i>m</i>.
4351 * 4337 *
4352 * This is a specialization of [INSTANCE_ACCESS_TO_STATIC_MEMBER] that is used 4338 * This is a specialization of [INSTANCE_ACCESS_TO_STATIC_MEMBER] that is used
4353 * when we are able to find the name defined in a supertype. It exists to 4339 * when we are able to find the name defined in a supertype. It exists to
4354 * provide a more informative error message. 4340 * provide a more informative error message.
4355 */ 4341 */
4356 static const StaticTypeWarningCode 4342 static const StaticTypeWarningCode
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
5537 5523
5538 /** 5524 /**
5539 * 12.17 Getter Invocation: It is a static warning if there is no class 5525 * 12.17 Getter Invocation: It is a static warning if there is no class
5540 * <i>C</i> in the enclosing lexical scope of <i>i</i>, or if <i>C</i> does 5526 * <i>C</i> in the enclosing lexical scope of <i>i</i>, or if <i>C</i> does
5541 * not declare, implicitly or explicitly, a getter named <i>m</i>. 5527 * not declare, implicitly or explicitly, a getter named <i>m</i>.
5542 * 5528 *
5543 * Parameters: 5529 * Parameters:
5544 * 0: the name of the getter 5530 * 0: the name of the getter
5545 * 1: the name of the enclosing type where the getter is being looked for 5531 * 1: the name of the enclosing type where the getter is being looked for
5546 */ 5532 */
5547 static const StaticWarningCode UNDEFINED_GETTER = const StaticWarningCode( 5533 static const StaticWarningCode UNDEFINED_GETTER =
5548 'UNDEFINED_GETTER', 5534 shared_messages.UNDEFINED_GETTER_STATIC_WARNING;
5549 "The getter '{0}' is not defined for the class '{1}'");
5550 5535
5551 /** 5536 /**
5552 * 12.30 Identifier Reference: It is as static warning if an identifier 5537 * 12.30 Identifier Reference: It is as static warning if an identifier
5553 * expression of the form <i>id</i> occurs inside a top level or static 5538 * expression of the form <i>id</i> occurs inside a top level or static
5554 * function (be it function, method, getter, or setter) or variable 5539 * function (be it function, method, getter, or setter) or variable
5555 * initializer and there is no declaration <i>d</i> with name <i>id</i> in the 5540 * initializer and there is no declaration <i>d</i> with name <i>id</i> in the
5556 * lexical scope enclosing the expression. 5541 * lexical scope enclosing the expression.
5557 * 5542 *
5558 * Parameters: 5543 * Parameters:
5559 * 0: the name of the identifier 5544 * 0: the name of the identifier
(...skipping 22 matching lines...) Expand all
5582 * assignment. 5567 * assignment.
5583 * 5568 *
5584 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in 5569 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in
5585 * the enclosing lexical scope of the assignment, or if <i>C</i> does not 5570 * the enclosing lexical scope of the assignment, or if <i>C</i> does not
5586 * declare, implicitly or explicitly, a setter <i>v=</i>. 5571 * declare, implicitly or explicitly, a setter <i>v=</i>.
5587 * 5572 *
5588 * Parameters: 5573 * Parameters:
5589 * 0: the name of the getter 5574 * 0: the name of the getter
5590 * 1: the name of the enclosing type where the setter is being looked for 5575 * 1: the name of the enclosing type where the setter is being looked for
5591 */ 5576 */
5592 static const StaticWarningCode UNDEFINED_SETTER = const StaticWarningCode( 5577 static const StaticWarningCode UNDEFINED_SETTER =
5593 'UNDEFINED_SETTER', 5578 shared_messages.UNDEFINED_SETTER_STATIC_WARNING;
5594 "The setter '{0}' is not defined for the class '{1}'");
5595 5579
5596 /** 5580 /**
5597 * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not 5581 * 12.16.3 Static Invocation: It is a static warning if <i>C</i> does not
5598 * declare a static method or getter <i>m</i>. 5582 * declare a static method or getter <i>m</i>.
5599 * 5583 *
5600 * Parameters: 5584 * Parameters:
5601 * 0: the name of the method 5585 * 0: the name of the method
5602 * 1: the name of the enclosing type where the method is being looked for 5586 * 1: the name of the enclosing type where the method is being looked for
5603 */ 5587 */
5604 static const StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = 5588 static const StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER =
5605 const StaticWarningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 5589 const StaticWarningCode('UNDEFINED_STATIC_METHOD_OR_GETTER',
5606 "The static method, getter or setter '{0}' is not defined for the clas s '{1}'"); 5590 "The static method, getter or setter '{0}' is not defined for the clas s '{1}'");
5607 5591
5608 /** 5592 /**
5609 * 12.17 Getter Invocation: It is a static warning if there is no class 5593 * 12.17 Getter Invocation: It is a static warning if there is no class
5610 * <i>C</i> in the enclosing lexical scope of <i>i</i>, or if <i>C</i> does 5594 * <i>C</i> in the enclosing lexical scope of <i>i</i>, or if <i>C</i> does
5611 * not declare, implicitly or explicitly, a getter named <i>m</i>. 5595 * not declare, implicitly or explicitly, a getter named <i>m</i>.
5612 * 5596 *
5613 * Parameters: 5597 * Parameters:
5614 * 0: the name of the getter 5598 * 0: the name of the getter
5615 * 1: the name of the enclosing type where the getter is being looked for 5599 * 1: the name of the enclosing type where the getter is being looked for
5616 */ 5600 */
5617 static const StaticWarningCode UNDEFINED_SUPER_GETTER = 5601 static const StaticWarningCode UNDEFINED_SUPER_GETTER =
5618 const StaticWarningCode('UNDEFINED_SUPER_GETTER', 5602 shared_messages.UNDEFINED_SUPER_GETTER_STATIC_WARNING;
5619 "The getter '{0}' is not defined in a superclass of '{1}'");
5620 5603
5621 /** 5604 /**
5622 * 12.18 Assignment: It is as static warning if an assignment of the form 5605 * 12.18 Assignment: It is as static warning if an assignment of the form
5623 * <i>v = e</i> occurs inside a top level or static function (be it function, 5606 * <i>v = e</i> occurs inside a top level or static function (be it function,
5624 * method, getter, or setter) or variable initializer and there is no 5607 * method, getter, or setter) or variable initializer and there is no
5625 * declaration <i>d</i> with name <i>v=</i> in the lexical scope enclosing the 5608 * declaration <i>d</i> with name <i>v=</i> in the lexical scope enclosing the
5626 * assignment. 5609 * assignment.
5627 * 5610 *
5628 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in 5611 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in
5629 * the enclosing lexical scope of the assignment, or if <i>C</i> does not 5612 * the enclosing lexical scope of the assignment, or if <i>C</i> does not
5630 * declare, implicitly or explicitly, a setter <i>v=</i>. 5613 * declare, implicitly or explicitly, a setter <i>v=</i>.
5631 * 5614 *
5632 * Parameters: 5615 * Parameters:
5633 * 0: the name of the getter 5616 * 0: the name of the getter
5634 * 1: the name of the enclosing type where the setter is being looked for 5617 * 1: the name of the enclosing type where the setter is being looked for
5635 */ 5618 */
5636 static const StaticWarningCode UNDEFINED_SUPER_SETTER = 5619 static const StaticWarningCode UNDEFINED_SUPER_SETTER =
5637 const StaticWarningCode('UNDEFINED_SUPER_SETTER', 5620 shared_messages.UNDEFINED_SUPER_SETTER_STATIC_WARNING;
5638 "The setter '{0}' is not defined in a superclass of '{1}'");
5639 5621
5640 /** 5622 /**
5641 * 7.2 Getters: It is a static warning if the return type of a getter is void. 5623 * 7.2 Getters: It is a static warning if the return type of a getter is void.
5642 */ 5624 */
5643 static const StaticWarningCode VOID_RETURN_FOR_GETTER = 5625 static const StaticWarningCode VOID_RETURN_FOR_GETTER =
5644 const StaticWarningCode('VOID_RETURN_FOR_GETTER', 5626 const StaticWarningCode('VOID_RETURN_FOR_GETTER',
5645 "The return type of the getter must not be 'void'"); 5627 "The return type of the getter must not be 'void'");
5646 5628
5647 /** 5629 /**
5648 * 17.9 Switch: It is a static warning if all of the following conditions 5630 * 17.9 Switch: It is a static warning if all of the following conditions
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
5709 * Initialize a newly created error code to have the given [name]. 5691 * Initialize a newly created error code to have the given [name].
5710 */ 5692 */
5711 const TodoCode(String name) : super(name, "{0}"); 5693 const TodoCode(String name) : super(name, "{0}");
5712 5694
5713 @override 5695 @override
5714 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5696 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5715 5697
5716 @override 5698 @override
5717 ErrorType get type => ErrorType.TODO; 5699 ErrorType get type => ErrorType.TODO;
5718 } 5700 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698