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

Unified Diff: frog/gen.dart

Issue 8481023: cleanup errors and fix a couple field negative tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 | « frog/frogsh ('k') | frog/library.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/gen.dart
diff --git a/frog/gen.dart b/frog/gen.dart
index 807e2f13cda25cf2894022dd097c5aa9f664c2e0..a88a0cc5a8d4160fdf461f8377f7921ed2e63554 100644
--- a/frog/gen.dart
+++ b/frog/gen.dart
@@ -545,6 +545,8 @@ class MethodGenerator implements TreeVisitor {
bool get isClosure() => (enclosingMethod != null);
+ bool get isStatic() => method.isStatic;
+
Value getTemp(Value value) {
return value.needsTemp ? forceTemp(value) : value;
}
@@ -1420,7 +1422,7 @@ class MethodGenerator implements TreeVisitor {
}
_checkNonStatic(Node node) {
- if (method.isStatic) {
+ if (isStatic) {
world.warning('not allowed in static method', node.span);
}
}
« no previous file with comments | « frog/frogsh ('k') | frog/library.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698