All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.tree.compile.ClosureScopeCompiler Maven / Gradle / Ivy

package org.snapscript.tree.compile;

import org.snapscript.core.function.Function;
import org.snapscript.core.scope.Scope;
import org.snapscript.core.type.Type;

public class ClosureScopeCompiler extends ScopeCompiler{

   public ClosureScopeCompiler() {
      super();
   }
   
   public Scope compile(Scope closure, Type type, Function function) throws Exception {
      Scope scope = closure.getStack();
      
      compileParameters(scope, function);
      compileProperties(scope, type);
      
      return scope;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy