idea-plugin / arrow.meta.ide.dsl.editor.hints / HintingSyntax / addExpressionTypeProvider


open fun <A : PsiElement> IdeMetaPlugin.addExpressionTypeProvider(informationHint: (expression: A) -> String, expressionAt: (elementAt: PsiElement) -> List<A>, errorHint: String = "No expression Found", hasAdvancedInformation: Boolean = false, advancedInformation: (expression: A) -> String = Noop.string1()): ExtensionPhase

registers an ExpressionTypeProvider for an expressionType A in any given language. This extension can be used to bring TypeInferenceAlgorithms to the ide and is a language independent version of addExpressionTypeProviderForKotlin.

See Also


Do you like Arrow?

Arrow Org