Commit b4957dc2 authored by yann300's avatar yann300

rename sourceLocation currentSourceLocation

parent 5398e18b
...@@ -518,7 +518,7 @@ var run = function () { ...@@ -518,7 +518,7 @@ var run = function () {
var editorAPIDebug = { var editorAPIDebug = {
statementMarker: null, statementMarker: null,
fullLineMarker: null, fullLineMarker: null,
sourceLocation: (lineColumnPos, location) => { currentSourceLocation: (lineColumnPos, location) => {
if (this.statementMarker) editor.removeMarker(this.statementMarker) if (this.statementMarker) editor.removeMarker(this.statementMarker)
if (this.fullLineMarker) editor.removeMarker(this.fullLineMarker) if (this.fullLineMarker) editor.removeMarker(this.fullLineMarker)
this.statementMarker = null this.statementMarker = null
......
...@@ -20,7 +20,7 @@ function Debugger (id, executionContextEvent, editorEvent, editorAPI, compilerAP ...@@ -20,7 +20,7 @@ function Debugger (id, executionContextEvent, editorEvent, editorAPI, compilerAP
}) })
this.debugger.event.register('traceUnloaded', this, function () { 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) // unload if a file has changed (but not if tabs were switched)
...@@ -34,9 +34,9 @@ function Debugger (id, executionContextEvent, editorEvent, editorAPI, compilerAP ...@@ -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) { this.debugger.callTree.sourceLocationTracker.getSourceLocationFromInstructionIndex(address, index, self.compilerAPI.lastCompilationResult().data.contracts, function (error, rawLocation) {
if (!error) { if (!error) {
var lineColumnPos = self.contentToolAPI.offsetToLineColumn(rawLocation, rawLocation.file) var lineColumnPos = self.contentToolAPI.offsetToLineColumn(rawLocation, rawLocation.file)
self.editorAPI.sourceLocation(lineColumnPos, rawLocation) self.editorAPI.currentSourceLocation(lineColumnPos, rawLocation)
} else { } 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