[JS] Support the 'names' field in sourcemaps
This commit is contained in:
committed by
Space Team
parent
227864c6ec
commit
1d0025c3cf
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user