semcall: correct lineinfo for accquoted symbols (#10461)

This commit is contained in:
alaviss 2019-01-27 20:58:10 +07:00 • committed by Andreas Rumpf
commit 0b02241fc5
2 changed files with 3 additions and 1 deletions

View file

@ -464,7 +464,7 @@ proc updateDefaultParams(call: PNode) =
proc getCallLineInfo(n: PNode): TLineInfo =
case n.kind
of nkBracketExpr, nkCall, nkCommand: getCallLineInfo(n.sons[0])
of nkAccQuoted, nkBracketExpr, nkCall, nkCommand: getCallLineInfo(n.sons[0])
of nkDotExpr: getCallLineInfo(n.sons[1])
else: n.info