make buildTree private

pull/7/head
yann300 8 years ago
parent 8e5b7ec0e3
commit 7b779306a7
  1. 14
      src/util/internalCallTree.js

@ -14,19 +14,15 @@ 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) if (!this.solidityProxy.loaded()) {
console.log('compilation result not loaded. Cannot build internal call tree')
} else {
buildTree(this, 0, '', trace)
}
this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts]) this.event.trigger('callTreeReady', [this.scopes, this.scopeStarts])
}) })
} }
buildTree (trace) {
if (!this.solidityProxy.loaded()) {
console.log('compilation result not loaded. Cannot build internal call tree')
} else {
buildTree(this, 0, '', trace)
}
}
reset () { reset () {
this.scopes = {} this.scopes = {}
this.scopeStarts = {} this.scopeStarts = {}

Loading…
Cancel
Save