コード例 #1
0
 public ProcedureNode(VBAParser.SubStmtContext context, string scope, string localScope)
     : this(context, scope, localScope, VBProcedureKind.Sub, context.visibility(), context.ambiguousIdentifier(), null)
 {
     _argsListContext = context.argList();
     _staticNode = context.STATIC();
     _keyword = context.SUB();
 }
コード例 #2
0
 public ProcedureNode(VBAParser.FunctionStmtContext context, string scope, string localScope)
     : this(context, scope, localScope, VBProcedureKind.Function, context.visibility(), context.ambiguousIdentifier(), () => context.asTypeClause())
 {
     _argsListContext = context.argList();
     _staticNode = context.STATIC();
     _keyword = context.FUNCTION();
     _asTypeClauseContext = context.asTypeClause();
 }
コード例 #3
0
 public ProcedureNode(VBAParser.PropertyGetStmtContext context, string scope, string localScope)
     : this(context, scope, localScope, VBProcedureKind.PropertyGet, context.visibility(), context.ambiguousIdentifier(), () => context.asTypeClause())
 {
     _argsListContext = context.argList();
     _staticNode = context.STATIC();
     _keyword = context.PROPERTY_GET();
     _asTypeClauseContext = context.asTypeClause();
 }