@Override public void updateParameterInfo(@NotNull GoArgumentList list, @NotNull UpdateParameterInfoContext context) { context.setCurrentParameter(ParameterInfoUtils.getCurrentParameterIndex(list.getNode(), context.getOffset(), GoTypes.COMMA)); }
private MonkeyArguments findArgumentList(PsiFile file, int offset, int parameterStart) { return ParameterInfoUtils.findArgumentList(file, offset, parameterStart, this); }
@Nullable private static PsiPerlCallArgumentsImpl findCallArguments(ParameterInfoContext context) { PsiPerlCallArgumentsImpl callArguments = ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset(), PsiPerlCallArgumentsImpl.class); if (callArguments != null || context.getOffset() == 0) { return callArguments; } callArguments = ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset() - 1, PsiPerlCallArgumentsImpl.class); if (callArguments != null) { return callArguments; } return ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset() + 1, PsiPerlCallArgumentsImpl.class); }
@Override public void updateParameterInfo(@NotNull CypherInvocation o, @NotNull UpdateParameterInfoContext context) { context.setCurrentParameter( ParameterInfoUtils.getCurrentParameterIndex( o.argumentsToken().getNode(), context.getOffset(), CypherTypes.OP_COMMA)); }
@Override public void updateParameterInfo(@NotNull MonkeyArguments monkeyArguments, @NotNull UpdateParameterInfoContext context) { context.setCurrentParameter(ParameterInfoUtils.getCurrentParameterIndex(monkeyArguments.getNode(), context.getOffset(), getActualParameterDelimiterType())); }