use terms "lambda expression" and "anonymous function" instead of "function literal" and "function expression"
This commit is contained in:
@@ -61,9 +61,9 @@ public enum class KotlinTarget(val description: String, val isDefault: Boolean =
|
||||
TOP_LEVEL_PROPERTY("top level property", false),
|
||||
|
||||
INITIALIZER("initializer", false),
|
||||
MULTI_DECLARATION("multi declaration", false),
|
||||
FUNCTION_LITERAL("function literal", false),
|
||||
FUNCTION_EXPRESSION("function expression", false),
|
||||
DESTRUCTURING_DECLARATION("destructuring declaration", false),
|
||||
LAMBDA_EXPRESSION("lambda expression", false),
|
||||
ANONYMOUS_FUNCTION("anonymous function", false),
|
||||
OBJECT_LITERAL("object literal", false)
|
||||
;
|
||||
|
||||
|
||||
@@ -76,6 +76,6 @@ internal object EmptyContainerForLocal : KDeclarationContainerImpl() {
|
||||
|
||||
override fun getFunctions(name: Name): Collection<FunctionDescriptor> = fail()
|
||||
|
||||
private fun fail() = throw KotlinReflectionInternalError("Introspecting local functions, lambdas and function expressions " +
|
||||
private fun fail() = throw KotlinReflectionInternalError("Introspecting local functions, lambdas and anonymous functions " +
|
||||
"is not yet fully supported in Kotlin reflection")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user