Skip to content

Commit 79d0407

Browse files
authored
Merge pull request #799 from rintaro/stringinterpolation-public
Make SyntaxExpressibleByStringInterpolation public
2 parents 23930c8 + 6b54862 commit 79d0407

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/SwiftParser/Syntax+StringInterpolation.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extension SyntaxStringInterpolation: StringInterpolationProtocol {
5858

5959
/// Syntax nodes that can be formed by a string interpolation involve source
6060
/// code and interpolated syntax nodes.
61-
protocol SyntaxExpressibleByStringInterpolation:
61+
public protocol SyntaxExpressibleByStringInterpolation:
6262
ExpressibleByStringInterpolation, SyntaxProtocol
6363
where Self.StringInterpolation == SyntaxStringInterpolation {
6464
/// Create an instance of this syntax node by parsing it from the given
@@ -87,31 +87,31 @@ extension SyntaxExpressibleByStringInterpolation {
8787

8888
// Parsing support for the main kinds of syntax nodes.
8989
extension DeclSyntaxProtocol {
90-
static func parse(from parser: inout Parser) -> Self {
90+
public static func parse(from parser: inout Parser) -> Self {
9191
return Syntax(raw: parser.parseDeclaration().raw).as(Self.self)!
9292
}
9393
}
9494

9595
extension ExprSyntaxProtocol {
96-
static func parse(from parser: inout Parser) -> Self {
96+
public static func parse(from parser: inout Parser) -> Self {
9797
return Syntax(raw: parser.parseExpression().raw).as(Self.self)!
9898
}
9999
}
100100

101101
extension StmtSyntaxProtocol {
102-
static func parse(from parser: inout Parser) -> Self {
102+
public static func parse(from parser: inout Parser) -> Self {
103103
return Syntax(raw: parser.parseStatement().raw).as(Self.self)!
104104
}
105105
}
106106

107107
extension TypeSyntaxProtocol {
108-
static func parse(from parser: inout Parser) -> Self {
108+
public static func parse(from parser: inout Parser) -> Self {
109109
return Syntax(raw: parser.parseType().raw).as(Self.self)!
110110
}
111111
}
112112

113113
extension PatternSyntaxProtocol {
114-
static func parse(from parser: inout Parser) -> Self {
114+
public static func parse(from parser: inout Parser) -> Self {
115115
return Syntax(raw: parser.parsePattern().raw).as(Self.self)!
116116
}
117117
}

0 commit comments

Comments
 (0)