[JS] Support the 'names' field in sourcemaps

This commit is contained in:
Sergej Jaskiewicz
2022-09-29 15:06:42 +02:00
committed by Space Team
parent 227864c6ec
commit 1d0025c3cf
9 changed files with 92 additions and 31 deletions
@@ -18,10 +18,11 @@ package org.jetbrains.kotlin.js.backend.ast
import java.io.Reader
data class JsLocation(
data class JsLocation @JvmOverloads constructor(
override val file: String,
override val startLine: Int,
override val startChar: Int
override val startChar: Int,
override val name: String? = null
) : JsLocationWithSource {
override val fileIdentity: Any?
get() = null
@@ -36,6 +37,11 @@ interface JsLocationWithSource {
val startLine: Int
val startChar: Int
/**
* The original name of the entity in the source code that this JS node was generated from.
*/
val name: String?
/**
* An object to distinguish different files with the same paths
*/