File tree 1 file changed +3
-3
lines changed
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 {
310
310
// Inline always so the optimizer can optimize this to a member access on `syntax` without having to go through
311
311
// generics.
312
312
@inline ( __always)
313
- public init ( _ syntax: some SyntaxProtocol ) {
313
+ public init ( _ syntax: __shared some SyntaxProtocol ) {
314
314
self = syntax. _syntaxNode
315
315
}
316
316
317
317
/// 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) {
319
319
self = syntax. _syntaxNode
320
320
}
321
321
322
322
/// Same as ``init(fromProtocol:)`` but returns `nil` if `syntax` is `nil`.
323
- public init ? ( fromProtocol syntax: SyntaxProtocol ? ) {
323
+ public init ? ( fromProtocol syntax: __shared SyntaxProtocol? ) {
324
324
guard let syntax = syntax else { return nil }
325
325
self = syntax. _syntaxNode
326
326
}
You can’t perform that action at this time.
0 commit comments