Examples of RascalFunction


Examples of org.rascalmpl.interpreter.result.RascalFunction

      if (!this.getBody().isDefault()) {
        throw new MissingModifier("java", this);
      }

      lambda = new RascalFunction(__eval, this, varArgs, __eval
          .getCurrentEnvt(), __eval.__getAccumulators());

      __eval.getCurrentEnvt().storeFunction(lambda.getName(), lambda);
      __eval.getCurrentEnvt().markNameFinal(lambda.getName());
      __eval.getCurrentEnvt().markNameOverloadable(lambda.getName());
View Full Code Here

Examples of org.rascalmpl.interpreter.result.RascalFunction

      if (hasJavaModifier(this)) {
        throw new NonAbstractJavaFunction(this);
      }

      lambda = new RascalFunction(__eval, this, varArgs, __eval
          .getCurrentEnvt(), __eval.__getAccumulators());
     
   
      lambda.setPublic(this.getVisibility().isPublic() || this.getVisibility().isDefault());
      __eval.getCurrentEnvt().markNameFinal(lambda.getName());
View Full Code Here

Examples of org.rascalmpl.interpreter.result.RascalFunction

      AbstractAST ite = ASTBuilder.makeStat("IfThenElse", src, ASTBuilder.make("Label", "Empty", src), getConditions(), ret, fail);
      List<AbstractAST> sl = Arrays.<AbstractAST>asList(ite);
      AbstractAST body = ASTBuilder.make("FunctionBody", "Default", src, sl);
      FunctionDeclaration.Default func = ASTBuilder.make("FunctionDeclaration", "Default", src, getTags(), getVisibility(), getSignature(), body);
     
      lambda = new RascalFunction(__eval, func, varArgs, __eval
          .getCurrentEnvt(), __eval.__getAccumulators());

      __eval.getCurrentEnvt().storeFunction(lambda.getName(), lambda);
      __eval.getCurrentEnvt().markNameFinal(lambda.getName());
      __eval.getCurrentEnvt().markNameOverloadable(lambda.getName());
View Full Code Here

Examples of org.rascalmpl.interpreter.result.RascalFunction

     
      if (parameters.hasKeywordFormals() && parameters.getKeywordFormals().hasKeywordFormalList()) {
        kwParams = TypeDeclarationEvaluator.computeKeywordParametersType(kws, eval);
      }

      return new RascalFunction(this, eval, null, (FunctionType) RTF
          .functionType(TF.voidType(), formals, kwParams), kws, this.getParameters()
          .isVarArgs(), false, false, this.getStatements0(), eval
          .getCurrentEnvt(), eval.__getAccumulators());
    }
View Full Code Here

Examples of org.rascalmpl.interpreter.result.RascalFunction

     
      if (parameters.hasKeywordFormals() && parameters.getKeywordFormals().hasKeywordFormalList()) {
        kwParams = TypeDeclarationEvaluator.computeKeywordParametersType(kwd, __eval);
      }

      return new RascalFunction(this, __eval, null,
          (FunctionType) RTF.functionType(returnType, formals, kwParams),
          kwd,
          this.getParameters()
          .isVarArgs(), false, false, this.getStatements(), env, __eval.__getAccumulators());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.