Commit b4957dc2 authored by yann300's avatar yann300

rename sourceLocation currentSourceLocation

parent 5398e18b
......@@ -518,7 +518,7 @@ var run = function () {
var editorAPIDebug = {
statementMarker: null,
fullLineMarker: null,
sourceLocation: (lineColumnPos, location) => {
currentSourceLocation: (lineColumnPos, location) => {
if (this.statementMarker) editor.removeMarker(this.statementMarker)
if (this.fullLineMarker) editor.removeMarker(this.fullLineMarker)
this.statementMarker = null
......
......@@ -20,7 +20,7 @@ function Debugger (id, executionContextEvent, editorEvent, editorAPI, compilerAP
})
this.debugger.event.register('traceUnloaded', this, function () {
self.editorAPI.sourceLocation(null)
self.editorAPI.currentSourceLocation(null)
})
// unload if a file has changed (but not if tabs were switched)
......@@ -34,9 +34,9 @@ function Debugger (id, executionContextEvent, editorEvent, editorAPI, compilerAP
this.debugger.callTree.sourceLocationTracker.getSourceLocationFromInstructionIndex(address, index, self.compilerAPI.lastCompilationResult().data.contracts, function (error, rawLocation) {
if (!error) {
var lineColumnPos = self.contentToolAPI.offsetToLineColumn(rawLocation, rawLocation.file)
self.editorAPI.sourceLocation(lineColumnPos, rawLocation)
self.editorAPI.currentSourceLocation(lineColumnPos, rawLocation)
} else {
self.editorAPI.sourceLocation(null)
self.editorAPI.currentSourceLocation(null)
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment