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
7587e6ef
Commit
7587e6ef
authored
7 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Patches
Plain Diff
don't force source sections for loops
parent
ebd780e3
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/control/AbstractLoopNode.java
+3
-2
3 additions, 2 deletions
.../com/oracle/truffle/r/nodes/control/AbstractLoopNode.java
with
3 additions
and
2 deletions
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/control/AbstractLoopNode.java
+
3
−
2
View file @
7587e6ef
...
...
@@ -32,6 +32,7 @@ import com.oracle.truffle.r.runtime.nodes.RNode;
import
com.oracle.truffle.r.runtime.nodes.RSyntaxCall
;
import
com.oracle.truffle.r.runtime.nodes.RSyntaxElement
;
import
com.oracle.truffle.r.runtime.nodes.RSyntaxLookup
;
import
com.oracle.truffle.r.runtime.nodes.RSyntaxNode
;
/** Marker class for loops. */
public
abstract
class
AbstractLoopNode
extends
OperatorNode
{
...
...
@@ -47,9 +48,9 @@ public abstract class AbstractLoopNode extends OperatorNode {
if
(
rootNode
instanceof
RRootNode
)
{
function
=
rootNode
.
toString
();
}
SourceSection
sourceSection
=
getSourceSection
();
SourceSection
sourceSection
=
get
Lazy
SourceSection
();
int
startLine
=
-
1
;
if
(
sourceSection
!=
null
)
{
if
(
sourceSection
!=
null
&&
sourceSection
!=
RSyntaxNode
.
LAZY_DEPARSE
&&
sourceSection
!=
RSyntaxNode
.
INTERNAL
&&
sourceSection
!=
RSyntaxNode
.
SOURCE_UNAVAILABLE
)
{
startLine
=
sourceSection
.
getStartLine
();
}
RSyntaxElement
call
=
((
RSyntaxCall
)
this
).
getSyntaxLHS
();
...
...
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