Warn when shell functions blatantly recurse (fixes #1994)

This commit is contained in:
Vidar Holen 2020-07-27 21:28:48 -07:00
parent cc81bdee31
commit 1ac2c31728
3 changed files with 40 additions and 0 deletions

View file

@ -163,6 +163,8 @@ err id code str = addComment $ makeComment ErrorC id code str
info id code str = addComment $ makeComment InfoC id code str
style id code str = addComment $ makeComment StyleC id code str
errWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()
errWithFix = addCommentWithFix ErrorC
warnWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()
warnWithFix = addCommentWithFix WarningC
styleWithFix :: MonadWriter [TokenComment] m => Id -> Code -> String -> Fix -> m ()