Feat: Add support for Swift 4.0

This commit is contained in:
andy
2018-10-01 11:58:20 +01:00
parent 01afae9b79
commit 66a9bc563a
7 changed files with 61 additions and 10 deletions

View File

@@ -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 {