[JS] Rename JsLocation.identityObject to fileIdentity

This commit is contained in:
Sergej Jaskiewicz
2022-09-02 18:37:39 +02:00
committed by Space
parent b9cac8a4ca
commit 7874b1fcad
5 changed files with 12 additions and 8 deletions
@@ -122,11 +122,11 @@ public class SourceMap3Builder implements SourceMapBuilder {
@Override
public void addMapping(
@NotNull String source, @Nullable Object identityObject, @NotNull Supplier<Reader> sourceContent,
@NotNull String source, @Nullable Object sourceFileIdentity, @NotNull Supplier<Reader> sourceContent,
int sourceLine, int sourceColumn
) {
source = source.replace(File.separatorChar, '/');
int sourceIndex = getSourceIndex(source, identityObject, sourceContent);
int sourceIndex = getSourceIndex(source, sourceFileIdentity, sourceContent);
if (!currentMappingIsEmpty && previousSourceIndex == sourceIndex && previousSourceLine == sourceLine &&
previousSourceColumn == sourceColumn) {
@@ -81,7 +81,7 @@ class SourceMapBuilderConsumer(
}
mappingConsumer.addMapping(
path,
sourceInfo.identityObject,
sourceInfo.fileIdentity,
contentSupplier,
sourceInfo.startLine,
sourceInfo.startChar
@@ -15,7 +15,7 @@ public interface SourceMapMappingConsumer {
void newLine();
void addMapping(
@NotNull String source, @Nullable Object sourceIdentity, @NotNull Supplier<Reader> sourceSupplier,
@NotNull String source, @Nullable Object fileIdentity, @NotNull Supplier<Reader> sourceSupplier,
int sourceLine, int sourceColumn
);