File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,17 +310,17 @@ public struct Syntax: SyntaxProtocol, SyntaxHashable {
310310 // Inline always so the optimizer can optimize this to a member access on `syntax` without having to go through
311311 // generics.
312312 @inline ( __always)
313- public init ( _ syntax: some SyntaxProtocol ) {
313+ public init ( _ syntax: __shared some SyntaxProtocol ) {
314314 self = syntax. _syntaxNode
315315 }
316316
317317 /// Creates a new ``Syntax`` node from any node that conforms to ``SyntaxProtocol``.
318- public init ( fromProtocol syntax: SyntaxProtocol ) {
318+ public init ( fromProtocol syntax: __shared SyntaxProtocol) {
319319 self = syntax. _syntaxNode
320320 }
321321
322322 /// Same as ``init(fromProtocol:)`` but returns `nil` if `syntax` is `nil`.
323- public init ? ( fromProtocol syntax: SyntaxProtocol ? ) {
323+ public init ? ( fromProtocol syntax: __shared SyntaxProtocol? ) {
324324 guard let syntax = syntax else { return nil }
325325 self = syntax. _syntaxNode
326326 }
You can’t perform that action at this time.
0 commit comments