refactor(filter): Filters should be private, we only expose resolvable
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
public protocol FilterType {
|
protocol FilterType {
|
||||||
func invoke(value: Any?, arguments: [Any?]) throws -> Any?
|
func invoke(value: Any?, arguments: [Any?]) throws -> Any?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class TokenParser {
|
|||||||
tokens.insert(token, at: 0)
|
tokens.insert(token, at: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
public func findFilter(_ name: String) throws -> FilterType {
|
func findFilter(_ name: String) throws -> FilterType {
|
||||||
if let filter = namespace.filters[name] {
|
if let filter = namespace.filters[name] {
|
||||||
return filter
|
return filter
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user