Пример #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)
 {
 }