Index: compiler/java/com/google/dart/compiler/ast/DartIdentifier.java |
diff --git a/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java b/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java |
index 09eadc20b0468097c2945788a6a68ca32f8ae697..d9190e8d044676a8b75ae91bb96c734edf27bd76 100644 |
--- a/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java |
+++ b/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java |
@@ -6,6 +6,7 @@ package com.google.dart.compiler.ast; |
import com.google.dart.compiler.resolver.Element; |
import com.google.dart.compiler.resolver.NodeElement; |
+import com.google.dart.compiler.util.StringInterner; |
/** |
* Represents a Dart identifier expression. |
@@ -18,11 +19,11 @@ public class DartIdentifier extends DartExpression { |
public DartIdentifier(String name) { |
assert name != null; |
- this.name = name; |
+ this.name = StringInterner.intern(name); |
} |
public DartIdentifier(DartIdentifier original) { |
- this.name = original.name; |
+ this.name = StringInterner.intern(original.name); |
} |
@Override |