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

small cleanup in ReadVariableNode

parent 0471d9be
No related branches found
No related tags found
No related merge requests found
......@@ -104,8 +104,7 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta
}
public static ReadVariableNode create(SourceSection src, String name, boolean shouldCopyValue) {
ReadVariableNode rvn = new ReadVariableNode(src, name, RType.Any, shouldCopyValue ? ReadKind.Copying : ReadKind.Normal);
return rvn;
return new ReadVariableNode(src, name, RType.Any, shouldCopyValue ? ReadKind.Copying : ReadKind.Normal);
}
public static ReadVariableNode createSilent(String name, RType mode) {
......@@ -113,18 +112,15 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta
}
public static ReadVariableNode createSuperLookup(SourceSection src, String name) {
ReadVariableNode rvn = new ReadVariableNode(src, name, RType.Any, ReadKind.Super);
return rvn;
return new ReadVariableNode(src, name, RType.Any, ReadKind.Super);
}
public static ReadVariableNode createFunctionLookup(SourceSection src, String identifier) {
ReadVariableNode result = new ReadVariableNode(src, identifier, RType.Function, ReadKind.Normal);
return result;
return new ReadVariableNode(src, identifier, RType.Function, ReadKind.Normal);
}
public static ReadVariableNode createForcedFunctionLookup(SourceSection src, String name) {
ReadVariableNode result = new ReadVariableNode(src, name, RType.Function, ReadKind.ForcedTypeCheck);
return result;
return new ReadVariableNode(src, name, RType.Function, ReadKind.ForcedTypeCheck);
}
@Child private PromiseHelperNode promiseHelper;
......
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