RealMcPsiFileFactory

A real implementation of McPsiFileFactory using a curated KotlinEnvironment.

The files created from this factory are backed by a meaningful BindingContext which is aware of the full classpath and may be used for type resolution.

Constructors

Link copied to clipboard
constructor(kotlinEnvironment: KotlinEnvironment)

Types

Link copied to clipboard
class Factory @Inject constructor : McPsiFileFactory.Factory

Creates an instance of McPsiFileFactory

Properties

Link copied to clipboard
open override val coreEnvironment: LazyDeferred<KotlinCoreEnvironment>
Link copied to clipboard
private val fileCache: ConcurrentHashMap<File, PsiFile>
Link copied to clipboard
private val psiManager: LazyDeferred<@NotNull PsiManager>
Link copied to clipboard
private val psiProjectDeferred: LazyDeferred<Project>
Link copied to clipboard
private val virtualFileSystem: LazyDeferred<VirtualFileSystem>

Functions

Link copied to clipboard
protected open suspend override fun create(file: File): PsiFile
Link copied to clipboard
open suspend override fun createJava(file: File): PsiJavaFile
Link copied to clipboard
open suspend override fun createKotlin(file: File): KtFile