summary refs log tree commit diff stats
path: root/compiler/lookups.nim
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-04-01 21:56:18 -0300
committerGitHub <noreply@github.com>2020-04-02 02:56:18 +0200
commitafd0afe0a3febc5ed2888dbca23e75c06741668e (patch)
tree008636a6bd5c1688ee34eb8346250aa39345efec /compiler/lookups.nim
parent9102ac8c7dda7abf6efee4cf0e104d415894e730 (diff)
downloadNim-afd0afe0a3febc5ed2888dbca23e75c06741668e.tar.gz
Deprecate when declared(echo):echo (#13840)
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r--compiler/lookups.nim19
1 files changed, 9 insertions, 10 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index 8c231212d..fe0e6fe7c 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -100,16 +100,15 @@ proc searchInScopes*(c: PContext, s: PIdent): PSym =
     if result != nil: return
   result = nil
 
-when declared(echo):
-  proc debugScopes*(c: PContext; limit=0) {.deprecated.} =
-    var i = 0
-    for scope in walkScopes(c.currentScope):
-      echo "scope ", i
-      for h in 0..high(scope.symbols.data):
-        if scope.symbols.data[h] != nil:
-          echo scope.symbols.data[h].name.s
-      if i == limit: break
-      inc i
+proc debugScopes*(c: PContext; limit=0) {.deprecated.} =
+  var i = 0
+  for scope in walkScopes(c.currentScope):
+    echo "scope ", i
+    for h in 0..high(scope.symbols.data):
+      if scope.symbols.data[h] != nil:
+        echo scope.symbols.data[h].name.s
+    if i == limit: break
+    inc i
 
 proc searchInScopes*(c: PContext, s: PIdent, filter: TSymKinds): PSym =
   for scope in walkScopes(c.currentScope):