Handle large arity lambdas, and add missing type access for some constructor calls (needed for anonymous classes)

This commit is contained in:
Tamas Vajk
2021-12-06 14:09:29 +01:00
committed by Ian Lynagh
parent f4c87cb79d
commit 3cd2583ec8
4 changed files with 410 additions and 122 deletions

View File

@@ -178,7 +178,7 @@ open class KotlinFileExtractor(
val parentId =
if (parent.isAnonymousObject) {
@Suppress("UNCHECKED_CAST")
useAnonymousClass(c).javaResult.id as Label<out DbClass>
useAnonymousClass(parent).javaResult.id as Label<out DbClass>
} else {
useClassInstance(parent, listOf()).typeResult.id
}
@@ -260,12 +260,11 @@ open class KotlinFileExtractor(
}
private fun extractValueParameter(vp: IrValueParameter, parent: Label<out DbCallable>, idx: Int): TypeResults {
return extractValueParameter(useValueParameter(vp), vp.type, vp.name.asString(), vp, parent, idx)
return extractValueParameter(useValueParameter(vp), vp.type, vp.name.asString(), tw.getLocation(vp), parent, idx)
}
private fun extractValueParameter(id: Label<out DbParam>, t: IrType, name: String, loc: IrElement, parent: Label<out DbCallable>, idx: Int): TypeResults {
private fun extractValueParameter(id: Label<out DbParam>, t: IrType, name: String, locId: Label<DbLocation>, parent: Label<out DbCallable>, idx: Int): TypeResults {
val type = useType(t)
val locId = tw.getLocation(loc)
tw.writeParams(id, type.javaResult.id, type.kotlinResult.id, idx, parent, id)
tw.writeHasLocation(id, locId)
tw.writeParamName(id, name)
@@ -721,6 +720,15 @@ open class KotlinFileExtractor(
tw.writeStatementEnclosingExpr(idNewexpr, enclosingStmt)
tw.writeCallableBinding(idNewexpr, ids.constructor)
@Suppress("UNCHECKED_CAST")
tw.writeIsAnonymClass(ids.type.javaResult.id as Label<DbClass>, idNewexpr)
val typeAccessId = tw.getFreshIdLabel<DbUnannotatedtypeaccess>()
val anyType = useType(pluginContext.irBuiltIns.anyType)
tw.writeExprs_unannotatedtypeaccess(typeAccessId, anyType.javaResult.id, anyType.kotlinResult.id, idNewexpr, -3)
tw.writeCallableEnclosingExpr(typeAccessId, callable)
tw.writeStatementEnclosingExpr(typeAccessId, enclosingStmt)
} else {
val methodId = useFunction<DbMethod>(callTarget)
tw.writeCallableBinding(id, methodId)
@@ -1644,61 +1652,57 @@ open class KotlinFileExtractor(
functionN(pluginContext)(parameters.size).typeWith(types)
}
val lambdaType = pluginContext.referenceClass(FqName("kotlin.jvm.internal.Lambda"))!!.typeWith()
/*
* Extract generated class:
* ```
* class C : kotlin.jvm.internal.Lambda, kotlin.FunctionI<T0,T1, ... TI, R> {
* constructor() { super(I); }
* fun invoke(a0:T0, a1:T1, ... aI: TI): R { ... }
* }
* ```
* or in case of big arity lambdas
* ```
* class C : kotlin.jvm.internal.Lambda, kotlin.FunctionN<R> {
* constructor() { super(I); }
* fun invoke(a0:T0, a1:T1, ... aI: TI): R { ... }
* fun invoke(vararg args: Any?): R {
* return invoke(args[0] as T0, args[1] as T1, ..., args[I] as TI)
* }
* }
* ```
* */
extractGeneratedClass(
e.function, // We're adding this function as a member, and changing its name to `invoke` to implement `kotlin.FunctionX<,,,>.invoke(,,)`
listOf(
pluginContext.referenceClass(FqName("kotlin.jvm.internal.Lambda"))!!.typeWith(),
fnInterface),
listOf(lambdaType, fnInterface),
listOf(e.function.valueParameters.size.toIrConst(pluginContext.irBuiltIns.intType, e.startOffset, e.endOffset)))
val objectType = useType(pluginContext.irBuiltIns.anyNType).javaResult.id
if (types.size > BuiltInFunctionArity.BIG_ARITY) {
implementFunctionNInvoke(e.function, ids, locId, parameters)
// Only add bridge method if its signature is different from the lambda function
if (!types.all { useType(it).javaResult.id == objectType } ||
types.size > BuiltInFunctionArity.BIG_ARITY) {
val methodId = tw.getFreshIdLabel<DbMethod>()
val paramTypes =
if (types.size > BuiltInFunctionArity.BIG_ARITY) {
// signature is `Object invoke(Object[] p)`
listOf(extractValueParameter(tw.getFreshIdLabel(), pluginContext.irBuiltIns.arrayClass.typeWith(pluginContext.irBuiltIns.anyNType), "p", e, methodId, 0))
} else {
// signature is `Object invoke(Object p0, Object p1, ..., Object pN)`
parameters.mapIndexed { i, _ ->
extractValueParameter(tw.getFreshIdLabel(), pluginContext.irBuiltIns.anyNType, "p$i", e, methodId, i)
}
}
val paramsSignature = paramTypes.joinToString(separator = ",", prefix = "(", postfix = ")") { it.javaResult.signature!! }
val returnType = useType(pluginContext.irBuiltIns.anyNType, TypeContext.RETURN)
val shortName = OperatorNameConventions.INVOKE.asString()
@Suppress("UNCHECKED_CAST")
tw.writeMethods(methodId, shortName, "$shortName$paramsSignature", returnType.javaResult.id, returnType.kotlinResult.id, ids.type.javaResult.id as Label<out DbReftype>, methodId)
tw.writeHasLocation(methodId, locId)
// TODO:
// - Add body of bridge method, which calls `e.function`:
// ```
// public int invoke(int i, Object j, String k) { return 5; }
// public Object invoke(Object p0, Object p1, Object p2) {
// return invoke((int)p0, (Object)p1, (String)p2);
// or
// invoke((int)p0, (Object)p1, (String)p2);
// return kotlin.Unit.INSTANCE
// }
// ```
// todo: which method should be returned in `LambdaExpr.asMethod()`?
}
val exprParent = parent.expr(e, callable)
val idLambdaExpr = tw.getFreshIdLabel<DbLambdaexpr>()
tw.writeExprs_lambdaexpr(idLambdaExpr, ids.type.javaResult.id, ids.type.kotlinResult.id, exprParent.parent, exprParent.idx)
tw.writeHasLocation(idLambdaExpr, locId)
tw.writeCallableEnclosingExpr(idLambdaExpr, callable)
tw.writeStatementEnclosingExpr(idLambdaExpr, exprParent.enclosingStmt)
tw.writeCallableBinding(idLambdaExpr, ids.constructor)
val idNewexpr = tw.getFreshIdLabel<DbNewexpr>()
tw.writeExprs_newexpr(idNewexpr, ids.type.javaResult.id, ids.type.kotlinResult.id, exprParent.parent, exprParent.idx)
tw.writeHasLocation(idNewexpr, locId)
tw.writeCallableEnclosingExpr(idNewexpr, callable)
tw.writeStatementEnclosingExpr(idNewexpr, exprParent.enclosingStmt)
tw.writeCallableBinding(idNewexpr, ids.constructor)
val typeAccessId = tw.getFreshIdLabel<DbUnannotatedtypeaccess>()
// todo: in Java, we're accessing the base functional interface type.
val typeAccessType = useType(lambdaType)
tw.writeExprs_unannotatedtypeaccess(typeAccessId, typeAccessType.javaResult.id, typeAccessType.kotlinResult.id, idLambdaExpr, -3)
tw.writeCallableEnclosingExpr(typeAccessId, callable)
tw.writeStatementEnclosingExpr(typeAccessId, exprParent.enclosingStmt)
// todo: fix hard coded block body of lambda
tw.writeLambdaKind(idLambdaExpr, 1)
@Suppress("UNCHECKED_CAST")
tw.writeIsAnonymClass(ids.type.javaResult.id as Label<DbClass>, idLambdaExpr)
}
else -> {
logger.warnElement(Severity.ErrorSevere, "Unrecognised IrExpression: " + e.javaClass, e)
@@ -1706,6 +1710,108 @@ open class KotlinFileExtractor(
}
}
/*
* This function generates an implementation for `fun kotlin.FunctionN<R>.invoke(vararg args: Any?): R`
*
* The following body is added:
* ```
* fun invoke(vararg args: Any?): R {
* return invoke(args[0] as T0, args[1] as T1, ..., args[I] as TI)
* }
* ```
* */
private fun implementFunctionNInvoke(
lambda: IrFunction,
ids: LocalFunctionLabels,
locId: Label<DbLocation>,
parameters: List<IrValueParameter>
) {
val methodId = tw.getFreshIdLabel<DbMethod>()
val argsParamId = tw.getFreshIdLabel<DbParam>()
val argsParamType = pluginContext.irBuiltIns.arrayClass.typeWith(pluginContext.irBuiltIns.anyNType)
val paramType = extractValueParameter(argsParamId, argsParamType, "args", locId, methodId, 0)
val paramsSignature = "(${paramType.javaResult.signature!!})"
val returnType = useType(lambda.returnType, TypeContext.RETURN)
val shortName = OperatorNameConventions.INVOKE.asString()
@Suppress("UNCHECKED_CAST")
tw.writeMethods(methodId, shortName, "$shortName$paramsSignature", returnType.javaResult.id, returnType.kotlinResult.id, ids.type.javaResult.id as Label<out DbReftype>, methodId)
tw.writeHasLocation(methodId, locId)
// Block
val blockId = tw.getFreshIdLabel<DbBlock>()
tw.writeStmts_block(blockId, methodId, 0, methodId)
tw.writeHasLocation(blockId, locId)
// Return
val retId = tw.getFreshIdLabel<DbReturnstmt>()
tw.writeStmts_returnstmt(retId, blockId, 0, methodId)
tw.writeHasLocation(retId, locId)
fun extractCommonExpr(id: Label<out DbExpr>) {
tw.writeHasLocation(id, locId)
tw.writeCallableEnclosingExpr(id, methodId)
tw.writeStatementEnclosingExpr(id, retId)
}
// Call to original `invoke`:
val callId = tw.getFreshIdLabel<DbMethodaccess>()
val callType = useType(lambda.returnType)
tw.writeExprs_methodaccess(callId, callType.javaResult.id, callType.kotlinResult.id, retId, 0)
extractCommonExpr(callId)
val calledMethodId = useFunction<DbMethod>(lambda)
tw.writeCallableBinding(callId, calledMethodId)
// this access
val thisId = tw.getFreshIdLabel<DbThisaccess>()
tw.writeExprs_thisaccess(thisId, ids.type.javaResult.id, ids.type.kotlinResult.id, callId, -1)
extractCommonExpr(thisId)
// parameters
val intType = useType(pluginContext.irBuiltIns.intType)
val argsType = useType(argsParamType)
val anyNType = useType(pluginContext.irBuiltIns.anyNType)
val func =
pluginContext.irBuiltIns.arrayClass.owner.declarations.find { it is IrFunction && it.name.asString() == "get" }
@Suppress("UNCHECKED_CAST")
val arrayGetMethodId = useFunction<DbMethod>(func as IrFunction)
for ((pIdx, p) in parameters.withIndex()) {
// `args[i] as Ti` is generated below for each parameter
// cast
val castId = tw.getFreshIdLabel<DbCastexpr>()
val type = useType(p.type)
tw.writeExprs_castexpr(castId, type.javaResult.id, type.kotlinResult.id, callId, pIdx)
extractCommonExpr(castId)
// type access
extractTypeAccess(p.type, locId, methodId, castId, 0, retId)
// element access: `args.get(i)`
val getCallId = tw.getFreshIdLabel<DbMethodaccess>()
tw.writeExprs_methodaccess(getCallId, anyNType.javaResult.id, anyNType.kotlinResult.id, castId, 1)
extractCommonExpr(getCallId)
tw.writeCallableBinding(getCallId, arrayGetMethodId)
// parameter access:
val argsAccessId = tw.getFreshIdLabel<DbVaraccess>()
tw.writeExprs_varaccess(argsAccessId, argsType.javaResult.id, argsType.kotlinResult.id, getCallId, -1)
extractCommonExpr(argsAccessId)
tw.writeVariableBinding(argsAccessId, argsParamId)
// index access:
val indexId = tw.getFreshIdLabel<DbIntegerliteral>()
tw.writeExprs_integerliteral(indexId, intType.javaResult.id, intType.kotlinResult.id, getCallId, pIdx)
extractCommonExpr(indexId)
tw.writeNamestrings(pIdx.toString(), pIdx.toString(), indexId)
}
}
fun extractVarargElement(e: IrVarargElement, callable: Label<out DbCallable>, parent: Label<out DbExprparent>, idx: Int, enclosingStmt: Label<out DbStmt>) {
when(e) {
is IrExpression -> {
@@ -1717,19 +1823,22 @@ open class KotlinFileExtractor(
}
}
fun extractTypeAccess(t: IrType, callable: Label<out DbCallable>, parent: Label<out DbExprparent>, idx: Int, elementForLocation: IrElement, enclosingStmt: Label<out DbStmt>) {
private fun extractTypeAccess(t: IrType, location: Label<DbLocation>, callable: Label<out DbCallable>, parent: Label<out DbExprparent>, idx: Int, enclosingStmt: Label<out DbStmt>) {
// TODO: elementForLocation allows us to give some sort of
// location, but a proper location for the type access will
// require upstream changes
val type = useType(t)
val id = tw.getFreshIdLabel<DbUnannotatedtypeaccess>()
tw.writeExprs_unannotatedtypeaccess(id, type.javaResult.id, type.kotlinResult.id, parent, idx)
val locId = tw.getLocation(elementForLocation)
tw.writeHasLocation(id, locId)
tw.writeHasLocation(id, location)
tw.writeCallableEnclosingExpr(id, callable)
tw.writeStatementEnclosingExpr(id, enclosingStmt)
}
private fun extractTypeAccess(t: IrType, callable: Label<out DbCallable>, parent: Label<out DbExprparent>, idx: Int, elementForLocation: IrElement, enclosingStmt: Label<out DbStmt>) {
extractTypeAccess(t, tw.getLocation(elementForLocation), callable, parent, idx, enclosingStmt)
}
fun extractTypeOperatorCall(e: IrTypeOperatorCall, callable: Label<out DbCallable>, parent: Label<out DbExprparent>, idx: Int, enclosingStmt: Label<out DbStmt>) {
when(e.operator) {
IrTypeOperator.CAST -> {
@@ -1867,7 +1976,7 @@ open class KotlinFileExtractor(
// Super call
val superCallId = tw.getFreshIdLabel<DbSuperconstructorinvocationstmt>()
tw.writeStmts_superconstructorinvocationstmt(superCallId, constructorBlockId, 0, ids.function)
tw.writeStmts_superconstructorinvocationstmt(superCallId, constructorBlockId, 0, ids.constructor)
for (i in 0 until superConstructorArgs.size) {
val arg = superConstructorArgs[i]
extractExpressionExpr(arg, ids.constructor, superCallId, i, superCallId)
@@ -1885,6 +1994,34 @@ open class KotlinFileExtractor(
addModifiers(id, "public", "static", "final")
extractClassSupertypes(superTypes, listOf(), id)
var parent: IrDeclarationParent? = localFunction.parent
while (parent != null) {
// todo: merge this with the implementation in `extractClassSource`
if (parent is IrClass) {
val parentId =
if (parent.isAnonymousObject) {
@Suppress("UNCHECKED_CAST")
useAnonymousClass(parent).javaResult.id as Label<out DbClass>
} else {
useClassInstance(parent, listOf()).typeResult.id
}
tw.writeEnclInReftype(id, parentId)
break
}
if (parent is IrFile) {
if (this is KotlinSourceFileExtractor && this.file == localFunction.fileOrNull) {
tw.writeEnclInReftype(id, this.fileClass)
} else {
logger.warn(Severity.ErrorSevere, "Unexpected file parent found")
}
break
}
parent = (parent as? IrDeclaration)?.parent
}
return id
}
}

View File

@@ -605,37 +605,53 @@
| file://:0:0:0:0 | Integer | localFunctionCalls.kt:3:1:11:1 | x | TypeAccess |
| file://:0:0:0:0 | Integer | localFunctionCalls.kt:3:1:11:1 | x | TypeAccess |
| file://:0:0:0:0 | Interface1 | exprs.kt:187:13:192:5 | getObject | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Lambda | funcExprs.kt:25:28:25:51 | invoke | TypeAccess |
| file://:0:0:0:0 | MyLambda | funcExprs.kt:13:1:29:1 | call | TypeAccess |
| file://:0:0:0:0 | Object | localFunctionCalls.kt:3:1:11:1 | x | TypeAccess |
| file://:0:0:0:0 | Object | localFunctionCalls.kt:3:1:11:1 | x | TypeAccess |
| file://:0:0:0:0 | String | localFunctionCalls.kt:3:1:11:1 | x | TypeAccess |
| file://:0:0:0:0 | Unit | exprs.kt:168:6:170:1 | Direction | TypeAccess |
| file://:0:0:0:0 | Unit | exprs.kt:172:6:176:1 | Color | TypeAccess |
| file://:0:0:0:0 | tmp0 | exprs.kt:4:1:136:1 | topLevelMethod | LocalVariableDeclExpr |
| funcExprs.kt:14:5:14:33 | functionExpression0a(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:14:26:14:33 | 0 | funcExprs.kt:14:26:14:33 | | IntegerLiteral |
| funcExprs.kt:14:26:14:33 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:14:26:14:33 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:14:31:14:31 | 5 | funcExprs.kt:14:26:14:33 | invoke | IntegerLiteral |
| funcExprs.kt:15:5:15:33 | functionExpression0b(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:15:26:15:33 | 0 | funcExprs.kt:15:26:15:33 | | IntegerLiteral |
| funcExprs.kt:15:26:15:33 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:15:26:15:33 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:15:31:15:31 | 5 | funcExprs.kt:15:26:15:33 | invoke | IntegerLiteral |
| funcExprs.kt:16:5:16:33 | functionExpression0c(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:16:26:16:33 | 0 | funcExprs.kt:16:26:16:33 | | IntegerLiteral |
| funcExprs.kt:16:26:16:33 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:16:26:16:33 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:16:31:16:31 | 5 | funcExprs.kt:16:26:16:33 | invoke | IntegerLiteral |
| funcExprs.kt:17:5:17:38 | functionExpression1a(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:17:26:17:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:17:29:17:38 | 1 | funcExprs.kt:17:29:17:38 | | IntegerLiteral |
| funcExprs.kt:17:29:17:38 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:17:29:17:38 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:17:36:17:36 | 5 | funcExprs.kt:17:29:17:38 | invoke | IntegerLiteral |
| funcExprs.kt:18:5:18:34 | functionExpression1a(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:18:26:18:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:18:29:18:34 | 1 | funcExprs.kt:18:29:18:34 | | IntegerLiteral |
| funcExprs.kt:18:29:18:34 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:18:29:18:34 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:18:31:18:32 | it | funcExprs.kt:18:29:18:34 | invoke | VarAccess |
| funcExprs.kt:19:5:19:43 | functionExpression1a(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:19:26:19:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:19:29:19:42 | 1 | funcExprs.kt:19:29:19:42 | | IntegerLiteral |
| funcExprs.kt:19:29:19:42 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:19:29:19:42 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:19:42:19:42 | 5 | funcExprs.kt:19:29:19:42 | invoke | IntegerLiteral |
| funcExprs.kt:20:5:20:39 | functionExpression1a(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:20:26:20:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
@@ -643,43 +659,160 @@
| funcExprs.kt:21:5:21:37 | functionExpression1b(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:21:26:21:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:21:29:21:37 | 1 | funcExprs.kt:21:29:21:37 | | IntegerLiteral |
| funcExprs.kt:21:29:21:37 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:21:29:21:37 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:21:36:21:36 | a | funcExprs.kt:21:29:21:37 | invoke | VarAccess |
| funcExprs.kt:22:5:22:51 | functionExpression2(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:22:25:22:25 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:22:28:22:50 | 2 | funcExprs.kt:22:28:22:50 | | IntegerLiteral |
| funcExprs.kt:22:28:22:50 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:22:28:22:50 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:22:50:22:50 | 5 | funcExprs.kt:22:28:22:50 | invoke | IntegerLiteral |
| funcExprs.kt:23:5:23:40 | functionExpression2(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:23:25:23:25 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:23:28:23:40 | 2 | funcExprs.kt:23:28:23:40 | | IntegerLiteral |
| funcExprs.kt:23:28:23:40 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:23:28:23:40 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:23:38:23:38 | 5 | funcExprs.kt:23:28:23:40 | invoke | IntegerLiteral |
| funcExprs.kt:24:5:24:44 | functionExpression3(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:24:25:24:25 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:24:28:24:44 | 1 | funcExprs.kt:24:28:24:44 | | IntegerLiteral |
| funcExprs.kt:24:28:24:44 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:24:28:24:44 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:24:35:24:38 | this | funcExprs.kt:24:28:24:44 | invoke | ThisAccess |
| funcExprs.kt:24:35:24:42 | ... + ... | funcExprs.kt:24:28:24:44 | invoke | AddExpr |
| funcExprs.kt:24:42:24:42 | a | funcExprs.kt:24:28:24:44 | invoke | VarAccess |
| funcExprs.kt:25:5:25:51 | functionExpression4(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:25:25:25:25 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:25:28:25:51 | 1 | funcExprs.kt:25:28:25:51 | | IntegerLiteral |
| funcExprs.kt:25:28:25:51 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:25:28:25:51 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:25:37:25:47 | 1 | funcExprs.kt:25:37:25:47 | | IntegerLiteral |
| funcExprs.kt:25:37:25:47 | new (...) | funcExprs.kt:25:28:25:51 | invoke | ClassInstanceExpr |
| funcExprs.kt:25:37:25:47 | ...->... | funcExprs.kt:25:28:25:51 | invoke | LambdaExpr |
| funcExprs.kt:25:44:25:46 | 5.0 | funcExprs.kt:25:37:25:47 | invoke | DoubleLiteral |
| funcExprs.kt:27:5:27:112 | functionExpression22(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:27:26:27:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:27:29:27:112 | 22 | funcExprs.kt:27:29:27:112 | | IntegerLiteral |
| funcExprs.kt:27:29:27:112 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:27:29:27:112 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:27:111:27:111 | 5 | funcExprs.kt:27:29:27:112 | invoke | IntegerLiteral |
| funcExprs.kt:27:111:27:111 | (...)... | funcExprs.kt:27:29:27:112 | invoke | CastExpr |
| funcExprs.kt:27:111:27:111 | Unit | funcExprs.kt:27:29:27:112 | invoke | TypeAccess |
| funcExprs.kt:28:5:28:117 | functionExpression23(...) | funcExprs.kt:13:1:29:1 | call | MethodAccess |
| funcExprs.kt:28:26:28:26 | 5 | funcExprs.kt:13:1:29:1 | call | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 0 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 1 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 2 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 3 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 4 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 5 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 6 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 7 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 8 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 9 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 10 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 11 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 12 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 13 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 14 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 15 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 16 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 17 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 18 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 19 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 20 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 21 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 22 | funcExprs.kt:28:29:28:117 | invoke | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | 23 | funcExprs.kt:28:29:28:117 | | IntegerLiteral |
| funcExprs.kt:28:29:28:117 | new (...) | funcExprs.kt:13:1:29:1 | call | ClassInstanceExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | (...)... | funcExprs.kt:28:29:28:117 | invoke | CastExpr |
| funcExprs.kt:28:29:28:117 | ...->... | funcExprs.kt:13:1:29:1 | call | LambdaExpr |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | args | funcExprs.kt:28:29:28:117 | invoke | VarAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | get(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | int | funcExprs.kt:28:29:28:117 | invoke | TypeAccess |
| funcExprs.kt:28:29:28:117 | invoke(...) | funcExprs.kt:28:29:28:117 | invoke | MethodAccess |
| funcExprs.kt:28:29:28:117 | this | funcExprs.kt:28:29:28:117 | invoke | ThisAccess |
| funcExprs.kt:28:115:28:116 | | funcExprs.kt:28:29:28:117 | invoke | StringLiteral |
| funcExprs.kt:31:1:33:1 | <obinit>(...) | funcExprs.kt:31:1:33:1 | MyLambda | MethodAccess |
| funcExprs.kt:32:49:32:49 | 5 | funcExprs.kt:32:23:32:49 | invoke | IntegerLiteral |

View File

@@ -1,55 +1,61 @@
lambdaClassMembers
| funcExprs.kt:14:26:14:33 | | funcExprs.kt:14:26:14:33 | | Constructor | |
| funcExprs.kt:14:26:14:33 | | funcExprs.kt:14:26:14:33 | invoke | Method | invoke() |
| funcExprs.kt:14:26:14:33 | | funcExprs.kt:14:26:14:33 | invoke | Method | invoke() |
| funcExprs.kt:15:26:15:33 | | funcExprs.kt:15:26:15:33 | | Constructor | |
| funcExprs.kt:15:26:15:33 | | funcExprs.kt:15:26:15:33 | invoke | Method | invoke() |
| funcExprs.kt:16:26:16:33 | | funcExprs.kt:16:26:16:33 | | Constructor | |
| funcExprs.kt:16:26:16:33 | | funcExprs.kt:16:26:16:33 | invoke | Method | invoke() |
| funcExprs.kt:17:29:17:38 | | funcExprs.kt:17:29:17:38 | | Constructor | |
| funcExprs.kt:17:29:17:38 | | funcExprs.kt:17:29:17:38 | invoke | Method | invoke(int) |
| funcExprs.kt:17:29:17:38 | | funcExprs.kt:17:29:17:38 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:18:29:18:34 | | funcExprs.kt:18:29:18:34 | | Constructor | |
| funcExprs.kt:18:29:18:34 | | funcExprs.kt:18:29:18:34 | invoke | Method | invoke(int) |
| funcExprs.kt:18:29:18:34 | | funcExprs.kt:18:29:18:34 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:19:29:19:42 | | funcExprs.kt:19:29:19:42 | | Constructor | |
| funcExprs.kt:19:29:19:42 | | funcExprs.kt:19:29:19:42 | invoke | Method | invoke(int) |
| funcExprs.kt:19:29:19:42 | | funcExprs.kt:19:29:19:42 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:21:29:21:37 | | funcExprs.kt:21:29:21:37 | | Constructor | |
| funcExprs.kt:21:29:21:37 | | funcExprs.kt:21:29:21:37 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:22:28:22:50 | | funcExprs.kt:22:28:22:50 | | Constructor | |
| funcExprs.kt:22:28:22:50 | | funcExprs.kt:22:28:22:50 | invoke | Method | invoke(int,int) |
| funcExprs.kt:22:28:22:50 | | funcExprs.kt:22:28:22:50 | invoke | Method | invoke(java.lang.Object,java.lang.Object) |
| funcExprs.kt:23:28:23:40 | | funcExprs.kt:23:28:23:40 | | Constructor | |
| funcExprs.kt:23:28:23:40 | | funcExprs.kt:23:28:23:40 | invoke | Method | invoke(int,int) |
| funcExprs.kt:23:28:23:40 | | funcExprs.kt:23:28:23:40 | invoke | Method | invoke(java.lang.Object,java.lang.Object) |
| funcExprs.kt:24:28:24:44 | | funcExprs.kt:24:28:24:44 | | Constructor | |
| funcExprs.kt:24:28:24:44 | | funcExprs.kt:24:28:24:44 | invoke | ExtensionMethod | invoke(int,int) |
| funcExprs.kt:24:28:24:44 | | funcExprs.kt:24:28:24:44 | invoke | Method | invoke(java.lang.Object,java.lang.Object) |
| funcExprs.kt:25:28:25:51 | | funcExprs.kt:25:28:25:51 | | Constructor | |
| funcExprs.kt:25:28:25:51 | | funcExprs.kt:25:28:25:51 | invoke | Method | invoke(int) |
| funcExprs.kt:25:28:25:51 | | funcExprs.kt:25:28:25:51 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:25:37:25:47 | | funcExprs.kt:25:37:25:47 | | Constructor | |
| funcExprs.kt:25:37:25:47 | | funcExprs.kt:25:37:25:47 | invoke | Method | invoke(int) |
| funcExprs.kt:25:37:25:47 | | funcExprs.kt:25:37:25:47 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:27:29:27:112 | | funcExprs.kt:27:29:27:112 | | Constructor | |
| funcExprs.kt:27:29:27:112 | | funcExprs.kt:27:29:27:112 | invoke | Method | invoke(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int) |
| funcExprs.kt:27:29:27:112 | | funcExprs.kt:27:29:27:112 | invoke | Method | invoke(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object) |
| funcExprs.kt:28:29:28:117 | | funcExprs.kt:28:29:28:117 | | Constructor | |
| funcExprs.kt:28:29:28:117 | | funcExprs.kt:28:29:28:117 | invoke | Method | invoke(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int) |
| funcExprs.kt:28:29:28:117 | | funcExprs.kt:28:29:28:117 | invoke | Method | invoke(java.lang.Object[]) |
| funcExprs.kt:14:26:14:33 | new Lambda(...) { ... } | funcExprs.kt:14:26:14:33 | | Constructor | |
| funcExprs.kt:14:26:14:33 | new Lambda(...) { ... } | funcExprs.kt:14:26:14:33 | invoke | Method | invoke() |
| funcExprs.kt:15:26:15:33 | new Lambda(...) { ... } | funcExprs.kt:15:26:15:33 | | Constructor | |
| funcExprs.kt:15:26:15:33 | new Lambda(...) { ... } | funcExprs.kt:15:26:15:33 | invoke | Method | invoke() |
| funcExprs.kt:16:26:16:33 | new Lambda(...) { ... } | funcExprs.kt:16:26:16:33 | | Constructor | |
| funcExprs.kt:16:26:16:33 | new Lambda(...) { ... } | funcExprs.kt:16:26:16:33 | invoke | Method | invoke() |
| funcExprs.kt:17:29:17:38 | new Lambda(...) { ... } | funcExprs.kt:17:29:17:38 | | Constructor | |
| funcExprs.kt:17:29:17:38 | new Lambda(...) { ... } | funcExprs.kt:17:29:17:38 | invoke | Method | invoke(int) |
| funcExprs.kt:18:29:18:34 | new Lambda(...) { ... } | funcExprs.kt:18:29:18:34 | | Constructor | |
| funcExprs.kt:18:29:18:34 | new Lambda(...) { ... } | funcExprs.kt:18:29:18:34 | invoke | Method | invoke(int) |
| funcExprs.kt:19:29:19:42 | new Lambda(...) { ... } | funcExprs.kt:19:29:19:42 | | Constructor | |
| funcExprs.kt:19:29:19:42 | new Lambda(...) { ... } | funcExprs.kt:19:29:19:42 | invoke | Method | invoke(int) |
| funcExprs.kt:21:29:21:37 | new Lambda(...) { ... } | funcExprs.kt:21:29:21:37 | | Constructor | |
| funcExprs.kt:21:29:21:37 | new Lambda(...) { ... } | funcExprs.kt:21:29:21:37 | invoke | Method | invoke(java.lang.Object) |
| funcExprs.kt:22:28:22:50 | new Lambda(...) { ... } | funcExprs.kt:22:28:22:50 | | Constructor | |
| funcExprs.kt:22:28:22:50 | new Lambda(...) { ... } | funcExprs.kt:22:28:22:50 | invoke | Method | invoke(int,int) |
| funcExprs.kt:23:28:23:40 | new Lambda(...) { ... } | funcExprs.kt:23:28:23:40 | | Constructor | |
| funcExprs.kt:23:28:23:40 | new Lambda(...) { ... } | funcExprs.kt:23:28:23:40 | invoke | Method | invoke(int,int) |
| funcExprs.kt:24:28:24:44 | new Lambda(...) { ... } | funcExprs.kt:24:28:24:44 | | Constructor | |
| funcExprs.kt:24:28:24:44 | new Lambda(...) { ... } | funcExprs.kt:24:28:24:44 | invoke | ExtensionMethod | invoke(int,int) |
| funcExprs.kt:25:28:25:51 | new Lambda(...) { ... } | funcExprs.kt:25:28:25:51 | | Constructor | |
| funcExprs.kt:25:28:25:51 | new Lambda(...) { ... } | funcExprs.kt:25:28:25:51 | invoke | Method | invoke(int) |
| funcExprs.kt:25:37:25:47 | new Lambda(...) { ... } | funcExprs.kt:25:37:25:47 | | Constructor | |
| funcExprs.kt:25:37:25:47 | new Lambda(...) { ... } | funcExprs.kt:25:37:25:47 | invoke | Method | invoke(int) |
| funcExprs.kt:27:29:27:112 | new Lambda(...) { ... } | funcExprs.kt:27:29:27:112 | | Constructor | |
| funcExprs.kt:27:29:27:112 | new Lambda(...) { ... } | funcExprs.kt:27:29:27:112 | invoke | Method | invoke(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int) |
| funcExprs.kt:28:29:28:117 | new Lambda(...) { ... } | funcExprs.kt:28:29:28:117 | | Constructor | |
| funcExprs.kt:28:29:28:117 | new Lambda(...) { ... } | funcExprs.kt:28:29:28:117 | invoke | Method | invoke(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int) |
| funcExprs.kt:28:29:28:117 | new Lambda(...) { ... } | funcExprs.kt:28:29:28:117 | invoke | Method | invoke(java.lang.Object[]) |
lambdaClassInterfaces
| funcExprs.kt:14:26:14:33 | | Function0<Integer> |
| funcExprs.kt:15:26:15:33 | | Function0<Object> |
| funcExprs.kt:16:26:16:33 | | Function0<Object> |
| funcExprs.kt:17:29:17:38 | | Function1<Integer,Integer> |
| funcExprs.kt:18:29:18:34 | | Function1<Integer,Integer> |
| funcExprs.kt:19:29:19:42 | | Function1<Integer,Integer> |
| funcExprs.kt:21:29:21:37 | | Function1<Object,Object> |
| funcExprs.kt:22:28:22:50 | | Function2<Integer,Integer,Integer> |
| funcExprs.kt:23:28:23:40 | | Function2<Integer,Integer,Integer> |
| funcExprs.kt:24:28:24:44 | | Function2<Integer,Integer,Integer> |
| funcExprs.kt:25:28:25:51 | | Function1<Integer,Function1<Integer,Double>> |
| funcExprs.kt:25:37:25:47 | | Function1<Integer,Double> |
| funcExprs.kt:27:29:27:112 | | Function22<Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Unit> |
| funcExprs.kt:28:29:28:117 | | FunctionN<String> |
| funcExprs.kt:14:26:14:33 | new Lambda(...) { ... } | Function0<Integer> |
| funcExprs.kt:15:26:15:33 | new Lambda(...) { ... } | Function0<Object> |
| funcExprs.kt:16:26:16:33 | new Lambda(...) { ... } | Function0<Object> |
| funcExprs.kt:17:29:17:38 | new Lambda(...) { ... } | Function1<Integer,Integer> |
| funcExprs.kt:18:29:18:34 | new Lambda(...) { ... } | Function1<Integer,Integer> |
| funcExprs.kt:19:29:19:42 | new Lambda(...) { ... } | Function1<Integer,Integer> |
| funcExprs.kt:21:29:21:37 | new Lambda(...) { ... } | Function1<Object,Object> |
| funcExprs.kt:22:28:22:50 | new Lambda(...) { ... } | Function2<Integer,Integer,Integer> |
| funcExprs.kt:23:28:23:40 | new Lambda(...) { ... } | Function2<Integer,Integer,Integer> |
| funcExprs.kt:24:28:24:44 | new Lambda(...) { ... } | Function2<Integer,Integer,Integer> |
| funcExprs.kt:25:28:25:51 | new Lambda(...) { ... } | Function1<Integer,Function1<Integer,Double>> |
| funcExprs.kt:25:37:25:47 | new Lambda(...) { ... } | Function1<Integer,Double> |
| funcExprs.kt:27:29:27:112 | new Lambda(...) { ... } | Function22<Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Integer,Unit> |
| funcExprs.kt:28:29:28:117 | new Lambda(...) { ... } | FunctionN<String> |
lambdaExpr
| funcExprs.kt:14:26:14:33 | ...->... | stmt body | funcExprs.kt:14:26:14:33 | invoke | funcExprs.kt:14:26:14:33 | new Lambda(...) { ... } |
| funcExprs.kt:15:26:15:33 | ...->... | stmt body | funcExprs.kt:15:26:15:33 | invoke | funcExprs.kt:15:26:15:33 | new Lambda(...) { ... } |
| funcExprs.kt:16:26:16:33 | ...->... | stmt body | funcExprs.kt:16:26:16:33 | invoke | funcExprs.kt:16:26:16:33 | new Lambda(...) { ... } |
| funcExprs.kt:17:29:17:38 | ...->... | stmt body | funcExprs.kt:17:29:17:38 | invoke | funcExprs.kt:17:29:17:38 | new Lambda(...) { ... } |
| funcExprs.kt:18:29:18:34 | ...->... | stmt body | funcExprs.kt:18:29:18:34 | invoke | funcExprs.kt:18:29:18:34 | new Lambda(...) { ... } |
| funcExprs.kt:19:29:19:42 | ...->... | stmt body | funcExprs.kt:19:29:19:42 | invoke | funcExprs.kt:19:29:19:42 | new Lambda(...) { ... } |
| funcExprs.kt:21:29:21:37 | ...->... | stmt body | funcExprs.kt:21:29:21:37 | invoke | funcExprs.kt:21:29:21:37 | new Lambda(...) { ... } |
| funcExprs.kt:22:28:22:50 | ...->... | stmt body | funcExprs.kt:22:28:22:50 | invoke | funcExprs.kt:22:28:22:50 | new Lambda(...) { ... } |
| funcExprs.kt:23:28:23:40 | ...->... | stmt body | funcExprs.kt:23:28:23:40 | invoke | funcExprs.kt:23:28:23:40 | new Lambda(...) { ... } |
| funcExprs.kt:24:28:24:44 | ...->... | stmt body | funcExprs.kt:24:28:24:44 | invoke | funcExprs.kt:24:28:24:44 | new Lambda(...) { ... } |
| funcExprs.kt:25:28:25:51 | ...->... | stmt body | funcExprs.kt:25:28:25:51 | invoke | funcExprs.kt:25:28:25:51 | new Lambda(...) { ... } |
| funcExprs.kt:25:37:25:47 | ...->... | stmt body | funcExprs.kt:25:37:25:47 | invoke | funcExprs.kt:25:37:25:47 | new Lambda(...) { ... } |
| funcExprs.kt:27:29:27:112 | ...->... | stmt body | funcExprs.kt:27:29:27:112 | invoke | funcExprs.kt:27:29:27:112 | new Lambda(...) { ... } |
| funcExprs.kt:28:29:28:117 | ...->... | stmt body | funcExprs.kt:28:29:28:117 | invoke | funcExprs.kt:28:29:28:117 | new Lambda(...) { ... } |
| funcExprs.kt:28:29:28:117 | ...->... | stmt body | funcExprs.kt:28:29:28:117 | invoke | funcExprs.kt:28:29:28:117 | new Lambda(...) { ... } |

View File

@@ -10,4 +10,16 @@ query predicate lambdaClassMembers(Class c, Callable m, string n, string signatu
query predicate lambdaClassInterfaces(Class c, string iName) {
c.getASupertype().hasQualifiedName("kotlin.jvm.internal", "Lambda") and
exists(Interface i | c.extendsOrImplements(i) and i.getName() = iName)
}
}
private string getLambdaBody(LambdaExpr le) {
le.hasExprBody() and result = "expr body"
or
le.hasStmtBody() and result = "stmt body"
}
query predicate lambdaExpr(LambdaExpr le, string body, Method m, AnonymousClass an) {
getLambdaBody(le) = body and
le.asMethod() = m and
le.getAnonymousClass() = an
}