Search in sources :

Example 1 with GoArgumentList

use of com.goide.psi.GoArgumentList in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoParameterInfoHandlerTest method getHighlightedItem.

private int getHighlightedItem() {
    MockUpdateParameterInfoContext updateCtx = new MockUpdateParameterInfoContext(myFixture.getEditor(), myFixture.getFile());
    GoArgumentList psiElement = myParameterInfoHandler.findElementForUpdatingParameterInfo(updateCtx);
    assertNotNull(psiElement);
    myParameterInfoHandler.updateParameterInfo(psiElement, updateCtx);
    return updateCtx.getCurrentParameter();
}
Also used : MockUpdateParameterInfoContext(com.intellij.testFramework.utils.parameterInfo.MockUpdateParameterInfoContext) GoArgumentList(com.goide.psi.GoArgumentList)

Example 2 with GoArgumentList

use of com.goide.psi.GoArgumentList in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoParameterInfoHandlerTest method getItemsToShow.

private Object[] getItemsToShow() {
    CreateParameterInfoContext createCtx = new MockCreateParameterInfoContext(myFixture.getEditor(), myFixture.getFile());
    GoArgumentList psiElement = myParameterInfoHandler.findElementForParameterInfo(createCtx);
    assertNotNull(psiElement);
    myParameterInfoHandler.showParameterInfo(psiElement, createCtx);
    return createCtx.getItemsToShow();
}
Also used : CreateParameterInfoContext(com.intellij.lang.parameterInfo.CreateParameterInfoContext) MockCreateParameterInfoContext(com.intellij.testFramework.utils.parameterInfo.MockCreateParameterInfoContext) GoArgumentList(com.goide.psi.GoArgumentList) MockCreateParameterInfoContext(com.intellij.testFramework.utils.parameterInfo.MockCreateParameterInfoContext)

Aggregations

GoArgumentList (com.goide.psi.GoArgumentList)2 CreateParameterInfoContext (com.intellij.lang.parameterInfo.CreateParameterInfoContext)1 MockCreateParameterInfoContext (com.intellij.testFramework.utils.parameterInfo.MockCreateParameterInfoContext)1 MockUpdateParameterInfoContext (com.intellij.testFramework.utils.parameterInfo.MockUpdateParameterInfoContext)1