public override void ExitOptionPrivateModuleStmt(VBAParser.OptionPrivateModuleStmtContext context) { if (_moduleDeclaration.DeclarationType == DeclarationType.ProceduralModule) { ((ProceduralModuleDeclaration)_moduleDeclaration).IsPrivateModule = true; } OnNewDeclaration(CreateDeclaration(context.GetText(), string.Empty, Accessibility.Implicit, DeclarationType.ModuleOption, context, context.GetSelection())); }
public override void ExitOptionPrivateModuleStmt(VBAParser.OptionPrivateModuleStmtContext context) { _declarations.Add(CreateDeclaration(context.GetText(), string.Empty, Accessibility.Implicit, DeclarationType.ModuleOption, context, context.GetSelection())); }