public MethodSymbol(string name, IType returnType, IMethodScope enclosingScope, bool isStatic = false) : base(name, returnType, new MethodBodyScope(enclosingScope)) { IsStatic = isStatic; }
internal static MethodSymbol CreateAndDefineMethod(string name, IType type, IMethodScope scope) { var sym = new MethodSymbol(name, type, scope); scope.Define(sym); return sym; }
public MethodBodyScope(IMethodScope enclosingScope) : base(enclosingScope, true) { }