Show that a variable is cursor in --expandArc (#15002)

This commit is contained in:
Clyybber 2020-07-17 10:56:17 +02:00 • committed by GitHub
commit 1355b461aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 23 deletions

View file

@ -865,6 +865,8 @@ proc gident(g: var TSrcGen, n: PNode) =
if localId != 0 and n.sym.magic == mNone:
s.add '_'
s.addInt localId
if sfCursor in n.sym.flags:
s.add "_cursor"
elif n.kind == nkSym and (renderIds in g.flags or sfGenSym in n.sym.flags or n.sym.kind == skTemp):
s.add '_'
s.addInt n.sym.id