|
|
@ -63,8 +63,8 @@ class ContextualListener { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_highlight (node, compilationResult) { |
|
|
|
_highlight (node, compilationResult) { |
|
|
|
var src = node.src |
|
|
|
if (!node) return |
|
|
|
var position = this.sourceMappingDecoder.decode(src) |
|
|
|
var position = this.sourceMappingDecoder.decode(node.src) |
|
|
|
var eventId = this._api.highlight(position, node) |
|
|
|
var eventId = this._api.highlight(position, node) |
|
|
|
if (eventId) { |
|
|
|
if (eventId) { |
|
|
|
this._activeHighlights.push({ eventId, position, fileTarget: compilationResult.source.target }) |
|
|
|
this._activeHighlights.push({ eventId, position, fileTarget: compilationResult.source.target }) |
|
|
|