Raw FIR: fix LT label source

This commit is contained in:
Tianyu Geng
2021-09-29 14:03:34 -07:00
committed by TeamCityServer
parent 9e5f03dd7d
commit 1fcebab827
@@ -344,7 +344,10 @@ class ExpressionsConverter(
when (it.tokenType) {
LABEL_QUALIFIER -> {
val rawName = it.toString()
val pair = buildLabelAndErrorSource(rawName.substring(0, rawName.length - 1), it.toFirSourceElement())
val pair = buildLabelAndErrorSource(
rawName.substring(0, rawName.length - 1),
it.getChildNodesByType(LABEL).single().toFirSourceElement()
)
context.addNewLabel(pair.first)
errorLabelSource = pair.second
}