add more APIs to compiler/debugutils; re-export it (#18243)
This commit is contained in:
parent
a250481dcd
commit
87cd9b24a3
4 changed files with 85 additions and 0 deletions
|
|
@ -2716,6 +2716,13 @@ proc getNilType(c: PContext): PType =
|
|||
proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
|
||||
when defined(nimCompilerStacktraceHints):
|
||||
setFrameMsg c.config$n.info & " " & $n.kind
|
||||
when false: # see `tdebugutils`
|
||||
if isCompilerDebug():
|
||||
echo (">", c.config$n.info, n, flags, n.kind)
|
||||
defer:
|
||||
if isCompilerDebug():
|
||||
echo ("<", c.config$n.info, n, ?.result.typ)
|
||||
|
||||
result = n
|
||||
if c.config.cmd == cmdIdeTools: suggestExpr(c, n)
|
||||
if nfSem in n.flags: return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue