mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-11678 JavaScript debug: step into and step over do not change the line
This commit is contained in:
@@ -42,10 +42,16 @@ public class SourceMap {
|
||||
return sourceResolver.canonicalizedSources;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public MappingList getMappings() {
|
||||
return mappings;
|
||||
}
|
||||
|
||||
public int getSourceLineByRawLocation(int rawLine, int rawColumn) {
|
||||
MappingEntry entry = getMappings().get(rawLine, rawColumn);
|
||||
return entry == null ? -1: entry.getSourceLine();
|
||||
}
|
||||
|
||||
public boolean processMappingsInLine(@NotNull List<Url> sourceUrls,
|
||||
int sourceLine,
|
||||
@NotNull Processor<MappingEntry> mappingProcessor,
|
||||
|
||||
+2
-2
@@ -123,11 +123,11 @@ public class SourceResolver {
|
||||
}
|
||||
|
||||
public interface Resolver {
|
||||
int resolve(@NotNull VirtualFile sourceFile, @NotNull ObjectIntHashMap<Url> map);
|
||||
int resolve(@Nullable VirtualFile sourceFile, @NotNull ObjectIntHashMap<Url> map);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public MappingList findMappings(@NotNull VirtualFile sourceFile, @NotNull SourceMap sourceMap, @NotNull Resolver resolver) {
|
||||
public MappingList findMappings(@Nullable VirtualFile sourceFile, @NotNull SourceMap sourceMap, @NotNull Resolver resolver) {
|
||||
int index = resolver.resolve(sourceFile, canonicalizedSourcesMap);
|
||||
return index < 0 ? null : sourceMap.sourceIndexToMappings[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user