(what, who rune, where int)
| 533 | } |
| 534 | |
| 535 | func (s *scanner) checkMatch(what, who rune, where int) { |
| 536 | if !s.testNext(what) { |
| 537 | if where == s.lineNumber { |
| 538 | s.errorExpected(what) |
| 539 | } else { |
| 540 | s.syntaxError(fmt.Sprintf("%s expected (to close %s at line %d)", s.tokenToString(what), s.tokenToString(who), where)) |
| 541 | } |
| 542 | } |
| 543 | } |
no test coverage detected