| Index: pkg/compiler/lib/src/js_backend/namer.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
|
| index 06267f89d3c7bb90e92511f99c891435829cd487..3c40214e81b6505568e58254acfd5e3ad5aff41c 100644
|
| --- a/pkg/compiler/lib/src/js_backend/namer.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/namer.dart
|
| @@ -1543,8 +1543,18 @@ class ConstantNamingVisitor implements ConstantValueVisitor {
|
| }
|
|
|
| @override
|
| - void visitDummy(DummyConstantValue constant, [_]) {
|
| - add('dummy_receiver');
|
| + void visitSynthetic(SyntheticConstantValue constant, [_]) {
|
| + switch (constant.kind) {
|
| + case SyntheticConstantKind.DUMMY_INTERCEPTOR:
|
| + add('dummy_receiver');
|
| + break;
|
| + case SyntheticConstantKind.TYPEVARIABLE_REFERENCE:
|
| + add('type_variable_reference');
|
| + break;
|
| + default:
|
| + compiler.internalError(compiler.currentElement,
|
| + "Unexpected SyntheticConstantValue");
|
| + }
|
| }
|
|
|
| @override
|
| @@ -1646,9 +1656,16 @@ class ConstantCanonicalHasher implements ConstantValueVisitor<int, Null> {
|
| }
|
|
|
| @override
|
| - visitDummy(DummyConstantValue constant, [_]) {
|
| - compiler.internalError(NO_LOCATION_SPANNABLE,
|
| - 'DummyReceiverConstant should never be named and never be subconstant');
|
| + visitSynthetic(SyntheticConstantValue constant, [_]) {
|
| + switch (constant.kind) {
|
| + case SyntheticConstantKind.TYPEVARIABLE_REFERENCE:
|
| + return constant.payload.hashCode;
|
| + default:
|
| + compiler.internalError(NO_LOCATION_SPANNABLE,
|
| + 'SyntheticConstantValue should never be named and '
|
| + 'never be subconstant');
|
| + return null;
|
| + }
|
| }
|
|
|
| @override
|
|
|