summary refs log tree commit diff stats
path: root/compiler/rodwrite.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-03 00:55:44 +0200
committerAraq <rumpf_a@web.de>2012-09-03 00:55:44 +0200
commitaf7c92c0038763db2ba7d7049d7d18363b15089e (patch)
tree1849c68021e717adceab0533c5a66a6699b76b6c /compiler/rodwrite.nim
parentb56df72a325e4991128d808dc6c9edade3d0f293 (diff)
downloadNim-af7c92c0038763db2ba7d7049d7d18363b15089e.tar.gz
term rewriting macros fully implemented; still buggy
Diffstat (limited to 'compiler/rodwrite.nim')
-rwxr-xr-xcompiler/rodwrite.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rodwrite.nim b/compiler/rodwrite.nim
index 75e8a02a7..5be9a2439 100755
--- a/compiler/rodwrite.nim
+++ b/compiler/rodwrite.nim
@@ -233,6 +233,9 @@ proc encodeType(w: PRodWriter, t: PType, result: var string) =
   if t.containerID != 0: 
     add(result, '@')
     encodeVInt(t.containerID, result)
+  if t.constraint != nil:
+    add(result, '`')
+    encodeNode(w, UnknownLineInfo(), t.constraint, result)
   encodeLoc(w, t.loc, result)
   for i in countup(0, sonsLen(t) - 1): 
     if t.sons[i] == nil: 
e05943'>^
2fa35126b ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36