summary refs log tree commit diff stats
path: root/compiler/parser.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-21 08:13:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-21 08:13:37 +0200
commit33b69f0ed0272a4792322d9a0fbaffd5bef2f6e9 (patch)
treef7d38c41d242024ea644cd855fa9b71eee7e8bd2 /compiler/parser.nim
parent6667362c2f1cd0fc1fdb1dacb486528b928470d5 (diff)
downloadNim-33b69f0ed0272a4792322d9a0fbaffd5bef2f6e9.tar.gz
refactoring: make FileIndex a distinct type; make line information an uint16; fixes #7654
Diffstat (limited to 'compiler/parser.nim')
-rw-r--r--compiler/parser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index 3bf75c6f7..ac0a57770 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -83,7 +83,7 @@ proc getTok(p: var TParser) =
   rawGetTok(p.lex, p.tok)
   p.hasProgress = true
 
-proc openParser*(p: var TParser, fileIdx: int32, inputStream: PLLStream,
+proc openParser*(p: var TParser, fileIdx: FileIndex, inputStream: PLLStream,
                  cache: IdentCache;
                  strongSpaces=false) =
   ## Open a parser, using the given arguments to set up its internal state.