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