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

addParameterInfoHandler

open fun <Owner : PsiElement, Type> IdeMetaPlugin.addParameterInfoHandler(handler: ParameterInfoHandler<Owner, Type>): ExtensionPhase

registers a ParameterInfoHandler The latter is generally used to render properties and types of parameters for code insight.

//Source not found: KotlinLambdaParameterInfoHandler

Parameters

Type - is a Descriptor

Owner - is the list of Parameters in the Descriptor Type

See Also

addParameterInfoHandlerForKotlin

open fun <Owner : PsiElement, Type, ActualType : PsiElement> IdeMetaPlugin.addParameterInfoHandler(actualParameters: (o: Owner) -> Array<ActualType>, argumentListClass: Class<Owner>, actualParameterDelimiterType: IElementType, actualParametersRBraceType: IElementType, argumentListAllowedParentClasses: MutableSet<Class<Any>>, argListStopSearchClasses: MutableSet<out Class<Any>>, showParameterInfo: (element: Owner, context: CreateParameterInfoContext) -> Unit, updateParameterInfo: (parameterOwner: Owner, context: UpdateParameterInfoContext) -> Unit, updateUI: (p: Type, context: ParameterInfoUIContext) -> Unit, parametersForLookup: (item: LookupElement?, context: ParameterInfoContext?) -> Array<Any>?, couldShowInLookup: Boolean, findElementForUpdatingParameterInfo: (context: UpdateParameterInfoContext) -> Owner?, findElementForParameterInfo: (context: CreateParameterInfoContext) -> Owner?, syncUpdateOnCaretMove: (context: UpdateParameterInfoContext) -> Unit = Noop.effect1, isWhiteSpaceSensitive: Boolean = actualParameterDelimiterType == TokenType.WHITE_SPACE): ExtensionPhase

registers a ParameterInfoHandlerWithTabActionSupport. One among other goal’s in this extension, is to facilitate a Mapping between Owner -> ActualType, or in other words from List<ActualType> -> ActualType. This is evident in actualParameters. Check out addParameterInfoHandlerForKotlin for a minimal example to what this extension may abstract to. The difference between addParameterInfoHandlerForKotlin and this function is that the latter is language independent.

Parameters

ActualType - is one parameter of the collection in Owner

Type - being an Descriptor

See Also

addParameterInfoHandler

org.jetbrains.kotlin.idea.parameterInfo.KotlinTypeArgumentInfoHandlerBase

org.jetbrains.kotlin.idea.parameterInfo.KotlinParameterInfoWithCallHandlerBase

Do you like Arrow?

Arrow Org
<