Feat: Add support for Swift 4.0
This commit is contained in:
@@ -37,6 +37,15 @@ public struct TemplateSyntaxError : Error, Equatable, CustomStringConvertible {
|
||||
public init(_ description: String) {
|
||||
self.init(reason: description)
|
||||
}
|
||||
|
||||
public static func ==(lhs: TemplateSyntaxError, rhs: TemplateSyntaxError) -> Bool {
|
||||
return lhs.reason == rhs.reason &&
|
||||
lhs.description == rhs.description &&
|
||||
lhs.token == rhs.token &&
|
||||
lhs.stackTrace == rhs.stackTrace &&
|
||||
lhs.templateName == rhs.templateName &&
|
||||
lhs.allTokens == rhs.allTokens
|
||||
}
|
||||
}
|
||||
|
||||
extension Error {
|
||||
|
||||
Reference in New Issue
Block a user