minor refactorings for better destructors
This commit is contained in:
parent
4eaa2bf15d
commit
8780d25e03
7 changed files with 51 additions and 17 deletions
|
|
@ -245,10 +245,14 @@ proc encodeType(w: PRodWriter, t: PType, result: var string) =
|
|||
add(result, '\17')
|
||||
encodeVInt(t.assignment.id, result)
|
||||
pushSym(w, t.assignment)
|
||||
for i, s in items(t.methods):
|
||||
if t.sink != nil:
|
||||
add(result, '\18')
|
||||
encodeVInt(i, result)
|
||||
encodeVInt(t.sink.id, result)
|
||||
pushSym(w, t.sink)
|
||||
for i, s in items(t.methods):
|
||||
add(result, '\19')
|
||||
encodeVInt(i, result)
|
||||
add(result, '\20')
|
||||
encodeVInt(s.id, result)
|
||||
pushSym(w, s)
|
||||
encodeLoc(w, t.loc, result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue