@@ -421,7 +421,7 @@ public partial {{commandModel.Kind}} {{typeName}}
421421 for ( var i = 0 ; i < subCommand . Commands . Length ; i ++ )
422422 names [ i ] = $ "\" { subCommand . Commands [ i ] . Name } \" ";
423423
424- writer . WriteLine ( $ "case ValueLiteral {{ Value: { string . Join ( " or " , names ) } }} :") ;
424+ writer . WriteLine ( $ "case Clap.Net. ValueLiteral( { string . Join ( " or " , names ) } ) :") ;
425425 writer . Indent ++ ;
426426 writer . WriteMultiLine ( $ """
427427 var subCommand = { subCommand . Symbol . ToDisplayString ( FullNameDisplayString ) } .Resolve(tokens[index..]);
@@ -445,7 +445,7 @@ public partial {{commandModel.Kind}} {{typeName}}
445445 }
446446
447447 writer . WriteLine ( "// Handling CompoundFlag" ) ;
448- writer . WriteLine ( "case CompoundFlag(var chars):" ) ;
448+ writer . WriteLine ( "case Clap.Net. CompoundFlag(var chars):" ) ;
449449 writer . Indent ++ ;
450450 writer . WriteLine ( "foreach (var c in chars)" ) ;
451451 writer . WriteLine ( "{" ) ;
@@ -532,7 +532,7 @@ public partial {{commandModel.Kind}} {{typeName}}
532532 {
533533 writer . WriteLine ( $ "// Setting attribute '{ fullName } .{ positional . Symbol . Name } '") ;
534534 writer . WriteLine (
535- $ "case ValueLiteral valueLiteral when positionalIndex is { positional . Index } :") ;
535+ $ "case Clap.Net. ValueLiteral valueLiteral when positionalIndex is { positional . Index } :") ;
536536 writer . WriteLine ( "{" ) ;
537537 writer . Indent ++ ;
538538 SetPositionalValue ( writer , positional ) ;
@@ -696,7 +696,7 @@ public partial class {{typeName}}
696696
697697 var commandFullName = command . Symbol . ToDisplayString ( FullNameDisplayString ) ;
698698 writer . WriteLine (
699- $ "ValueLiteral {{ Value: \" { name } \" }} => { commandFullName } .TryParse(tokens[1..]).ChangeType<{ fullName } >(),") ;
699+ $ "Clap.Net. ValueLiteral( \" { name } \" ) => { commandFullName } .TryParse(tokens[1..]).ChangeType<{ fullName } >(),") ;
700700 }
701701
702702 writer . WriteLine ( "_ => throw new Exception(\" Unknown command\" )" ) ;
@@ -748,7 +748,7 @@ private static void SetNamedArgumentValue(IndentedTextWriter writer, NamedArgume
748748 if ( argument . MemberType . Name is "Boolean" )
749749 {
750750 writer . WriteLine (
751- "if (index < tokens.Length - 1 && tokens[index] is ValueLiteral { Value: var value } && bool.TryParse(value.ToString(), out var b))" ) ;
751+ "if (index < tokens.Length - 1 && tokens[index] is Clap.Net. ValueLiteral( var value) && bool.TryParse(value.ToString(), out var b))" ) ;
752752 writer . WriteLine ( "{" ) ;
753753 writer . Indent ++ ;
754754 writer . WriteLine ( $ "{ argument . VariableName } = b;") ;
@@ -761,7 +761,7 @@ private static void SetNamedArgumentValue(IndentedTextWriter writer, NamedArgume
761761 return ;
762762 }
763763
764- writer . WriteLine ( "if (index > tokens.Length - 1 || tokens[index] is not ValueLiteral { Value: var value } )" ) ;
764+ writer . WriteLine ( "if (index > tokens.Length - 1 || tokens[index] is not Clap.Net. ValueLiteral( var value) )" ) ;
765765 writer . Indent ++ ;
766766 writer . WriteLine (
767767 $ "return new Clap.Net.Models.ParseError(\" Expected value to follow named arg '{ symbolName } '\" );") ;
0 commit comments