[Swift-commit] r7085 - trunk/src/org/griphyn/vdl/karajan/lib/swiftscript
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Thu Sep 19 01:43:22 CDT 2013
Author: hategan
Date: 2013-09-19 01:43:21 -0500 (Thu, 19 Sep 2013)
New Revision: 7085
Modified:
trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java
Log:
made value parameter to arg() optional
Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java 2013-09-19 02:03:54 UTC (rev 7084)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/FnArg.java 2013-09-19 06:43:21 UTC (rev 7085)
@@ -26,11 +26,14 @@
import k.rt.ExecutionException;
import k.rt.Stack;
+import k.thr.LWThread;
import org.globus.cog.karajan.analyzer.ArgRef;
+import org.globus.cog.karajan.analyzer.CompilationException;
import org.globus.cog.karajan.analyzer.Scope;
import org.globus.cog.karajan.analyzer.Signature;
import org.globus.cog.karajan.analyzer.VarRef;
+import org.globus.cog.karajan.parser.WrapperNode;
import org.griphyn.vdl.karajan.lib.SwiftFunction;
import org.griphyn.vdl.mapping.AbstractDataNode;
import org.griphyn.vdl.mapping.DSHandle;
@@ -46,7 +49,7 @@
@Override
protected Signature getSignature() {
- return new Signature(params("name", "value"));
+ return new Signature(params("name", optional("value", null)));
}
@Override
More information about the Swift-commit
mailing list