[Laszlo-dev] Calling the dependencies generator

P T Withington ptw at openlaszlo.org
Mon Mar 24 09:32:05 PDT 2008


On 2008-02-27, at 17:15 EST, Donald Anderson wrote:
> This snippet added to NodeModel.java during testing (but not part of  
> this change)
> shows how the new dependency function can be called:
>
>     if (when.equals(WHEN_ALWAYS)) {
>         System.out.println("CONSTRAINT: src = " +  
> canonicalValue.toString());
>         String dep = (new  
> org 
> .openlaszlo 
> .sc.Compiler()).dependenciesForExpression(canonicalValue.toString());
>         System.out.println("CONSTRAINT: dep = " + dep);
>     }

It seems like a bad idea to have to cons up a new sc.Compiler every  
time I want to analyze dependencies.  Is there a compiler laying  
around that I can just use?




More information about the Laszlo-dev mailing list