summary refs log tree commit diff stats
path: root/compiler/semdata.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-05-12 02:01:16 +0300
committerZahary Karadjov <zahary@gmail.com>2013-05-12 02:01:16 +0300
commitaf081f995e41f052c63ad5468fbf00bb860de474 (patch)
treedb1d53911c01f494fcc4af5e51ce95091d800e96 /compiler/semdata.nim
parent7a2b1a7520bb80cbef88ad9c3dc843cbe512a588 (diff)
downloadNim-af081f995e41f052c63ad5468fbf00bb860de474.tar.gz
get rid of TOverloadIter.stackPtr
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r--compiler/semdata.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim
index 390e3825d..41979fd1c 100644
--- a/compiler/semdata.nim
+++ b/compiler/semdata.nim
@@ -46,6 +46,7 @@ type
   TExprFlags* = set[TExprFlag]
     
   TScope* = object
+    depthLevel*: int
     symbols*: TStrTable
     parent*: PScope
 
@@ -57,6 +58,7 @@ type
     currentScope*: PScope      # current scope
     importTable*: PScope       # scope for all imported symbols
     topLevelScope*: PScope     # scope for all top-level symbols
+    scopeDepth*: int           # number of open scopes
     p*: PProcCon               # procedure context
     friendModule*: PSym        # current friend module; may access private data;
                                # this is used so that generic instantiations