KtBlockExpression as lazy reparseable node (KT-13841)

Changed KtBlockExpression to support LazyReparseable behaviour
Added LazyKtBlockExpressionTest
Added new BlockWrapper delegations
This commit is contained in:
Igor Yakovlev
2019-03-12 13:43:13 +03:00
parent e774f3fe77
commit 1f29b42cd3
16 changed files with 443 additions and 128 deletions
@@ -108,7 +108,7 @@ class CodeFragmentAnalyzer(
}
}
is KtSecondaryConstructor -> {
val expression = context.bodyExpression ?: context.getDelegationCall().calleeExpression
val expression = (context.bodyExpression ?: context.getDelegationCall().calleeExpression) as? KtExpression
if (expression != null) {
bindingContext = resolutionFactory(expression)
scope = bindingContext[BindingContext.LEXICAL_SCOPE, expression]