perf: remove unnecessary, cache-defeating withPosition in doReassignArrow

This commit is contained in:
Sebastian Ullrich 2022-11-14 13:34:24 +01:00 committed by Leonardo de Moura
parent 9dbd9ec554
commit 07953062ed

View file

@ -70,7 +70,7 @@ def letIdDeclNoBinders := node ``letIdDecl <|
@[builtin_doElem_parser] def doReassign := leading_parser
notFollowedByRedefinedTermToken >> (letIdDeclNoBinders <|> letPatDecl)
@[builtin_doElem_parser] def doReassignArrow := leading_parser
notFollowedByRedefinedTermToken >> withPosition (doIdDecl <|> doPatDecl)
notFollowedByRedefinedTermToken >> (doIdDecl <|> doPatDecl)
@[builtin_doElem_parser] def doHave := leading_parser
"have " >> Term.haveDecl
/-