use of org.jetbrains.java.debugger.breakpoints.properties.JavaBreakpointProperties in project kotlin by JetBrains.
the class KotlinLineBreakpointType method getContainingMethod.
@Override
@Nullable
public PsiElement getContainingMethod(@NotNull LineBreakpoint<?> breakpoint) {
SourcePosition position = breakpoint.getSourcePosition();
if (position == null)
return null;
JavaBreakpointProperties properties = getProperties(breakpoint);
if (properties instanceof JavaLineBreakpointProperties) {
Integer ordinal = ((JavaLineBreakpointProperties) properties).getLambdaOrdinal();
PsiElement lambda = getLambdaByOrdinal(position, ordinal);
if (lambda != null)
return lambda;
}
return getContainingMethod(position.getElementAt());
}
Aggregations