public static string Signature(this VBAParser.PropertyLetStmtContext context)
        {
            var visibility     = context.visibility();
            var visibilityText = visibility == null ? string.Empty : visibility.GetText();

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

            return((visibilityText + ' ' + Tokens.Property + ' ' + Tokens.Let + ' ' + identifierText + argsText).Trim());
        }
Beispiel #2
0
        public override void EnterPropertyLetStmt(VBAParser.PropertyLetStmtContext context)
        {
            var accessibility = GetProcedureAccessibility(context.visibility());
            var identifier    = context.identifier();

            if (identifier == null)
            {
                return;
            }
            var name = identifier.GetText();

            var declaration = CreateDeclaration(name, null, accessibility, DeclarationType.PropertyLet, context, context.identifier().GetSelection());

            OnNewDeclaration(declaration);
            SetCurrentScope(declaration, name);
        }
Beispiel #3
0
 public override void EnterPropertyLetStmt(VBAParser.PropertyLetStmtContext context)
 {
     SetCurrentScope(context.identifier().GetText(), DeclarationType.PropertyLet);
 }
 public ProcedureNode(VBAParser.PropertyLetStmtContext context, string scope, string localScope)
     : this(context, scope, localScope, VBProcedureKind.PropertyLet, context.visibility(), context.identifier(), null)
 {
     _argsListContext = context.argList();
     _staticNode      = context.STATIC();
     _keyword         = context.PROPERTY_LET();
 }
Beispiel #5
0
 public override void EnterPropertyLetStmt(VBAParser.PropertyLetStmtContext context)
 {
     _currentScopeAttributes = new Attributes();
     _currentScope           = Tuple.Create(context.identifier().GetText(), DeclarationType.PropertyLet);
 }