diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-01-22 16:07:17 +0100 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-01-23 10:42:36 +0000 |
| commit | 7b4377ad9d8a7205416df8d6217ef2b010f89481 (patch) | |
| tree | e6fec4fd12ff807a16d847923f501075bf71d16c /vendor/github.com/quasilyte/regex/syntax/errors.go | |
| parent | 475a4c203afb8b7d3af51c4fd32bb170ff32a45e (diff) | |
vendor: delete
Diffstat (limited to 'vendor/github.com/quasilyte/regex/syntax/errors.go')
| -rw-r--r-- | vendor/github.com/quasilyte/regex/syntax/errors.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/github.com/quasilyte/regex/syntax/errors.go b/vendor/github.com/quasilyte/regex/syntax/errors.go deleted file mode 100644 index beefba5f9..000000000 --- a/vendor/github.com/quasilyte/regex/syntax/errors.go +++ /dev/null @@ -1,27 +0,0 @@ -package syntax - -type ParseError struct { - Pos Position - Message string -} - -func (e ParseError) Error() string { return e.Message } - -func throw(pos Position, message string) { - panic(ParseError{Pos: pos, Message: message}) -} - -func throwExpectedFound(pos Position, expected, found string) { - throw(pos, "expected '"+expected+"', found '"+found+"'") -} - -func throwUnexpectedToken(pos Position, token string) { - throw(pos, "unexpected token: "+token) -} - -func newPos(begin, end int) Position { - return Position{ - Begin: uint16(begin), - End: uint16(end), - } -} |
