mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
it's spelt callsite
This commit is contained in:
@@ -271,7 +271,7 @@ type
|
||||
# language; for interfacing with Objective C
|
||||
sfDiscardable, # returned value may be discarded implicitly
|
||||
sfOverriden, # proc is overriden
|
||||
sfCallSideLineinfo# A flag for template symbols to tell the
|
||||
sfCallsite # A flag for template symbols to tell the
|
||||
# compiler it should use line information from
|
||||
# the calling side of the macro, not from the
|
||||
# implementation.
|
||||
|
||||
@@ -186,7 +186,7 @@ proc evalTemplate*(n: PNode, tmpl, genSymOwner: PSym;
|
||||
renderTree(result, {renderNoComments}))
|
||||
else:
|
||||
result = copyNode(body)
|
||||
ctx.instLines = sfCallSideLineinfo in tmpl.flags
|
||||
ctx.instLines = sfCallsite in tmpl.flags
|
||||
if ctx.instLines:
|
||||
result.info = n.info
|
||||
for i in countup(0, safeLen(body) - 1):
|
||||
|
||||
@@ -559,8 +559,9 @@ proc semTemplateDef(c: PContext, n: PNode): PNode =
|
||||
else:
|
||||
s = semIdentVis(c, skTemplate, n.sons[0], {})
|
||||
|
||||
if s.owner != nil and s.owner.name.s == "system" and s.name.s in ["!=", ">=", ">", "incl", "excl", "in", "notin", "isnot"]:
|
||||
incl(s.flags, sfCallSideLineinfo)
|
||||
if s.owner != nil and sfSystemModule in s.owner.flags and
|
||||
s.name.s in ["!=", ">=", ">", "incl", "excl", "in", "notin", "isnot"]:
|
||||
incl(s.flags, sfCallsite)
|
||||
|
||||
styleCheckDef(c.config, s)
|
||||
onDef(n[0].info, s)
|
||||
|
||||
Reference in New Issue
Block a user