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

Unified Diff: pkg/compiler/lib/src/warnings.dart

Issue 1157333003: Compute more SendStructures on ResolverVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Check for explicit this property access. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/warnings.dart
diff --git a/pkg/compiler/lib/src/warnings.dart b/pkg/compiler/lib/src/warnings.dart
index d7f1403a352bf965a0aee41014a9b19d55382ca2..692fc0ce3c10f049bedea67ae7cd29b48baad201 100644
--- a/pkg/compiler/lib/src/warnings.dart
+++ b/pkg/compiler/lib/src/warnings.dart
@@ -167,8 +167,8 @@ main() => new A().m();
static const MessageKind NO_INSTANCE_AVAILABLE = const MessageKind(
"'#{name}' is only available in instance methods.");
- static const MessageKind NO_SUPER_AVAILABLE = const MessageKind(
- "'super' is only available in instance methods.");
+ static const MessageKind NO_THIS_AVAILABLE = const MessageKind(
+ "'this' is only available in instance methods.");
static const MessageKind PRIVATE_ACCESS = const MessageKind(
"'#{name}' is declared private within library "
@@ -598,6 +598,9 @@ main() => new C<String>();
static const MessageKind INVALID_USE_OF_SUPER = const MessageKind(
"'super' not allowed here.");
+ static const MessageKind INVALID_USE_OF_THIS = const MessageKind(
+ "'this' not allowed here.");
+
static const MessageKind INVALID_CASE_DEFAULT = const MessageKind(
"'default' only allowed on last case of a switch.");
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698