init from( src: ABinaryInstruction ) do
_n_operand = src.n_operand
_n_id = src.n_id
- location = src.location
parent = src.parent
+
+ init(src.location)
end
end
init from( src: AUnaryInstruction ) do
_n_id = src.n_id
- _location = src.location
parent = src.parent
+
+ init(src.location)
end
end
end
# sort breakpoints in order
- starts = starts.uniq.sort_filter.to_a
- ends = ends.uniq.sort_filter.to_a
+ starts = starts.iterator.uniq.sort.to_a
+ ends = ends.iterator.uniq.sort.to_a
# create basic blocks
var current_block: nullable BasicBlock = null
private fun group(lines: Array[ALine], msg: String, error: Bool)
do
- lines = lines.sort_filter.to_a
+ lines = lines.iterator.sort.to_a
var len = lines.length
var first: nullable ALine = null
for i in [0..len[ do
var block_begin: nullable Int = null
var block_end = 0
var block_type = ' '
- for a in mem.keys.to_a.sort_filter do
+ for a in mem.keys.iterator.sort do
var t = mem[a]
if block_begin != null and (block_type != t or block_end != a-1) then
var lbl = label_at(block_begin)
lmid = ""
lend = ""
end
- var indent = new Buffer
+ var indent = new FlatBuffer
for j in [line_start..line_start+l.column_start-1[ do
if string[j] == '\t' then
indent.add '\t'