Revision: 2351
          http://vexi.svn.sourceforge.net/vexi/?rev=2351&view=rev
Author:   mkpg2
Date:     2007-09-28 09:55:51 -0700 (Fri, 28 Sep 2007)

Log Message:
-----------
Feature. Pass and access arguments when applying templates.
  pass:  template(b, [...])
  access:  arguments[i]

Modified Paths:
--------------
    trunk/core/org.ibex.js/src/org/ibex/js/Parser.java

Modified: trunk/core/org.ibex.js/src/org/ibex/js/Parser.java
===================================================================
--- trunk/core/org.ibex.js/src/org/ibex/js/Parser.java  2007-09-28 16:55:46 UTC 
(rev 2350)
+++ trunk/core/org.ibex.js/src/org/ibex/js/Parser.java  2007-09-28 16:55:51 UTC 
(rev 2351)
@@ -248,6 +248,9 @@
         si.jsfunc = ret;
         p.scopeStack.push(si);
         p.scopePush(ret);
+        p.scopeDeclare("arguments");
+        ret.add(firstLine, SCOPEPUT,p.scopeKey("arguments"));
+
         while(true) {
             //int s = ret.size;
             if(p.peekToken() == -1) break; // FIXME: Check this logic one more 
time


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to