File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff 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(
Original file line number Diff line number Diff line change @@ -163,13 +163,13 @@ extension Parser.Lookahead {
163163// MARK: Skipping a sequence of tokens
164164
165165extension 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
You can’t perform that action at this time.
0 commit comments