public override void ExitOptionBaseStmt(VBAParser.OptionBaseStmtContext context)
 {
     if (context.numberLiteral()?.INTEGERLITERAL().Symbol.Text == "1")
     {
         _contexts.Add(new QualifiedContext <ParserRuleContext>(CurrentModuleName, context));
     }
 }
 public override void ExitOptionBaseStmt(VBAParser.OptionBaseStmtContext context)
 {
     if (context.numberLiteral()?.INTEGERLITERAL().Symbol.Text == "0")
     {
         _contexts.Add(context);
     }
 }
 public override void EnterOptionBaseStmt(VBAParser.OptionBaseStmtContext context)
 {
     AddDeclaration(CreateDeclaration(
                        context.GetText(),
                        string.Empty,
                        Accessibility.Implicit,
                        DeclarationType.ModuleOption,
                        context,
                        context.GetSelection(),
                        false,
                        null,
                        null));
 }
Пример #4
0
 public override void EnterOptionBaseStmt(VBAParser.OptionBaseStmtContext context)
 {
     CheckContext(context, context.OPTION_BASE());
     base.EnterOptionBaseStmt(context);
 }