From b09a14147d397904722ee7c25e4defc56135b96f Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 9 May 2022 00:01:02 +0200 Subject: Extract source walk part of scanner --- pkg/lang/scanner/errors.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'pkg/lang/scanner/errors.go') diff --git a/pkg/lang/scanner/errors.go b/pkg/lang/scanner/errors.go index dd9aae3..6a6f9d9 100644 --- a/pkg/lang/scanner/errors.go +++ b/pkg/lang/scanner/errors.go @@ -7,15 +7,6 @@ var ( ErrUnclosedString = errors.New("unclosed string") ) -type ErrUnexpectedChar struct { - Expected rune - Actual rune -} - -func (e ErrUnexpectedChar) Error() string { - return "unexpected character: expected " + string(e.Expected) + ", actual " + string(e.Actual) -} - type ErrUnknownChar struct { Char rune } -- cgit 1.4.1