From 669a5644926290e19a3fc32fd319c056183ff2d9 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 27 May 2018 11:10:56 +0200 Subject: remove more global variables in the Nim compiler --- compiler/semgnrc.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/semgnrc.nim') diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim index 8f06e748e..d3b1695ae 100644 --- a/compiler/semgnrc.nim +++ b/compiler/semgnrc.nim @@ -55,7 +55,7 @@ template macroToExpandSym(s): untyped = proc semGenericStmtSymbol(c: PContext, n: PNode, s: PSym, ctx: var GenericCtx; fromDotExpr=false): PNode = - semIdeForTemplateOrGenericCheck(n, ctx.cursorInBody) + semIdeForTemplateOrGenericCheck(c.config, n, ctx.cursorInBody) incl(s.flags, sfUsed) case s.kind of skUnknown: @@ -129,7 +129,7 @@ proc newDot(n, b: PNode): PNode = proc fuzzyLookup(c: PContext, n: PNode, flags: TSemGenericFlags, ctx: var GenericCtx; isMacro: var bool): PNode = assert n.kind == nkDotExpr - semIdeForTemplateOrGenericCheck(n, ctx.cursorInBody) + semIdeForTemplateOrGenericCheck(c.config, n, ctx.cursorInBody) let luf = if withinMixin notin flags: {checkUndeclared, checkModule} else: {checkModule} @@ -170,7 +170,7 @@ proc semGenericStmt(c: PContext, n: PNode, if withinTypeDesc in flags: inc c.inTypeContext #if conf.cmd == cmdIdeTools: suggestStmt(c, n) - semIdeForTemplateOrGenericCheck(n, ctx.cursorInBody) + semIdeForTemplateOrGenericCheck(c.config, n, ctx.cursorInBody) case n.kind of nkIdent, nkAccQuoted: -- cgit 1.4.1-2-gfad0 d?h=v1.9.0b2&id=278f5d9068ffdafb14b77d8aac672c54f822fbb6'>diff stats
path: root/doc/ranger.pod
blob: 336a886c8cbd1f283cc745b604697bf50d3bbfec (plain) (tree)
1
2
3
4
5
6
7
8
9