Skip to content

Commit 159d886

Browse files
committed
Whitespace
1 parent e513ec5 commit 159d886

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Sources/SwiftParser/Declarations.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,25 +1665,25 @@ extension Parser {
16651665
}
16661666

16671667
mutating func parseAccessorModifierList(count: Int) -> RawDeclModifierListSyntax? {
1668-
if count == 0 { return nil }
1668+
if count == 0 { return nil }
16691669

1670-
var elements = [RawDeclModifierSyntax]()
1670+
var elements = [RawDeclModifierSyntax]()
16711671

1672-
for _ in 0..<count {
1673-
let (unexpectedBeforeName, name) = self.expect(anyIn: AccessorModifier.self, default: .mutating)
1674-
let modifier = RawDeclModifierSyntax(
1675-
unexpectedBeforeName,
1676-
name: name,
1677-
detail: nil,
1678-
arena: self.arena
1679-
)
1680-
elements.append(modifier)
1681-
}
1682-
1683-
return RawDeclModifierListSyntax(
1684-
elements: elements,
1672+
for _ in 0..<count {
1673+
let (unexpectedBeforeName, name) = self.expect(anyIn: AccessorModifier.self, default: .mutating)
1674+
let modifier = RawDeclModifierSyntax(
1675+
unexpectedBeforeName,
1676+
name: name,
1677+
detail: nil,
16851678
arena: self.arena
16861679
)
1680+
elements.append(modifier)
1681+
}
1682+
1683+
return RawDeclModifierListSyntax(
1684+
elements: elements,
1685+
arena: self.arena
1686+
)
16871687
}
16881688

16891689
mutating func parseAccessorIntroducer(

Sources/SwiftParser/Lookahead.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ extension Parser.Lookahead {
163163
// MARK: Skipping a sequence of tokens
164164

165165
extension Parser.Lookahead {
166-
mutating func consume<SpecSet: TokenSpecSet>(anySequence: SpecSet.Type) -> Int {
167-
var count = 0
168-
while consume(ifAnyIn: SpecSet.self) != nil {
169-
count += 1
170-
}
171-
return count
166+
mutating func consume<SpecSet: TokenSpecSet>(anySequence: SpecSet.Type) -> Int {
167+
var count = 0
168+
while consume(ifAnyIn: SpecSet.self) != nil {
169+
count += 1
172170
}
171+
return count
172+
}
173173
}
174174

175175
// MARK: Skipping Tokens

0 commit comments

Comments
 (0)