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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 2857333003: Handle const Symbol(...) in closed_world2_test (Closed)
Patch Set: Created 3 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 | « no previous file | pkg/compiler/lib/src/ssa/kernel_impact.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 3b5c430bada9414d9154c3939d7a5c7333f6504b..53e503edd205942d5d61a4e02f3174290fd6be3d 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -3840,6 +3840,9 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
ResolutionResult visitNewExpression(NewExpression node) {
ConstructorResult result = resolveConstructor(node);
ConstructorElement constructor = result.element;
+ if (resolution.commonElements.isSymbolConstructor(constructor)) {
+ registry.registerFeature(Feature.SYMBOL_CONSTRUCTOR);
+ }
ArgumentsResult argumentsResult;
if (node.isConst) {
argumentsResult =
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/kernel_impact.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698