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

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

Issue 1198293002: dart2js: Use an abstract Name class for names in the generated JavaScript ast. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix tests Created 5 years, 6 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
Index: pkg/compiler/lib/src/types/constants.dart
diff --git a/pkg/compiler/lib/src/types/constants.dart b/pkg/compiler/lib/src/types/constants.dart
index ec39d45da075fc4c498fefe151dd7bc8e04ca915..1bcc1bef60fec8b8f385213e7931a604d7942d2e 100644
--- a/pkg/compiler/lib/src/types/constants.dart
+++ b/pkg/compiler/lib/src/types/constants.dart
@@ -54,6 +54,8 @@ class ConstantValueTypeMasks extends ConstantValueVisitor<TypeMask, Compiler> {
return constant.payload;
case SyntheticConstantKind.TYPEVARIABLE_REFERENCE:
return compiler.typesTask.intType;
+ case SyntheticConstantKind.NAME:
+ return compiler.typesTask.stringType;
default:
compiler.internalError(compiler.currentElement,
"Unexpected DummyConstantKind.");

Powered by Google App Engine
This is Rietveld 408576698