mirror of
https://github.com/github/semantic.git
synced 2024-11-25 21:43:07 +03:00
SyntaxConvertible extension methods are public.
This commit is contained in:
parent
3cf5ce3b43
commit
67d861839f
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user