public override void EnterStatementLabelDefinition(VBAParser.StatementLabelDefinitionContext context)
 {
     if (context.combinedLabels() != null)
     {
         var combinedLabel = context.combinedLabels();
         AddIdentifierStatementLabelDeclaration(combinedLabel.identifierStatementLabel());
         AddLineNumberLabelDeclaration(combinedLabel.lineNumberLabel());
     }
     else if (context.identifierStatementLabel() != null)
     {
         AddIdentifierStatementLabelDeclaration(context.identifierStatementLabel());
     }
     else
     {
         AddLineNumberLabelDeclaration(context.standaloneLineNumberLabel().lineNumberLabel());
     }
 }
        public override void EnterStatementLabelDefinition(VBAParser.StatementLabelDefinitionContext context)
        {
            var statementText = context.identifierStatementLabel() != null
                ? context.identifierStatementLabel().unrestrictedIdentifier().GetText()
                : context.lineNumberLabel().numberLiteral().GetText();

            var statementSelection = context.identifierStatementLabel() != null
                ? context.identifierStatementLabel().unrestrictedIdentifier().GetSelection()
                : context.lineNumberLabel().numberLiteral().GetSelection();

            AddDeclaration(
                CreateDeclaration(
                    statementText,
                    null,
                    Accessibility.Private,
                    DeclarationType.LineLabel,
                    context,
                    statementSelection,
                    true,
                    null,
                    null));
        }