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

small cleanup in ReadVariableNode

parent 0471d9be
Branches
No related tags found
No related merge requests found
...@@ -104,8 +104,7 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta ...@@ -104,8 +104,7 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta
} }
public static ReadVariableNode create(SourceSection src, String name, boolean shouldCopyValue) { public static ReadVariableNode create(SourceSection src, String name, boolean shouldCopyValue) {
ReadVariableNode rvn = new ReadVariableNode(src, name, RType.Any, shouldCopyValue ? ReadKind.Copying : ReadKind.Normal); return new ReadVariableNode(src, name, RType.Any, shouldCopyValue ? ReadKind.Copying : ReadKind.Normal);
return rvn;
} }
public static ReadVariableNode createSilent(String name, RType mode) { public static ReadVariableNode createSilent(String name, RType mode) {
...@@ -113,18 +112,15 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta ...@@ -113,18 +112,15 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta
} }
public static ReadVariableNode createSuperLookup(SourceSection src, String name) { public static ReadVariableNode createSuperLookup(SourceSection src, String name) {
ReadVariableNode rvn = new ReadVariableNode(src, name, RType.Any, ReadKind.Super); return new ReadVariableNode(src, name, RType.Any, ReadKind.Super);
return rvn;
} }
public static ReadVariableNode createFunctionLookup(SourceSection src, String identifier) { public static ReadVariableNode createFunctionLookup(SourceSection src, String identifier) {
ReadVariableNode result = new ReadVariableNode(src, identifier, RType.Function, ReadKind.Normal); return new ReadVariableNode(src, identifier, RType.Function, ReadKind.Normal);
return result;
} }
public static ReadVariableNode createForcedFunctionLookup(SourceSection src, String name) { public static ReadVariableNode createForcedFunctionLookup(SourceSection src, String name) {
ReadVariableNode result = new ReadVariableNode(src, name, RType.Function, ReadKind.ForcedTypeCheck); return new ReadVariableNode(src, name, RType.Function, ReadKind.ForcedTypeCheck);
return result;
} }
@Child private PromiseHelperNode promiseHelper; @Child private PromiseHelperNode promiseHelper;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment