public Ust VisitClassOrInterfaceModifier(JavaParser.ClassOrInterfaceModifierContext context) { JavaParser.AnnotationContext annotation = context.annotation(); if (annotation != null) { return(VisitChildren(context)); } return(new ModifierLiteral(context.GetChild <ITerminalNode>(0).GetText(), context.GetTextSpan())); }
public UstNode VisitClassOrInterfaceModifier(JavaParser.ClassOrInterfaceModifierContext context) { JavaParser.AnnotationContext annotation = context.annotation(); if (annotation != null) { return(VisitChildren(context)); } Modifier modifier; ModifierLiteral result = null; if (Enum.TryParse <Modifier>(context.GetChild <ITerminalNode>(0).GetText(), true, out modifier)) { result = new ModifierLiteral(modifier, context.GetTextSpan(), FileNode); } return(result); }
public Ust VisitAnnotation([NotNull] JavaParser.AnnotationContext context) { return(VisitChildren(context)); }
public override void EnterAnnotation(JavaParser.AnnotationContext context) { QualifiedName = context.qualifiedName().GetText(); }