idea-plugin / arrow.meta.ide.dsl.editor.structureView / StructureViewSyntax / addStructureViewForKtFile

addStructureViewForKtFile

open fun IdeMetaPlugin.addStructureViewForKtFile(putInfo: (info: MutableMap<String, String>) -> Unit, childrenBase: (file: KtFile) -> MutableCollection<StructureViewTreeElement> = { KotlinStructureViewElement(it).childrenBase.toMutableList() }, presentableText: (file: KtFile) -> String? = { KotlinStructureViewElement(it).presentableText }, isAlwaysShowsPlus: (element: StructureViewTreeElement?) -> Boolean = { it?.value.run { (this is KtClassOrObject && this !is KtEnumEntry) || this is KtFile } }, isAlwaysLeaf: (element: StructureViewTreeElement?) -> Boolean = Noop.boolean1False): ExtensionPhase

Convenient function to construct a StructureView

Do you like Arrow?

Arrow Org
<