Commit 7b779306 authored by yann300's avatar yann300

make buildTree private

parent 8e5b7ec0
...@@ -14,17 +14,13 @@ class InternalCallTree { ...@@ -14,17 +14,13 @@ class InternalCallTree {
this.sourceLocationTracker = new SourceLocationTracker(codeManager) this.sourceLocationTracker = new SourceLocationTracker(codeManager)
debuggerEvent.register('newTraceLoaded', (trace) => { debuggerEvent.register('newTraceLoaded', (trace) => {
this.reset() this.reset()
this.buildTree(trace)
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts])
})
}
buildTree (trace) {
if (!this.solidityProxy.loaded()) { if (!this.solidityProxy.loaded()) {
console.log('compilation result not loaded. Cannot build internal call tree') console.log('compilation result not loaded. Cannot build internal call tree')
} else { } else {
buildTree(this, 0, '', trace) buildTree(this, 0, '', trace)
} }
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts])
})
} }
reset () { reset () {
......
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