1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

SyntaxConvertible extension methods are public.

This commit is contained in:
Rob Rix 2015-10-09 18:07:31 -04:00
parent 3cf5ce3b43
commit 67d861839f

View File

@ -113,15 +113,15 @@ public protocol SyntaxConvertible {
}
extension SyntaxConvertible {
static func Leaf(value: LeafType) -> Self {
public static func Leaf(value: LeafType) -> Self {
return Self(syntax: .Leaf(value))
}
static func Indexed(children: [RecurType]) -> Self {
public static func Indexed(children: [RecurType]) -> Self {
return Self(syntax: .Indexed(children))
}
static func Keyed(children: [String:RecurType]) -> Self {
public static func Keyed(children: [String:RecurType]) -> Self {
return Self(syntax: .Keyed(children))
}
}