File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -895,7 +895,7 @@ extension Parser {
895
895
let decl : RawDeclSyntax
896
896
if self . at ( . poundIf) {
897
897
// '#if' is not accepted in '@abi' attribute, but for recovery, parse it
898
- // parse it and wrap the first decl init with unexpected nodes.
898
+ // and wrap the first decl in it with unexpected nodes.
899
899
let ifConfig = self . parsePoundIfDirective ( { parser in
900
900
let decl = parser. parseDeclaration ( in: . argumentList)
901
901
let member = RawMemberBlockItemSyntax ( decl: decl, semicolon: nil , arena: parser. arena)
Original file line number Diff line number Diff line change @@ -137,12 +137,6 @@ extension Parser {
137
137
///
138
138
/// Returns `nil` if the parser did not consume any tokens while trying to
139
139
/// parse the code block item.
140
- ///
141
- /// `isAtTopLevel` determines whether this is trying to parse an item that's at
142
- /// the top level of the source file. If this is the case, we allow skipping
143
- /// closing braces while trying to recover to the next item.
144
- /// If we are not at the top level, such a closing brace should close the
145
- /// wrapping declaration instead of being consumed by lookahead.
146
140
mutating func parseCodeBlockItem(
147
141
allowInitDecl: Bool ,
148
142
until stopCondition: ( inout Parser ) -> Bool
You can’t perform that action at this time.
0 commit comments