File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Sources/MarkdownPluginSwift/Signatures Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,13 @@ extension Signature.Abridged
21
21
}
22
22
23
23
@usableFromInline
24
- init ( utf8: consuming [ UInt8 ] )
24
+ init ( utf8: __owned [ UInt8 ] )
25
25
{
26
- // There seems to be a bug in SwiftSyntax that causes misalignment of source ranges
27
- // when trimming leading trivia from syntax nodes. As a temporary workaround, we
28
- // replace all newline characters with space characters before parsing the source.
26
+ /// https://github.com/swiftlang/swift/issues/75312
27
+ var utf8 : [ UInt8 ] = consume utf8
28
+
29
+ // TODO: we should replace this workaround with the pattern suggested in
30
+ // https://github.com/swiftlang/swift-syntax/issues/2687
29
31
for i : Int in utf8. indices
30
32
{
31
33
switch utf8 [ i]
You can’t perform that action at this time.
0 commit comments