Don't mark compiler-created PSI elements as generated
This saves some memory on storing the generated flag in the PsiElement userdata and time required to store the flag.
This commit is contained in:
@@ -161,6 +161,6 @@ object CodegenUtil {
|
||||
val fakeFunctionCall = StringBuilder("callableReferenceFakeCall(")
|
||||
fakeFunctionCall.append(referencedFunction.valueParameters.map { "p${it.index}" }.joinToString(", "))
|
||||
fakeFunctionCall.append(")")
|
||||
return KtPsiFactory(project).createExpression(fakeFunctionCall.toString()) as KtCallExpression
|
||||
return KtPsiFactory(project, markGenerated = false).createExpression(fakeFunctionCall.toString()) as KtCallExpression
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user