parser: skip parser notes when -n is used

This commit is contained in:
Delyan Angelov 2024-05-21 10:41:56 +03:00
parent 84fbe2728d
commit c664a46a86
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -2105,6 +2105,9 @@ fn (mut p Parser) note_with_pos(s string, pos token.Pos) {
if p.pref.skip_warnings {
return
}
if p.pref.skip_notes {
return
}
if p.is_generated {
return
}