@@ -58,7 +58,7 @@ extension SyntaxStringInterpolation: StringInterpolationProtocol {
58
58
59
59
/// Syntax nodes that can be formed by a string interpolation involve source
60
60
/// code and interpolated syntax nodes.
61
- protocol SyntaxExpressibleByStringInterpolation :
61
+ public protocol SyntaxExpressibleByStringInterpolation :
62
62
ExpressibleByStringInterpolation , SyntaxProtocol
63
63
where Self. StringInterpolation == SyntaxStringInterpolation {
64
64
/// Create an instance of this syntax node by parsing it from the given
@@ -87,31 +87,31 @@ extension SyntaxExpressibleByStringInterpolation {
87
87
88
88
// Parsing support for the main kinds of syntax nodes.
89
89
extension DeclSyntaxProtocol {
90
- static func parse( from parser: inout Parser ) -> Self {
90
+ public static func parse( from parser: inout Parser ) -> Self {
91
91
return Syntax ( raw: parser. parseDeclaration ( ) . raw) . as ( Self . self) !
92
92
}
93
93
}
94
94
95
95
extension ExprSyntaxProtocol {
96
- static func parse( from parser: inout Parser ) -> Self {
96
+ public static func parse( from parser: inout Parser ) -> Self {
97
97
return Syntax ( raw: parser. parseExpression ( ) . raw) . as ( Self . self) !
98
98
}
99
99
}
100
100
101
101
extension StmtSyntaxProtocol {
102
- static func parse( from parser: inout Parser ) -> Self {
102
+ public static func parse( from parser: inout Parser ) -> Self {
103
103
return Syntax ( raw: parser. parseStatement ( ) . raw) . as ( Self . self) !
104
104
}
105
105
}
106
106
107
107
extension TypeSyntaxProtocol {
108
- static func parse( from parser: inout Parser ) -> Self {
108
+ public static func parse( from parser: inout Parser ) -> Self {
109
109
return Syntax ( raw: parser. parseType ( ) . raw) . as ( Self . self) !
110
110
}
111
111
}
112
112
113
113
extension PatternSyntaxProtocol {
114
- static func parse( from parser: inout Parser ) -> Self {
114
+ public static func parse( from parser: inout Parser ) -> Self {
115
115
return Syntax ( raw: parser. parsePattern ( ) . raw) . as ( Self . self) !
116
116
}
117
117
}
0 commit comments