Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
58b356e3
Commit
58b356e3
authored
8 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Patches
Plain Diff
small cleanup in ReadVariableNode
parent
0471d9be
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/access/variables/ReadVariableNode.java
+4
-8
4 additions, 8 deletions
...le/truffle/r/nodes/access/variables/ReadVariableNode.java
with
4 additions
and
8 deletions
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/access/variables/ReadVariableNode.java
+
4
−
8
View file @
58b356e3
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment