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

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

Issue 1144043004: Fix typo in analyzer error message. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 engine.error; 5 library engine.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'ast.dart' show AstNode; 9 import 'ast.dart' show AstNode;
10 import 'element.dart'; 10 import 'element.dart';
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 static const CompileTimeErrorCode AWAIT_IN_WRONG_CONTEXT = 510 static const CompileTimeErrorCode AWAIT_IN_WRONG_CONTEXT =
511 const CompileTimeErrorCode('AWAIT_IN_WRONG_CONTEXT', 511 const CompileTimeErrorCode('AWAIT_IN_WRONG_CONTEXT',
512 "The await expression can only be used in a function marked as async o r async*"); 512 "The await expression can only be used in a function marked as async o r async*");
513 513
514 /** 514 /**
515 * 12.30 Identifier Reference: It is a compile-time error to use a built-in 515 * 12.30 Identifier Reference: It is a compile-time error to use a built-in
516 * identifier other than dynamic as a type annotation. 516 * identifier other than dynamic as a type annotation.
517 */ 517 */
518 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE = 518 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE =
519 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE', 519 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE',
520 "The built-in identifier '{0}' cannot be as a type"); 520 "The built-in identifier '{0}' cannot be used as a type");
521 521
522 /** 522 /**
523 * 12.30 Identifier Reference: It is a compile-time error if a built-in 523 * 12.30 Identifier Reference: It is a compile-time error if a built-in
524 * identifier is used as the declared name of a class, type parameter or type 524 * identifier is used as the declared name of a class, type parameter or type
525 * alias. 525 * alias.
526 */ 526 */
527 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_NAME = 527 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_NAME =
528 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE_NAME', 528 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE_NAME',
529 "The built-in identifier '{0}' cannot be used as a type name"); 529 "The built-in identifier '{0}' cannot be used as a type name");
530 530
(...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after
4930 * Initialize a newly created error code to have the given [name]. 4930 * Initialize a newly created error code to have the given [name].
4931 */ 4931 */
4932 const TodoCode(String name) : super(name, "{0}"); 4932 const TodoCode(String name) : super(name, "{0}");
4933 4933
4934 @override 4934 @override
4935 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 4935 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
4936 4936
4937 @override 4937 @override
4938 ErrorType get type => ErrorType.TODO; 4938 ErrorType get type => ErrorType.TODO;
4939 } 4939 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698