[Swift-commit] r2757 - trunk/src/org/griphyn/vdl/engine

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sun Mar 29 14:26:13 CDT 2009


Author: hategan
Date: 2009-03-29 14:26:12 -0500 (Sun, 29 Mar 2009)
New Revision: 2757

Modified:
   trunk/src/org/griphyn/vdl/engine/Karajan.java
Log:
pass line numbers to the vdlx

Modified: trunk/src/org/griphyn/vdl/engine/Karajan.java
===================================================================
--- trunk/src/org/griphyn/vdl/engine/Karajan.java	2009-03-29 19:24:51 UTC (rev 2756)
+++ trunk/src/org/griphyn/vdl/engine/Karajan.java	2009-03-29 19:26:12 UTC (rev 2757)
@@ -199,6 +199,7 @@
 		VariableScope innerScope = new VariableScope(this, outerScope, VariableScope.ENCLOSURE_NONE);
 		StringTemplate procST = template("procedure");
 		containingScope.bodyTemplate.setAttribute("procedures", procST);
+		procST.setAttribute("line", proc.getSrc().substring(proc.getSrc().indexOf(' ') + 1));
 		procST.setAttribute("name", proc.getName());
 		for (int i = 0; i < proc.sizeOfOutputArray(); i++) {
 			FormalParameter param = proc.getOutputArray(i);
@@ -603,6 +604,7 @@
 
 			StringTemplate foreachST = template("foreach");
 			foreachST.setAttribute("var", foreach.getVar());
+			foreachST.setAttribute("line", foreach.getSrc().substring(foreach.getSrc().indexOf(' ') + 1));
 			
 			XmlObject in = foreach.getIn().getAbstractExpression();
 			StringTemplate inST = expressionToKarajan(in, scope);




More information about the Swift-commit mailing list