public override object VisitColorComponent(CommandLineParser.ColorComponentContext context) { return(context.integer() != null ? (int)Visit(context.integer()) / 255f : Visit(context.real())); }
/// <summary> /// Exit a parse tree produced by <see cref="CommandLineParser.colorComponent"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitColorComponent([NotNull] CommandLineParser.ColorComponentContext context) { }