Renamed -d:nimCompilerStackraceHints to -d:nimCompilerStacktraceHints. (#18283)
This commit is contained in:
parent
99411674a6
commit
c83ac16671
4 changed files with 7 additions and 6 deletions
|
|
@ -88,6 +88,7 @@
|
||||||
The downside is that these defines now have custom logic that doesn't apply for
|
The downside is that these defines now have custom logic that doesn't apply for
|
||||||
other defines.
|
other defines.
|
||||||
|
|
||||||
|
- Renamed `-d:nimCompilerStackraceHints` to `-d:nimCompilerStacktraceHints`.
|
||||||
|
|
||||||
|
|
||||||
## Standard library additions and changes
|
## Standard library additions and changes
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
# included from cgen.nim
|
# included from cgen.nim
|
||||||
|
|
||||||
when defined(nimCompilerStackraceHints):
|
when defined(nimCompilerStacktraceHints):
|
||||||
import std/stackframes
|
import std/stackframes
|
||||||
|
|
||||||
proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode,
|
proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode,
|
||||||
|
|
@ -2694,7 +2694,7 @@ proc genConstStmt(p: BProc, n: PNode) =
|
||||||
genConstDefinition(m, p, sym)
|
genConstDefinition(m, p, sym)
|
||||||
|
|
||||||
proc expr(p: BProc, n: PNode, d: var TLoc) =
|
proc expr(p: BProc, n: PNode, d: var TLoc) =
|
||||||
when defined(nimCompilerStackraceHints):
|
when defined(nimCompilerStacktraceHints):
|
||||||
setFrameMsg p.config$n.info & " " & $n.kind
|
setFrameMsg p.config$n.info & " " & $n.kind
|
||||||
p.currLineInfo = n.info
|
p.currLineInfo = n.info
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
# this module does the semantic checking for expressions
|
# this module does the semantic checking for expressions
|
||||||
# included from sem.nim
|
# included from sem.nim
|
||||||
|
|
||||||
when defined(nimCompilerStackraceHints):
|
when defined(nimCompilerStacktraceHints):
|
||||||
import std/stackframes
|
import std/stackframes
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
@ -2714,7 +2714,7 @@ proc getNilType(c: PContext): PType =
|
||||||
c.nilTypeCache = result
|
c.nilTypeCache = result
|
||||||
|
|
||||||
proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
|
proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
|
||||||
when defined(nimCompilerStackraceHints):
|
when defined(nimCompilerStacktraceHints):
|
||||||
setFrameMsg c.config$n.info & " " & $n.kind
|
setFrameMsg c.config$n.info & " " & $n.kind
|
||||||
result = n
|
result = n
|
||||||
if c.config.cmd == cmdIdeTools: suggestExpr(c, n)
|
if c.config.cmd == cmdIdeTools: suggestExpr(c, n)
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import
|
||||||
|
|
||||||
from modulegraphs import getBody
|
from modulegraphs import getBody
|
||||||
|
|
||||||
when defined(nimCompilerStackraceHints):
|
when defined(nimCompilerStacktraceHints):
|
||||||
import std/stackframes
|
import std/stackframes
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
@ -2003,7 +2003,7 @@ proc procIsCallback(c: PCtx; s: PSym): bool =
|
||||||
dec i
|
dec i
|
||||||
|
|
||||||
proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
|
proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
|
||||||
when defined(nimCompilerStackraceHints):
|
when defined(nimCompilerStacktraceHints):
|
||||||
setFrameMsg c.config$n.info & " " & $n.kind & " " & $flags
|
setFrameMsg c.config$n.info & " " & $n.kind & " " & $flags
|
||||||
case n.kind
|
case n.kind
|
||||||
of nkSym:
|
of nkSym:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue