diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-08-23 16:15:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 16:15:02 +0200 |
commit | b07694cd90ab7c6eb4660971ddb818b461d4eed8 (patch) | |
tree | a158993297748d4c55b6e069a6636eefcacd9865 /compiler/suggest.nim | |
parent | f28a47ea7b9c579b172653c15dc2cc054adf599a (diff) | |
download | Nim-b07694cd90ab7c6eb4660971ddb818b461d4eed8.tar.gz |
new gensym handling (#11985)
* new .gensym implementation * make astspec test green again * introduce a --useVersion switch to group compatibility switches * fixes #10180 * fixes #11494 * fixes #11483 * object constructor fields and named parameters are also not gensym'ed * disabled broken package
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r-- | compiler/suggest.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index dc01916d1..9680bc846 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -261,15 +261,15 @@ proc getQuality(s: PSym): range[0..100] = if exp.kind in {tyUntyped, tyTyped, tyGenericParam, tyAnything}: return 50 return 100 -template wholeSymTab(cond, section: untyped) = +template wholeSymTab(cond, section: untyped) {.dirty.} = var isLocal = true var scopeN = 0 for scope in walkScopes(c.currentScope): if scope == c.topLevelScope: isLocal = false dec scopeN for item in scope.symbols: - let it {.inject.} = item - var pm {.inject.}: PrefixMatch + let it = item + var pm: PrefixMatch if cond: outputs.add(symToSuggest(c.config, it, isLocal = isLocal, section, info, getQuality(it), pm, c.inTypeContext > 0, scopeN)) |