Repository: incubator-systemml
Updated Branches:
  refs/heads/master b1451c0cd -> 5203d3607


[SYSTEMML-604] Undefined function error message line, col, filename

Call setAllPositions of FunctionCallIdentifier to set filename and
line/col positions.

Closes #100.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/5203d360
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/5203d360
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/5203d360

Branch: refs/heads/master
Commit: 5203d360708d52a333574b523221148683e664d6
Parents: b1451c0
Author: Deron Eriksson <[email protected]>
Authored: Thu Apr 7 16:29:27 2016 -0700
Committer: Deron Eriksson <[email protected]>
Committed: Thu Apr 7 16:29:27 2016 -0700

----------------------------------------------------------------------
 .../org/apache/sysml/parser/common/CommonSyntacticValidator.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/5203d360/src/main/java/org/apache/sysml/parser/common/CommonSyntacticValidator.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/sysml/parser/common/CommonSyntacticValidator.java 
b/src/main/java/org/apache/sysml/parser/common/CommonSyntacticValidator.java
index b1259d4..c63e166 100644
--- a/src/main/java/org/apache/sysml/parser/common/CommonSyntacticValidator.java
+++ b/src/main/java/org/apache/sysml/parser/common/CommonSyntacticValidator.java
@@ -697,6 +697,8 @@ public abstract class CommonSyntacticValidator {
                functCall.setFunctionName(functionName);
                functCall.setFunctionNamespace(namespace);
 
+               functCall.setAllPositions(currentFile, ctx.start.getLine(), 
ctx.start.getCharPositionInLine(), ctx.stop.getLine(), 
ctx.stop.getCharPositionInLine());
+
                setAssignmentStatement(ctx, info, target, functCall);
        }
 

Reply via email to