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(); }
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(); }
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(); }