This commit is contained in:
Vladimir Krivosheev
2016-03-24 17:27:12 +01:00
parent 0fcf389796
commit 7726921d07
2 changed files with 7 additions and 14 deletions
@@ -284,32 +284,26 @@ private fun isSeparator(charIterator: CharSequenceIterator): Boolean {
/**
* Not mapped to a section in the original source.
*/
private open class UnmappedEntry internal constructor(private val line: Int, private val column: Int) : MappingEntry() {
override fun getGeneratedColumn() = column
private open class UnmappedEntry(line: Int, column: Int) : MappingEntry {
override val generatedColumn = column
override fun getGeneratedLine() = line
override val generatedLine = line
override fun getSourceLine() = UNMAPPED
override val sourceLine = UNMAPPED
override fun getSourceColumn() = UNMAPPED
override val sourceColumn = UNMAPPED
}
/**
* Mapped to a section in the original source.
*/
private open class UnnamedEntry internal constructor(line: Int, column: Int, private val source: Int, private val sourceLine: Int, private val sourceColumn: Int) : UnmappedEntry(line, column) {
override fun getSource() = source
override fun getSourceLine() = sourceLine
override fun getSourceColumn() = sourceColumn
private open class UnnamedEntry(line: Int, column: Int, override val source: Int, override val sourceLine: Int, override val sourceColumn: Int) : UnmappedEntry(line, column) {
}
/**
* Mapped to a section in the original source, and is associated with a name.
*/
private class NamedEntry(private val name: String, line: Int, column: Int, source: Int, sourceLine: Int, sourceColumn: Int) : UnnamedEntry(line, column, source, sourceLine, sourceColumn) {
override fun getName() = name
private class NamedEntry(override val name: String, line: Int, column: Int, source: Int, sourceLine: Int, sourceColumn: Int) : UnnamedEntry(line, column, source, sourceLine, sourceColumn) {
}
// java CharacterIterator is ugly, next() impl, so, we reinvent
@@ -556,7 +556,6 @@ nodejs.debugger.use.jb.support=true
js.debugger.name.mappings.by.source.code=false
js.debugger.v8.log=
js.debugger.wip.log=
js.debugger.member.filter.prefer.vm.source=false
js.index.node.submodules=false