SdkParams sdkParams = vmResourceRef.accept(new VmResourceRef.Visitor<SdkParams>() {
@Override
public SdkParams visitRegExpBased(ScriptNamePattern scriptNamePattern) {
// TODO: support source mapping perhaps.
ScriptRegExpSupport scriptRegExpSupport =
javascriptVm.getBreakpointTypeExtension().getScriptRegExpSupport();
if (scriptRegExpSupport == null) {
// TODO: check earlier in UI.
throw new RuntimeException("Script RegExp is not supported by VM");
}
final Breakpoint.Target targetValue =
scriptRegExpSupport.createTarget(scriptNamePattern.getJavaScriptRegExp());
return new SdkParams(targetValue, line, column);
}
@Override
public SdkParams visitResourceId(VmResourceId resourceId) {