Skip to content

Commit

Permalink
[Truffle] Set the new-line flag on the first node on a new line.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Jan 28, 2015
1 parent 3d510ea commit aed863a
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -1971,6 +1971,8 @@ public RubyNode visitNewlineNode(org.jruby.ast.NewlineNode node) {
lineSequence.add(new TraceNode(context, sourceSection));
lineSequence.add(node.getNextNode().accept(this));

lineSequence.get(0).setAtNewline();

return SequenceNode.sequence(context, sourceSection, lineSequence);
}

Expand Down

0 comments on commit aed863a

Please sign in to comment.