Fixed source start position for foldr trees (e.g. IndexChain)
This commit is contained in:
parent
14f3ad993e
commit
6ffd38b511
@ -10,7 +10,7 @@ foldr = function(...)
|
||||
assert(inner.type)
|
||||
local outer = select(i, ...)
|
||||
table.insert(outer, 1, inner)
|
||||
inner.start = outer.start
|
||||
outer.source.start = inner.source.start
|
||||
inner = outer
|
||||
end
|
||||
assert(inner.type)
|
||||
|
@ -11,7 +11,7 @@ foldr = (...)->
|
||||
assert inner.type
|
||||
outer = select(i,...)
|
||||
table.insert(outer, 1, inner)
|
||||
inner.start = outer.start
|
||||
outer.source.start = inner.source.start
|
||||
inner = outer
|
||||
assert inner.type
|
||||
return inner
|
||||
|
Loading…
Reference in New Issue
Block a user