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)
|
assert(inner.type)
|
||||||
local outer = select(i, ...)
|
local outer = select(i, ...)
|
||||||
table.insert(outer, 1, inner)
|
table.insert(outer, 1, inner)
|
||||||
inner.start = outer.start
|
outer.source.start = inner.source.start
|
||||||
inner = outer
|
inner = outer
|
||||||
end
|
end
|
||||||
assert(inner.type)
|
assert(inner.type)
|
||||||
|
@ -11,7 +11,7 @@ foldr = (...)->
|
|||||||
assert inner.type
|
assert inner.type
|
||||||
outer = select(i,...)
|
outer = select(i,...)
|
||||||
table.insert(outer, 1, inner)
|
table.insert(outer, 1, inner)
|
||||||
inner.start = outer.start
|
outer.source.start = inner.source.start
|
||||||
inner = outer
|
inner = outer
|
||||||
assert inner.type
|
assert inner.type
|
||||||
return inner
|
return inner
|
||||||
|
Loading…
Reference in New Issue
Block a user