no more code duplication bw liMessage and rawMessage + several bug fixes (#14415)
* no more code duplication bw rawMessage and liMessage; fixes some bugs in rawMessage * all compiler messages work with hint:msgorigin
This commit is contained in:
parent
f7b73e6bfd
commit
0d0ea3a11e
6 changed files with 91 additions and 152 deletions
|
|
@ -121,9 +121,9 @@ proc applyFilter(p: var TParsers, n: PNode, filename: AbsoluteFile,
|
|||
if f != filtNone:
|
||||
assert p.config != nil
|
||||
if p.config.hasHint(hintCodeBegin):
|
||||
rawMessage(p.config, hintCodeBegin, [])
|
||||
rawMessage(p.config, hintCodeBegin, "")
|
||||
msgWriteln(p.config, result.s)
|
||||
rawMessage(p.config, hintCodeEnd, [])
|
||||
rawMessage(p.config, hintCodeEnd, "")
|
||||
|
||||
proc evalPipe(p: var TParsers, n: PNode, filename: AbsoluteFile,
|
||||
start: PLLStream): PLLStream =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue