return;
}
ISourceLookupDirector director = (ISourceLookupDirector) sourceLocator;
SourcePositionMap positionMap = connectedTargetData.getSourcePositionMap();
SourcePosition userPosition;
{
// First get VM positions.
Script script = jsFunction.getScript();
if (script == null) {
return;
}
TextStreamPosition functionOpenParenPosition = jsFunction.getOpenParenPosition();
if (functionOpenParenPosition == null) {
return;
}
// Convert them to user positions.
userPosition = positionMap.translatePosition(
VmResourceId.forScript(script), functionOpenParenPosition.getLine(),
functionOpenParenPosition.getColumn(), TranslateDirection.VM_TO_USER);
}
Object sourceObject = director.getSourceElement(userPosition.getId());