public DeclarationStatement(Types type, string name, Expression expression, Method method) : base(expression) { Type = type; VariableName = name; method.Variables.Add(this); }
public Method Method(string name, string returnTypeName) { currentMethod = new Method(name, GetTypeFromName(returnTypeName)); return currentMethod; }