[JS] Rename JsLocation.identityObject to fileIdentity
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user