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