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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/error.dart
diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
index 8b002d597e8b9bbb94034fbd7b62b00694e0a070..21e99358aa86e2af227f00338fe0ac41c1f93ee0 100644
--- a/pkg/analyzer/lib/src/generated/error.dart
+++ b/pkg/analyzer/lib/src/generated/error.dart
@@ -4839,11 +4839,19 @@ class StaticWarningCode extends ErrorCode {
* 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
* available in the current lexical scope.
*/
- static const StaticWarningCode TYPE_TEST_NON_TYPE = const StaticWarningCode(
- 'TYPE_TEST_NON_TYPE',
+ static const StaticWarningCode TYPE_TEST_WITH_NON_TYPE = const StaticWarningCode(
+ 'TYPE_TEST_WITH_NON_TYPE',
"The name '{0}' is not a type and cannot be used in an 'is' expression");
/**
+ * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
+ * available in the current lexical scope.
+ */
+ static const StaticWarningCode TYPE_TEST_WITH_UNDEFINED_NAME = const StaticWarningCode(
+ 'TYPE_TEST_WITH_UNDEFINED_NAME',
+ "The name '{0}' is not defined and cannot be used in an 'is' expression");
+
+ /**
* 10 Generics: However, a type parameter is considered to be a malformed type
* when referenced by a static member.
*
« 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