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

Unified Diff: pkg/compiler/lib/src/constants/constant_constructors.dart

Issue 2663033004: Prepare equivalence strategies for testing entities. (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/serialization/equivalence.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/constant_constructors.dart
diff --git a/pkg/compiler/lib/src/constants/constant_constructors.dart b/pkg/compiler/lib/src/constants/constant_constructors.dart
index 38a182dcd9f7ab3dca258eaf06c7d98bec50a607..7572883a4028d683f5dd292bbe64623fa9a9a8df 100644
--- a/pkg/compiler/lib/src/constants/constant_constructors.dart
+++ b/pkg/compiler/lib/src/constants/constant_constructors.dart
@@ -291,6 +291,12 @@ class ConstantConstructorComputer extends SemanticVisitor
}
@override
+ ConstantExpression visitTopLevelFunctionGet(
Johnni Winther 2017/01/31 13:05:16 Needed to handle dart2js_resolver_test on the adde
+ Send node, MethodElement method, _) {
+ return new FunctionConstantExpression(method);
+ }
+
+ @override
ConstantExpression visitTopLevelFieldGet(Send node, FieldElement field, _) {
return new VariableConstantExpression(field);
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/serialization/equivalence.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698