summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-09-09 21:31:34 +0200
committerAraq <rumpf_a@web.de>2014-09-09 21:31:34 +0200
commit490371977e8ff61ccebe505b33edada0d674ac25 (patch)
tree0ed60989917f6c53f859a80214910dba2031c35a /compiler/semexprs.nim
parent12796b6c86444e253c5ba8ae9ec05e26bc0b4285 (diff)
downloadNim-490371977e8ff61ccebe505b33edada0d674ac25.tar.gz
some improvements for nimfix
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim6
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: