[FIR, LT] Report syntax error by traversing LT after parsing
#KT-57756 Fixed
This commit is contained in:
committed by
Space Team
parent
b07e4f26ef
commit
3c66ae0f8b
@@ -33,7 +33,7 @@ class LightTreeParsingTest {
|
||||
val (code, mapping) = ByteArrayInputStream(toByteArray()).reader().readSourceFileWithMapping()
|
||||
val positionFinder = SequentialPositionFinder(ByteArrayInputStream(toByteArray()).reader())
|
||||
val linePositions =
|
||||
LightTree2Fir.buildLightTree(code).getChildrenAsArray()
|
||||
LightTree2Fir.buildLightTree(code, null).getChildrenAsArray()
|
||||
.mapNotNull { it?.startOffset }
|
||||
.map {
|
||||
val nextPos = positionFinder.findNextPosition(it)
|
||||
|
||||
Reference in New Issue
Block a user