private Signature createSignature(ArrayList<ModuleEnvironment> parameterTypes) { Signature signature = new Signature(); for (ModuleEnvironment parameter : parameterTypes) signature.addArgument("", parameter.getName()); return signature; }
public void endMethodCall() { ArrayList<ModuleEnvironment> parameterTypes = new ArrayList<ModuleEnvironment>(); String calledMethodName = fetchParameteresAndMethodName(parameterTypes); Signature calledMethodSignature = fetchCalledMethodSignature(parameterTypes, calledMethodName); ModuleEnvironment methodReturnType = ApplicationMainSymbolTable.getModuleByName(calledMethodSignature.getReturnType()); _typeCheckingStack.push(methodReturnType); }