@@ -78,7 +78,7 @@ internal static void Tokenize(
78
78
var maxSkippedPositions = configuration . PreProcessedLocations is null
79
79
|| ! configuration . PreProcessedLocations . Any ( )
80
80
? 0
81
- : configuration . PreProcessedLocations . Max ( x => x . Start ) ;
81
+ : configuration . PreProcessedLocations . Max ( x => x . Index ) ;
82
82
83
83
84
84
var validTokens = GetValidTokens ( rootCommand ) ;
@@ -111,7 +111,7 @@ internal static void Tokenize(
111
111
112
112
if ( i <= maxSkippedPositions
113
113
&& configuration . PreProcessedLocations is not null
114
- && configuration . PreProcessedLocations . Any ( x => x . Start == i ) )
114
+ && configuration . PreProcessedLocations . Any ( x => x . Index == i ) )
115
115
{
116
116
continue ;
117
117
}
@@ -229,7 +229,7 @@ static bool TryUnbundle(ReadOnlySpan<char> alias,
229
229
{
230
230
string value = alias . Slice ( i + 1 ) . ToString ( ) ;
231
231
tokenList . Add ( Argument ( value ,
232
- Location . FromOuterLocation ( value , outerLocation . Start , outerLocation , i + 1 ) ) ) ;
232
+ Location . FromOuterLocation ( value , outerLocation . Index , outerLocation , i + 1 ) ) ) ;
233
233
return true ;
234
234
}
235
235
@@ -241,15 +241,15 @@ static bool TryUnbundle(ReadOnlySpan<char> alias,
241
241
// Invalid_char_in_bundle_causes_rest_to_be_interpreted_as_value
242
242
string value = alias . Slice ( i ) . ToString ( ) ;
243
243
tokenList . Add ( Argument ( value ,
244
- Location . FromOuterLocation ( value , outerLocation . Start , outerLocation , i ) ) ) ;
244
+ Location . FromOuterLocation ( value , outerLocation . Index , outerLocation , i ) ) ) ;
245
245
return true ;
246
246
}
247
247
248
248
return false ;
249
249
}
250
250
251
251
tokenList . Add ( new CliToken ( candidate , found . TokenType , found . Symbol ,
252
- Location . FromOuterLocation ( candidate , outerLocation . Start , outerLocation , i + 1 ) ) ) ;
252
+ Location . FromOuterLocation ( candidate , outerLocation . Index , outerLocation , i + 1 ) ) ) ;
253
253
254
254
if ( i != alias . Length - 1 && ( ( CliOption ) found . Symbol ) . Greedy )
255
255
{
@@ -260,7 +260,7 @@ static bool TryUnbundle(ReadOnlySpan<char> alias,
260
260
}
261
261
262
262
string value = alias . Slice ( index ) . ToString ( ) ;
263
- tokenList . Add ( Argument ( value , Location . FromOuterLocation ( value , outerLocation . Start , outerLocation , index ) ) ) ;
263
+ tokenList . Add ( Argument ( value , Location . FromOuterLocation ( value , outerLocation . Index , outerLocation , index ) ) ) ;
264
264
return true ;
265
265
}
266
266
}
0 commit comments