Pseudocode: Generate instructions for callable reference expressions

This commit is contained in:
Alexey Sedunov
2014-07-11 19:30:22 +04:00
parent fd27518070
commit 4f54d833d3
7 changed files with 62 additions and 1 deletions
@@ -1414,6 +1414,12 @@ public class JetControlFlowProcessor {
}
}
@Override
public void visitCallableReferenceExpression(@NotNull JetCallableReferenceExpression expression) {
mark(expression);
createNonSyntheticValue(expression, MagicKind.CALLABLE_REFERENCE);
}
@Override
public void visitJetElement(@NotNull JetElement element) {
builder.unsupported(element);
@@ -139,6 +139,7 @@ public enum class MagicKind {
NOT_NULL_ASSERTION
EQUALS_IN_WHEN_CONDITION
IS
CALLABLE_REFERENCE
// implicit operations
LOOP_RANGE_ITERATION
IMPLICIT_RECEIVER