diff options
author | Araq <rumpf_a@web.de> | 2014-09-09 21:31:34 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-09-09 21:31:34 +0200 |
commit | 490371977e8ff61ccebe505b33edada0d674ac25 (patch) | |
tree | 0ed60989917f6c53f859a80214910dba2031c35a /compiler/semexprs.nim | |
parent | 12796b6c86444e253c5ba8ae9ec05e26bc0b4285 (diff) | |
download | Nim-490371977e8ff61ccebe505b33edada0d674ac25.tar.gz |
some improvements for nimfix
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index a397993d8..9b850bd86 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -2014,9 +2014,9 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode = checkMinSonsLen(n, 1) let mode = if nfDotField in n.flags: {} else: {checkUndeclared} var s = qualifiedLookUp(c, n.sons[0], mode) - if s != nil: - if gCmd == cmdPretty and n.sons[0].kind == nkDotExpr: - pretty.checkUse(n.sons[0].sons[1].info, s) + if s != nil: + #if gCmd == cmdPretty and n.sons[0].kind == nkDotExpr: + # pretty.checkUse(n.sons[0].sons[1].info, s) case s.kind of skMacro: if sfImmediate notin s.flags: |