File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ extension SyntaxText {
32
32
}
33
33
}
34
34
35
- enum StringLiteralKind : Equatable {
35
+ @_spi ( Compiler)
36
+ public enum StringLiteralKind : Equatable {
36
37
/// A normal single-line string literal started by `"`.
37
38
case singleLine
38
39
/// A multi-line string literal started by `"""`.
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ extension StringLiteralExprSyntax {
45
45
return result
46
46
}
47
47
48
- fileprivate var stringLiteralKind : StringLiteralKind ? {
48
+ @_spi ( Compiler)
49
+ public var stringLiteralKind : StringLiteralKind ? {
49
50
switch openingQuote. tokenKind {
50
51
case . stringQuote:
51
52
return . singleLine
@@ -58,13 +59,15 @@ extension StringLiteralExprSyntax {
58
59
}
59
60
}
60
61
61
- fileprivate var delimiterLength : Int {
62
+ @_spi ( Compiler)
63
+ public var delimiterLength : Int {
62
64
openingPounds? . text. count ?? 0
63
65
}
64
66
}
65
67
66
68
extension StringSegmentSyntax {
67
- fileprivate func appendUnescapedLiteralValue(
69
+ @_spi ( Compiler)
70
+ public func appendUnescapedLiteralValue(
68
71
stringLiteralKind: StringLiteralKind ,
69
72
delimiterLength: Int ,
70
73
to output: inout String
You can’t perform that action at this time.
0 commit comments