public override void EnterTypeArgument(JavaParser.TypeArgumentContext context) { if (context.typeType() == null) { Type = PrimitiveTypeName.Void.FullyQualified; return; } TypeTypeListener typeTypeListener = new TypeTypeListener(); context.typeType().EnterRule(typeTypeListener); if (typeTypeListener.ID != null) { Type = typeTypeListener.ID; } else if (typeTypeListener.QualifiedName != null) { Type = typeTypeListener.QualifiedName; } else if (typeTypeListener.PrimitiveTypeName != null) { Type = PrimitiveTypeName.Void.FullyQualified; } }
public Ust VisitTypeArgument(JavaParser.TypeArgumentContext context) { TypeToken result; if (context.typeType() != null) { result = (TypeToken)Visit(context.typeType()); } else { result = new TypeToken("object", context.GetTextSpan()); } return(result); }