Skip to content
Snippets Groups Projects
Commit 7f63e893 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

make sure getIdentifier returns an interned string in ReadVariadicComponentNode

parent 9e266162
Branches
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ public class ReadVariadicComponentNode extends RSourceSectionNode implements RSy ...@@ -102,7 +102,7 @@ public class ReadVariadicComponentNode extends RSourceSectionNode implements RSy
@Override @Override
public String getIdentifier() { public String getIdentifier() {
return getPrintForm(); return getPrintForm().intern();
} }
@Override @Override
......
...@@ -29,6 +29,9 @@ import com.oracle.truffle.api.source.SourceSection; ...@@ -29,6 +29,9 @@ import com.oracle.truffle.api.source.SourceSection;
*/ */
public interface RSyntaxLookup extends RSyntaxElement { public interface RSyntaxLookup extends RSyntaxElement {
/**
* @return The identifier that this lookup represents - this needs to be an interned string.
*/
String getIdentifier(); String getIdentifier();
boolean isFunctionLookup(); boolean isFunctionLookup();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment