private string ExtractNameFromTypeName(TypeNamingParser.TypeNameContext c) { if (IsEnumType) { return(c.enumTypeName().GetText()); } if (IsInterfaceType) { return (c.possiblyGenericTypeName() .interfaceTypeName() .GetText()); } if (IsStructType) { return(c.possiblyGenericTypeName() .structTypeName() .GetText()); } return(c.possiblyGenericTypeName().simpleTypeName().GetText()); }
/// <summary> /// Exit a parse tree produced by <see cref="TypeNamingParser.typeName"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitTypeName([NotNull] TypeNamingParser.TypeNameContext context) { }