From 265509f5ea49401598b9741b442f9c82d6240c5b Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Mon, 22 Dec 2025 11:38:53 -0800 Subject: [PATCH] [LexicalLookup] Make `GenericParameterScopeSyntax` public Using a method in a extension of non-public protocol to witness a public protocol requirement is not allowed in future version of Swift and is diagnosed as a warning in the current main. Make `GenericParameterScopeSyntax` a `@_spi(Experimetnal public)` the same accessibility as the concrete type. --- .../SwiftLexicalLookup/Scopes/GenericParameterScopeSyntax.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftLexicalLookup/Scopes/GenericParameterScopeSyntax.swift b/Sources/SwiftLexicalLookup/Scopes/GenericParameterScopeSyntax.swift index dd6e3036129..20a989908a9 100644 --- a/Sources/SwiftLexicalLookup/Scopes/GenericParameterScopeSyntax.swift +++ b/Sources/SwiftLexicalLookup/Scopes/GenericParameterScopeSyntax.swift @@ -16,7 +16,7 @@ import SwiftSyntax /// futher lookup to its `WithGenericParametersScopeSyntax` /// parent scope's parent scope (i.e. on return, bypasses names /// introduced by its parent). -protocol GenericParameterScopeSyntax: ScopeSyntax {} +@_spi(Experimental) public protocol GenericParameterScopeSyntax: ScopeSyntax {} @_spi(Experimental) extension GenericParameterScopeSyntax { /// Returns names matching lookup and bypasses