changeset 15631:8de99b84c9cd

SL: correct to use new SourceAttribution factory methods.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 13 May 2014 18:29:55 -0700
parents 2d63ce48d222
children dcaf3993ad17
files graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;