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

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

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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.error.codes; 5 library analyzer.src.error.codes;
6 6
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 8
9 export 'package:analyzer/src/analysis_options/error/option_codes.dart'; 9 export 'package:analyzer/src/analysis_options/error/option_codes.dart';
10 export 'package:analyzer/src/dart/error/hint_codes.dart'; 10 export 'package:analyzer/src/dart/error/hint_codes.dart';
(...skipping 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after
2988 * instance member named <i>m</i>. 2988 * instance member named <i>m</i>.
2989 * 2989 *
2990 * Parameters: 2990 * Parameters:
2991 * 0: the name of the method that is undefined 2991 * 0: the name of the method that is undefined
2992 * 1: the resolved type name that the method lookup is happening on 2992 * 1: the resolved type name that the method lookup is happening on
2993 */ 2993 */
2994 static const StaticTypeWarningCode UNDEFINED_METHOD_WITH_CONSTRUCTOR = 2994 static const StaticTypeWarningCode UNDEFINED_METHOD_WITH_CONSTRUCTOR =
2995 const StaticTypeWarningCode( 2995 const StaticTypeWarningCode(
2996 'UNDEFINED_METHOD_WITH_CONSTRUCTOR', 2996 'UNDEFINED_METHOD_WITH_CONSTRUCTOR',
2997 "The method '{0}' isn't defined for the class '{1}', but a constructor with that name is defined.", 2997 "The method '{0}' isn't defined for the class '{1}', but a constructor with that name is defined.",
2998 "Try adding 'new' or 'const' to invoke the constuctor, or " 2998 "Try adding 'new' or 'const' to invoke the constructor, or "
2999 "correcting the name to the name of an existing method."); 2999 "correcting the name to the name of an existing method.");
3000 3000
3001 /** 3001 /**
3002 * 12.18 Assignment: Evaluation of an assignment of the form 3002 * 12.18 Assignment: Evaluation of an assignment of the form
3003 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is 3003 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is
3004 * equivalent to the evaluation of the expression (a, i, e){a.[]=(i, e); 3004 * equivalent to the evaluation of the expression (a, i, e){a.[]=(i, e);
3005 * return e;} (<i>e<sub>1</sub></i>, <i>e<sub>2</sub></i>, 3005 * return e;} (<i>e<sub>1</sub></i>, <i>e<sub>2</sub></i>,
3006 * <i>e<sub>2</sub></i>). 3006 * <i>e<sub>2</sub></i>).
3007 * 3007 *
3008 * 12.29 Assignable Expressions: An assignable expression of the form 3008 * 12.29 Assignable Expressions: An assignable expression of the form
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
3610 * <i>this.id</i>. It is a static warning if the static type of <i>id</i> is 3610 * <i>this.id</i>. It is a static warning if the static type of <i>id</i> is
3611 * not assignable to <i>T<sub>id</sub></i>. 3611 * not assignable to <i>T<sub>id</sub></i>.
3612 * 3612 *
3613 * Parameters: 3613 * Parameters:
3614 * 0: the name of the type of the field formal parameter 3614 * 0: the name of the type of the field formal parameter
3615 * 1: the name of the type of the field 3615 * 1: the name of the type of the field
3616 */ 3616 */
3617 static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = 3617 static const StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE =
3618 const StaticWarningCode( 3618 const StaticWarningCode(
3619 'FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 3619 'FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE',
3620 "The parameter type '{0}' is incompatable with the field type '{1}'.", 3620 "The parameter type '{0}' is incompatible with the field type '{1}'.",
3621 "Try changing or removing the parameter's type, or " 3621 "Try changing or removing the parameter's type, or "
3622 "changing the field's type."); 3622 "changing the field's type.");
3623 3623
3624 /** 3624 /**
3625 * 5 Variables: It is a static warning if a library, static or local variable 3625 * 5 Variables: It is a static warning if a library, static or local variable
3626 * <i>v</i> is final and <i>v</i> is not initialized at its point of 3626 * <i>v</i> is final and <i>v</i> is not initialized at its point of
3627 * declaration. 3627 * declaration.
3628 * 3628 *
3629 * Parameters: 3629 * Parameters:
3630 * 0: the name of the uninitialized final variable 3630 * 0: the name of the uninitialized final variable
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
5062 * created from the optional [correction] template. 5062 * created from the optional [correction] template.
5063 */ 5063 */
5064 const StrongModeCode(ErrorType type, String name, String message, 5064 const StrongModeCode(ErrorType type, String name, String message,
5065 [String correction]) 5065 [String correction])
5066 : type = type, 5066 : type = type,
5067 super('STRONG_MODE_$name', message, correction); 5067 super('STRONG_MODE_$name', message, correction);
5068 5068
5069 @override 5069 @override
5070 ErrorSeverity get errorSeverity => type.severity; 5070 ErrorSeverity get errorSeverity => type.severity;
5071 } 5071 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/codegen/text_formatter.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698