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

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

Issue 2667473003: Move Entity and Local to entities.dart (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | pkg/compiler/lib/src/common/resolution.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/closure.dart
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart
index 07987db8b0965cb78a5ebccb41d9fa657073e0bc..8cec93b45be82e87191ce1e125f2e1bdbb996224 100644
--- a/pkg/compiler/lib/src/closure.dart
+++ b/pkg/compiler/lib/src/closure.dart
@@ -12,6 +12,7 @@ import 'compiler.dart' show Compiler;
import 'constants/expressions.dart';
import 'elements/resolution_types.dart';
import 'elements/elements.dart';
+import 'elements/entities.dart';
import 'elements/modelx.dart'
show BaseFunctionElementX, ClassElementX, ElementX;
import 'elements/visitor.dart' show ElementVisitor;
@@ -286,6 +287,9 @@ class BoxLocal extends Local {
BoxLocal(this.name, this.executableContext);
+ @override
+ MemberElement get memberContext => executableContext.memberContext;
+
String toString() => 'BoxLocal($name)';
}
@@ -359,6 +363,9 @@ class ThisLocal extends Local {
ThisLocal(this.executableContext);
+ @override
+ MemberElement get memberContext => executableContext.memberContext;
+
String get name => 'this';
ClassElement get enclosingClass => executableContext.enclosingClass;
@@ -1202,6 +1209,9 @@ class TypeVariableLocal implements Local {
TypeVariableLocal(this.typeVariable, this.executableContext);
+ @override
+ MemberElement get memberContext => executableContext.memberContext;
+
String get name => typeVariable.name;
int get hashCode => typeVariable.hashCode;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698