Beispiel #1
0
 public void defineLocalMethod() {
   try {
     FunctionSignature signature =
         new Signature(hasModifier(Modifier.VARARGS), _returnType, _argumentDefinitions);
     _scope
         .functions()
         .defineLocalMethod(this.getMethodName(), this.getInternalName(), signature, _modifiers);
   } catch (LookupException e) {
     throw new CompileException(_node, e.getMessage(), e);
   }
 }
Beispiel #2
0
 public VariableResolution[] declareParameters() {
   return _scope.variables().declareParameters(_argumentDefinitions);
 }