C# Class Rubberduck.Parsing.Symbols.DeclarationSymbolsListener

Inheritance: Rubberduck.Parsing.Grammar.VBABaseListener
Mostra file Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
CreateModuleDeclarations ( ) : void
DeclarationSymbolsListener ( QualifiedModuleName qualifiedName, Accessibility componentAccessibility, vbext_ComponentType type, IEnumerable comments, IEnumerable annotations, DeclarationType>.IDictionary attributes, HashSet projectReferences ) : Antlr4.Runtime
EnterArgList ( VBAParser context ) : void
EnterConstSubStmt ( VBAParser context ) : void
EnterDeclareStmt ( VBAParser context ) : void
EnterEnumerationStmt ( VBAParser context ) : void
EnterEnumerationStmt_Constant ( VBAParser context ) : void
EnterEventStmt ( VBAParser context ) : void
EnterFunctionStmt ( VBAParser context ) : void
EnterLineLabel ( VBAParser context ) : void
EnterOptionBaseStmt ( VBAParser context ) : void
EnterOptionCompareStmt ( VBAParser context ) : void
EnterOptionExplicitStmt ( VBAParser context ) : void
EnterPropertyGetStmt ( VBAParser context ) : void
EnterPropertyLetStmt ( VBAParser context ) : void
EnterPropertySetStmt ( VBAParser context ) : void
EnterSubStmt ( VBAParser context ) : void
EnterTypeStmt ( VBAParser context ) : void
EnterTypeStmt_Element ( VBAParser context ) : void
EnterVariableSubStmt ( VBAParser context ) : void
ExitDeclareStmt ( VBAParser context ) : void
ExitEnumerationStmt ( VBAParser context ) : void
ExitEventStmt ( VBAParser context ) : void
ExitFunctionStmt ( VBAParser context ) : void
ExitOptionPrivateModuleStmt ( VBAParser context ) : void
ExitPropertyGetStmt ( VBAParser context ) : void
ExitPropertyLetStmt ( VBAParser context ) : void
ExitPropertySetStmt ( VBAParser context ) : void
ExitSubStmt ( VBAParser context ) : void
ExitTypeStmt ( VBAParser context ) : void

Private Methods

Method Description
CreateDeclaration ( string identifierName, string asTypeName, Accessibility accessibility, DeclarationType declarationType, ParserRuleContext context, Rubberduck.VBEditor.Selection selection, bool selfAssigned = false, bool withEvents = false ) : Rubberduck.Parsing.Symbols.Declaration
CreateProjectDeclaration ( QualifiedModuleName projectQualifiedName, VBProject project ) : Rubberduck.Parsing.Symbols.Declaration
DeclareControlsAsMembers ( VBComponent form ) : void

Scans form designer to create a public, self-assigned field for each control on a form.

These declarations are meant to be used to identify control event procedures.

FindAnnotations ( ) : IEnumerable
FindAnnotations ( int line ) : IEnumerable
GetMemberAccessibility ( VBAParser visibilityContext ) : Accessibility

Gets the Accessibility for a non-procedure member.

GetProcedureAccessibility ( VBAParser visibilityContext ) : Accessibility

Gets the Accessibility for a procedure member.

OnNewDeclaration ( Rubberduck.Parsing.Symbols.Declaration declaration ) : void
SetCurrentScope ( ) : void

Sets current scope to module-level.

SetCurrentScope ( Rubberduck.Parsing.Symbols.Declaration procedureDeclaration, string name ) : void

Sets current scope to specified module member.

Method Details

CreateModuleDeclarations() public method

public CreateModuleDeclarations ( ) : void
return void

DeclarationSymbolsListener() public method

public DeclarationSymbolsListener ( QualifiedModuleName qualifiedName, Accessibility componentAccessibility, vbext_ComponentType type, IEnumerable comments, IEnumerable annotations, DeclarationType>.IDictionary attributes, HashSet projectReferences ) : Antlr4.Runtime
qualifiedName Rubberduck.VBEditor.QualifiedModuleName
componentAccessibility Accessibility
type vbext_ComponentType
comments IEnumerable
annotations IEnumerable
attributes DeclarationType>.IDictionary
projectReferences HashSet
return Antlr4.Runtime

EnterArgList() public method

public EnterArgList ( VBAParser context ) : void
context VBAParser
return void

EnterConstSubStmt() public method

public EnterConstSubStmt ( VBAParser context ) : void
context VBAParser
return void

EnterDeclareStmt() public method

public EnterDeclareStmt ( VBAParser context ) : void
context VBAParser
return void

EnterEnumerationStmt() public method

public EnterEnumerationStmt ( VBAParser context ) : void
context VBAParser
return void

EnterEnumerationStmt_Constant() public method

public EnterEnumerationStmt_Constant ( VBAParser context ) : void
context VBAParser
return void

EnterEventStmt() public method

public EnterEventStmt ( VBAParser context ) : void
context VBAParser
return void

EnterFunctionStmt() public method

public EnterFunctionStmt ( VBAParser context ) : void
context VBAParser
return void

EnterLineLabel() public method

public EnterLineLabel ( VBAParser context ) : void
context VBAParser
return void

EnterOptionBaseStmt() public method

public EnterOptionBaseStmt ( VBAParser context ) : void
context VBAParser
return void

EnterOptionCompareStmt() public method

public EnterOptionCompareStmt ( VBAParser context ) : void
context VBAParser
return void

EnterOptionExplicitStmt() public method

public EnterOptionExplicitStmt ( VBAParser context ) : void
context VBAParser
return void

EnterPropertyGetStmt() public method

public EnterPropertyGetStmt ( VBAParser context ) : void
context VBAParser
return void

EnterPropertyLetStmt() public method

public EnterPropertyLetStmt ( VBAParser context ) : void
context VBAParser
return void

EnterPropertySetStmt() public method

public EnterPropertySetStmt ( VBAParser context ) : void
context VBAParser
return void

EnterSubStmt() public method

public EnterSubStmt ( VBAParser context ) : void
context VBAParser
return void

EnterTypeStmt() public method

public EnterTypeStmt ( VBAParser context ) : void
context VBAParser
return void

EnterTypeStmt_Element() public method

public EnterTypeStmt_Element ( VBAParser context ) : void
context VBAParser
return void

EnterVariableSubStmt() public method

public EnterVariableSubStmt ( VBAParser context ) : void
context VBAParser
return void

ExitDeclareStmt() public method

public ExitDeclareStmt ( VBAParser context ) : void
context VBAParser
return void

ExitEnumerationStmt() public method

public ExitEnumerationStmt ( VBAParser context ) : void
context VBAParser
return void

ExitEventStmt() public method

public ExitEventStmt ( VBAParser context ) : void
context VBAParser
return void

ExitFunctionStmt() public method

public ExitFunctionStmt ( VBAParser context ) : void
context VBAParser
return void

ExitOptionPrivateModuleStmt() public method

public ExitOptionPrivateModuleStmt ( VBAParser context ) : void
context VBAParser
return void

ExitPropertyGetStmt() public method

public ExitPropertyGetStmt ( VBAParser context ) : void
context VBAParser
return void

ExitPropertyLetStmt() public method

public ExitPropertyLetStmt ( VBAParser context ) : void
context VBAParser
return void

ExitPropertySetStmt() public method

public ExitPropertySetStmt ( VBAParser context ) : void
context VBAParser
return void

ExitSubStmt() public method

public ExitSubStmt ( VBAParser context ) : void
context VBAParser
return void

ExitTypeStmt() public method

public ExitTypeStmt ( VBAParser context ) : void
context VBAParser
return void