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

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

Issue 755313003: Fix for issue 20930 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | 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 4821 matching lines...) Expand 10 before | Expand all | Expand 10 after
4832 */ 4832 */
4833 static const StaticWarningCode TYPE_ANNOTATION_DEFERRED_CLASS = 4833 static const StaticWarningCode TYPE_ANNOTATION_DEFERRED_CLASS =
4834 const StaticWarningCode( 4834 const StaticWarningCode(
4835 'TYPE_ANNOTATION_DEFERRED_CLASS', 4835 'TYPE_ANNOTATION_DEFERRED_CLASS',
4836 "The deferred type '{0}' cannot be used in a declaration, cast or type test"); 4836 "The deferred type '{0}' cannot be used in a declaration, cast or type test");
4837 4837
4838 /** 4838 /**
4839 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type 4839 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
4840 * available in the current lexical scope. 4840 * available in the current lexical scope.
4841 */ 4841 */
4842 static const StaticWarningCode TYPE_TEST_NON_TYPE = const StaticWarningCode( 4842 static const StaticWarningCode TYPE_TEST_WITH_NON_TYPE = const StaticWarningCo de(
4843 'TYPE_TEST_NON_TYPE', 4843 'TYPE_TEST_WITH_NON_TYPE',
4844 "The name '{0}' is not a type and cannot be used in an 'is' expression"); 4844 "The name '{0}' is not a type and cannot be used in an 'is' expression");
4845 4845
4846 /** 4846 /**
4847 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
4848 * available in the current lexical scope.
4849 */
4850 static const StaticWarningCode TYPE_TEST_WITH_UNDEFINED_NAME = const StaticWar ningCode(
4851 'TYPE_TEST_WITH_UNDEFINED_NAME',
4852 "The name '{0}' is not defined and cannot be used in an 'is' expression");
4853
4854 /**
4847 * 10 Generics: However, a type parameter is considered to be a malformed type 4855 * 10 Generics: However, a type parameter is considered to be a malformed type
4848 * when referenced by a static member. 4856 * when referenced by a static member.
4849 * 4857 *
4850 * 15.1 Static Types: Any use of a malformed type gives rise to a static 4858 * 15.1 Static Types: Any use of a malformed type gives rise to a static
4851 * warning. A malformed type is then interpreted as dynamic by the static type 4859 * warning. A malformed type is then interpreted as dynamic by the static type
4852 * checker and the runtime. 4860 * checker and the runtime.
4853 */ 4861 */
4854 static const StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC = 4862 static const StaticWarningCode TYPE_PARAMETER_REFERENCED_BY_STATIC =
4855 const StaticWarningCode( 4863 const StaticWarningCode(
4856 'TYPE_PARAMETER_REFERENCED_BY_STATIC', 4864 'TYPE_PARAMETER_REFERENCED_BY_STATIC',
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 * Initialize a newly created error code to have the given [name]. 5006 * Initialize a newly created error code to have the given [name].
4999 */ 5007 */
5000 const TodoCode(String name) : super(name, "{0}"); 5008 const TodoCode(String name) : super(name, "{0}");
5001 5009
5002 @override 5010 @override
5003 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5011 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5004 5012
5005 @override 5013 @override
5006 ErrorType get type => ErrorType.TODO; 5014 ErrorType get type => ErrorType.TODO;
5007 } 5015 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698