@@ -15,7 +15,7 @@ import SwiftSyntax
1515/// Scope that, in addition to names introduced by itself,
1616/// also handles names introduced by
1717/// `IntroducingToSequentialParentScopeSyntax` children scopes.
18- @ _spi ( Experimental ) public protocol SequentialScopeSyntax : ScopeSyntax {
18+ protocol SequentialScopeSyntax : ScopeSyntax {
1919 /// Returns names introduced by `codeBlockItems`
2020 /// and included `IntroducingToSequentialParentScopeSyntax` children
2121 /// scopes that match the lookup.
@@ -29,8 +29,8 @@ import SwiftSyntax
2929 ) -> [ LookupResult ]
3030}
3131
32- @ _spi ( Experimental ) extension SequentialScopeSyntax {
33- @ _spi ( Experimental ) public func sequentialLookup(
32+ extension SequentialScopeSyntax {
33+ func sequentialLookup(
3434 in codeBlockItems: any Collection < CodeBlockItemSyntax > ,
3535 for name: String ? ,
3636 at syntax: SyntaxProtocol ,
@@ -47,7 +47,8 @@ import SwiftSyntax
4747 {
4848 // Check if the enocountered scope should be ignored.
4949 if let scopeToSkip = state. skipSequentialIntroductionFrom,
50- scopeToSkip. id == introducingToParentScope. id {
50+ scopeToSkip. id == introducingToParentScope. id
51+ {
5152 continue
5253 }
5354
@@ -59,7 +60,12 @@ import SwiftSyntax
5960
6061 // Add names introduced by the encountered scope.
6162 result. append (
62- contentsOf: introducingToParentScope. introducesToSequentialParent ( for: name, at: syntax, with: config, state: state)
63+ contentsOf: introducingToParentScope. introducesToSequentialParent (
64+ for: name,
65+ at: syntax,
66+ with: config,
67+ state: state
68+ )
6369 )
6470 } else {
6571 // Extract new names from encountered node.
0 commit comments