# HG changeset patch # User Michael Van De Vanter # Date 1400030995 25200 # Node ID 8de99b84c9cd099721565e3fbe36d2a5a9ca0d6b # Parent 2d63ce48d22267ca37e68a82fa89706c379520ac SL: correct to use new SourceAttribution factory methods. diff -r 2d63ce48d222 -r 8de99b84c9cd graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java --- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java Tue May 13 18:28:33 2014 -0700 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java Tue May 13 18:29:55 2014 -0700 @@ -27,7 +27,6 @@ import com.oracle.truffle.api.*; import com.oracle.truffle.api.frame.*; -import com.oracle.truffle.api.impl.*; import com.oracle.truffle.api.nodes.*; import com.oracle.truffle.sl.nodes.*; import com.oracle.truffle.sl.nodes.call.*; @@ -243,7 +242,7 @@ int startLine = t.line; int startColumn = t.col; int charLength = t.val.length(); - SourceSection sourceSection = new DefaultSourceSection(source, functionName, startLine, startColumn, 0, charLength); + SourceSection sourceSection = source.createSection(functionName, startLine, startColumn, 0, charLength); node.assignSourceSection(sourceSection); return node;