Remove gotestyourself.

This commit is contained in:
Alec Thomas
2018-05-18 14:41:10 +10:00
parent c6776fe4b8
commit a41bb0e4da
2 changed files with 14 additions and 12 deletions
+2
View File
@@ -91,6 +91,8 @@ func (s *Scanner) Pop() Token {
}
// PopValue token, or panic with Error.
//
// "context" is used to assist the user if the value can not be popped, eg. "expected <context> value but got <type>"
func (s *Scanner) PopValue(context string) string {
t := s.Pop()
if !t.IsValue() {