perf: inline ParserState.hasError
This commit is contained in:
parent
241430aa03
commit
aab0e382c8
1 changed files with 1 additions and 0 deletions
|
|
@ -201,6 +201,7 @@ structure ParserState where
|
|||
|
||||
namespace ParserState
|
||||
|
||||
@[inline]
|
||||
def hasError (s : ParserState) : Bool :=
|
||||
s.errorMsg != none
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue