Basic method setup and calling

This commit is contained in:
Adam Fowler
2021-03-12 14:03:46 +00:00
parent 902c300969
commit c9e33153f3
6 changed files with 96 additions and 20 deletions

View File

@@ -77,8 +77,8 @@ extension HBMustacheTemplate.Token: Equatable {
switch (lhs, rhs) {
case (.text(let lhs), .text(let rhs)):
return lhs == rhs
case (.variable(let lhs), .variable(let rhs)):
return lhs == rhs
case (.variable(let lhs, let lhs2), .variable(let rhs, let rhs2)):
return lhs == rhs && lhs2 == rhs2
case (.section(let lhs1, let lhs2), .section(let rhs1, let rhs2)):
return lhs1 == rhs1 && lhs2 == rhs2
case (.invertedSection(let lhs1, let lhs2), .invertedSection(let rhs1, let rhs2)):