public override void EnterCertainIdentifier(VBAParser.CertainIdentifierContext context) { // skip declarations if (IsDeclarativeContext(context)) { return; } var selection = context.GetSelection(); EnterIdentifier(context, selection); }
private bool IsDeclarativeContext(VBAParser.CertainIdentifierContext context) { return(IsDeclarativeParentContext(context.Parent)); }