Exemple #1
0
        public override void EnterPropertyLetStmt(VBAParser.PropertyLetStmtContext context)
        {
            var accessibility = GetProcedureAccessibility(context.visibility());
            var name          = context.ambiguousIdentifier().GetText();

            _declarations.Add(CreateDeclaration(name, null, accessibility, DeclarationType.PropertyLet, context, context.ambiguousIdentifier().GetSelection()));
            SetCurrentScope(name);
        }
        public static string Signature(this VBAParser.PropertyLetStmtContext context)
        {
            var visibility     = context.visibility();
            var visibilityText = visibility == null ? string.Empty : visibility.GetText();

            var identifierText = context.ambiguousIdentifier().GetText();
            var argsText       = context.argList().GetText();

            return((visibilityText + ' ' + Tokens.Property + ' ' + Tokens.Let + ' ' + identifierText + argsText).Trim());
        }
Exemple #3
0
 public ProcedureNode(VBAParser.PropertyLetStmtContext context, string scope, string localScope)
     : this(context, scope, localScope, VBProcedureKind.PropertyLet, context.visibility(), context.ambiguousIdentifier(), null)
 {
     _argsListContext = context.argList();
     _staticNode      = context.STATIC();
     _keyword         = context.PROPERTY_LET();
 }
 public override void EnterPropertyLetStmt(VBAParser.PropertyLetStmtContext context)
 {
     SetCurrentScope(context.ambiguousIdentifier().GetText(), DeclarationType.PropertyLet);
 }
Exemple #5
0
 public override void EnterPropertyLetStmt(VBAParser.PropertyLetStmtContext context)
 {
     _currentMember = new QualifiedMemberName(_qualifiedName, context.ambiguousIdentifier().GetText());
 }