Ejemplo n.º 1
0
 public override object VisitColorComponent(CommandLineParser.ColorComponentContext context)
 {
     return(context.integer() != null ? (int)Visit(context.integer()) / 255f : Visit(context.real()));
 }
Ejemplo n.º 2
0
 /// <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)
 {
 }