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 {
3232 }
3333}
3434
35- enum StringLiteralKind : Equatable {
35+ @_spi ( Compiler)
36+ public enum StringLiteralKind : Equatable {
3637 /// A normal single-line string literal started by `"`.
3738 case singleLine
3839 /// A multi-line string literal started by `"""`.
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ extension StringLiteralExprSyntax {
4545 return result
4646 }
4747
48- fileprivate var stringLiteralKind : StringLiteralKind ? {
48+ @_spi ( Compiler)
49+ public var stringLiteralKind : StringLiteralKind ? {
4950 switch openingQuote. tokenKind {
5051 case . stringQuote:
5152 return . singleLine
@@ -58,13 +59,15 @@ extension StringLiteralExprSyntax {
5859 }
5960 }
6061
61- fileprivate var delimiterLength : Int {
62+ @_spi ( Compiler)
63+ public var delimiterLength : Int {
6264 openingPounds? . text. count ?? 0
6365 }
6466}
6567
6668extension StringSegmentSyntax {
67- fileprivate func appendUnescapedLiteralValue(
69+ @_spi ( Compiler)
70+ public func appendUnescapedLiteralValue(
6871 stringLiteralKind: StringLiteralKind ,
6972 delimiterLength: Int ,
7073 to output: inout String
You can’t perform that action at this time.
0 commit comments