public override object VisitComment(UHeaderParser.CommentContext context)
        {
            if (_currentClass != null || _currentEnum != null)
            {
                _currentComment = context.GetText();
            }

            return(null);
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="UHeaderParser.comment"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitComment([NotNull] UHeaderParser.CommentContext context)
 {
     return(VisitChildren(context));
 }