compiler/semcall: return the correct lineinfo for nkCallStrLit (#12484)
This commit is contained in:
parent
801a794039
commit
f827d75804
2 changed files with 13 additions and 1 deletions
|
|
@ -474,7 +474,8 @@ proc updateDefaultParams(call: PNode) =
|
|||
|
||||
proc getCallLineInfo(n: PNode): TLineInfo =
|
||||
case n.kind
|
||||
of nkAccQuoted, nkBracketExpr, nkCall, nkCommand: getCallLineInfo(n.sons[0])
|
||||
of nkAccQuoted, nkBracketExpr, nkCall, nkCallStrLit, nkCommand:
|
||||
getCallLineInfo(n.sons[0])
|
||||
of nkDotExpr: getCallLineInfo(n.sons[1])
|
||||
else: n.info
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue