@@ -650,7 +650,7 @@ extension GrammarParser {
650
650
}
651
651
652
652
return try withoutActuallyEscaping ( parseLastCommandSet_set) { ( parseLastCommandSet_set) in
653
- return try self . oneOf (
653
+ try self . oneOf (
654
654
parseLastCommandSet_lastCommand,
655
655
parseLastCommandSet_set,
656
656
buffer: & buffer,
@@ -1330,7 +1330,7 @@ extension GrammarParser {
1330
1330
try self . fixedString ( " RFC822 " , buffer: & buffer, tracker: tracker)
1331
1331
return . rfc822
1332
1332
}
1333
-
1333
+
1334
1334
return try self . composite ( buffer: & buffer, tracker: tracker) { ( buffer, tracker) -> Media . Message in
1335
1335
try self . fixedString ( " \" MESSAGE \" \" " , buffer: & buffer, tracker: tracker)
1336
1336
let message = try parseMediaMessage_rfc ( buffer: & buffer, tracker: tracker)
@@ -2425,8 +2425,8 @@ extension GrammarParser {
2425
2425
{
2426
2426
var sources = [ try parseFilterMailboxes ( buffer: & buffer, tracker: tracker) ]
2427
2427
while let anotherSource = try self . optional ( buffer: & buffer,
2428
- tracker: tracker,
2429
- parser: parseExtendedSearchSourceOptions_spaceFilter)
2428
+ tracker: tracker,
2429
+ parser: parseExtendedSearchSourceOptions_spaceFilter)
2430
2430
{
2431
2431
sources. append ( anotherSource)
2432
2432
}
@@ -2446,8 +2446,8 @@ extension GrammarParser {
2446
2446
try self . fixedString ( " IN ( " , buffer: & buffer, tracker: tracker)
2447
2447
let sourceMbox = try parseExtendedSearchSourceOptions_sourceMBox ( buffer: & buffer, tracker: tracker)
2448
2448
let scopeOptions = try self . optional ( buffer: & buffer,
2449
- tracker: tracker,
2450
- parser: parseExtendedSearchSourceOptions_scopeOptions)
2449
+ tracker: tracker,
2450
+ parser: parseExtendedSearchSourceOptions_scopeOptions)
2451
2451
try self . fixedString ( " ) " , buffer: & buffer, tracker: tracker)
2452
2452
if let result = ExtendedSearchSourceOptions ( sourceMailbox: sourceMbox, scopeOptions: scopeOptions) {
2453
2453
return result
@@ -2473,11 +2473,11 @@ extension GrammarParser {
2473
2473
}
2474
2474
2475
2475
let sourceOptions = try self . optional ( buffer: & buffer,
2476
- tracker: tracker,
2477
- parser: parseExtendedSearchOptions_sourceOptions)
2476
+ tracker: tracker,
2477
+ parser: parseExtendedSearchOptions_sourceOptions)
2478
2478
let returnOpts = try self . optional ( buffer: & buffer,
2479
- tracker: tracker,
2480
- parser: self . parseSearchReturnOptions) ?? [ ]
2479
+ tracker: tracker,
2480
+ parser: self . parseSearchReturnOptions) ?? [ ]
2481
2481
try self . spaces ( buffer: & buffer, tracker: tracker)
2482
2482
let ( charset, program) = try parseSearchProgram ( buffer: & buffer, tracker: tracker)
2483
2483
return ExtendedSearchOptions ( key: program, charset: charset, returnOptions: returnOpts, sourceOptions: sourceOptions)
@@ -2527,8 +2527,8 @@ struct StackTracker {
2527
2527
}
2528
2528
2529
2529
// MARK: - ParserLibrary shortcuts
2530
- extension GrammarParser {
2531
2530
2531
+ extension GrammarParser {
2532
2532
static func oneOrMoreCharacters( buffer: inout ParseBuffer , tracker: StackTracker , where: ( ( UInt8 ) -> Bool ) ) throws -> ByteBuffer {
2533
2533
try ParserLibrary . parseOneOrMoreCharacters ( buffer: & buffer, tracker: tracker, where: `where`)
2534
2534
}
@@ -2582,18 +2582,18 @@ extension GrammarParser {
2582
2582
}
2583
2583
2584
2584
static func oneOf< T> ( _ parser1: SubParser < T > ,
2585
- _ parser2: SubParser < T > ,
2586
- buffer: inout ParseBuffer ,
2587
- tracker: StackTracker , file: String = ( #file) , line: Int = #line) throws -> T
2585
+ _ parser2: SubParser < T > ,
2586
+ buffer: inout ParseBuffer ,
2587
+ tracker: StackTracker , file: String = ( #file) , line: Int = #line) throws -> T
2588
2588
{
2589
2589
try ParserLibrary . oneOf2 ( parser1, parser2, buffer: & buffer, tracker: tracker)
2590
2590
}
2591
2591
2592
2592
static func oneOf< T> ( _ parser1: SubParser < T > ,
2593
- _ parser2: SubParser < T > ,
2594
- _ parser3: SubParser < T > ,
2595
- buffer: inout ParseBuffer ,
2596
- tracker: StackTracker , file: String = ( #file) , line: Int = #line) throws -> T
2593
+ _ parser2: SubParser < T > ,
2594
+ _ parser3: SubParser < T > ,
2595
+ buffer: inout ParseBuffer ,
2596
+ tracker: StackTracker , file: String = ( #file) , line: Int = #line) throws -> T
2597
2597
{
2598
2598
try ParserLibrary . oneOf3 ( parser1, parser2, parser3, buffer: & buffer, tracker: tracker)
2599
2599
}
0 commit comments