mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Revert "Close over the correct source."
This reverts commit 6770d9970d9e4aee6029e9b739583c1dc8cfc372.
This commit is contained in:
parent
46aa3b8fc0
commit
f3bad55fee
@ -62,7 +62,7 @@ documentToTerm language document SourceBlob{..} = alloca $ \ root -> do
|
|||||||
-- the scope that `node` was allocated within, meaning `alloca` will
|
-- the scope that `node` was allocated within, meaning `alloca` will
|
||||||
-- free it & other stack data may overwrite it.
|
-- free it & other stack data may overwrite it.
|
||||||
range `seq` sourceSpan `seq` assignTerm language source (range :. categoryForLanguageProductionName language (toS name) :. sourceSpan :. Nil) children allChildren
|
range `seq` sourceSpan `seq` assignTerm language source (range :. categoryForLanguageProductionName language (toS name) :. sourceSpan :. Nil) children allChildren
|
||||||
where getChild getter node n out = do
|
getChild getter node n out = do
|
||||||
_ <- getter node n out
|
_ <- getter node n out
|
||||||
let childRange = nodeRange node
|
let childRange = nodeRange node
|
||||||
toTerm out childRange (slice childRange source)
|
toTerm out childRange (slice childRange source)
|
||||||
|
Loading…
Reference in New Issue
Block a user