Commit 9c57922a authored by yann300's avatar yann300

rename includeLocalsVariables -> includeLocalVariables

parent 7b779306
...@@ -30,7 +30,7 @@ function Ethdebugger () { ...@@ -30,7 +30,7 @@ function Ethdebugger () {
this.codeManager = new CodeManager(this.traceManager) this.codeManager = new CodeManager(this.traceManager)
this.solidityProxy = new SolidityProxy(this.traceManager, this.codeManager) this.solidityProxy = new SolidityProxy(this.traceManager, this.codeManager)
var callTree = new InternalCallTree(this.event, this.traceManager, this.solidityProxy, this.codeManager, { includeLocalsVariables: true }) var callTree = new InternalCallTree(this.event, this.traceManager, this.solidityProxy, this.codeManager, { includeLocalVariables: true })
this.event.register('indexChanged', this, function (index) { this.event.register('indexChanged', this, function (index) {
self.codeManager.resolveStep(index, self.tx) self.codeManager.resolveStep(index, self.tx)
......
...@@ -7,7 +7,7 @@ var util = require('../helpers/util') ...@@ -7,7 +7,7 @@ var util = require('../helpers/util')
class InternalCallTree { class InternalCallTree {
constructor (debuggerEvent, traceManager, solidityProxy, codeManager, opts) { constructor (debuggerEvent, traceManager, solidityProxy, codeManager, opts) {
this.includeLocalsVariables = opts.includeLocalsVariables this.includeLocalVariables = opts.includeLocalVariables
this.event = new EventManager() this.event = new EventManager()
this.solidityProxy = solidityProxy this.solidityProxy = solidityProxy
this.traceManager = traceManager this.traceManager = traceManager
...@@ -68,7 +68,7 @@ function buildTree (tree, step, scopeId, trace) { ...@@ -68,7 +68,7 @@ function buildTree (tree, step, scopeId, trace) {
tree.scopes[scopeId].lastStep = step tree.scopes[scopeId].lastStep = step
return step + 1 return step + 1
} else { } else {
if (tree.includeLocalsVariables) { if (tree.includeLocalVariables) {
var variableDeclaration = resolveVariableDeclaration(tree, step, sourceLocation) var variableDeclaration = resolveVariableDeclaration(tree, step, sourceLocation)
if (variableDeclaration) { if (variableDeclaration) {
if (!tree.scopes[scopeId].locals) { if (!tree.scopes[scopeId].locals) {
......
...@@ -38,7 +38,7 @@ tape('solidity', function (t) { ...@@ -38,7 +38,7 @@ tape('solidity', function (t) {
var solidityProxy = new SolidityProxy(traceManager, codeManager) var solidityProxy = new SolidityProxy(traceManager, codeManager)
solidityProxy.reset(output) solidityProxy.reset(output)
var debuggerEvent = new EventManager() var debuggerEvent = new EventManager()
var callTree = new InternalCallTree(debuggerEvent, traceManager, solidityProxy, codeManager, { includeLocalsVariables: true }) var callTree = new InternalCallTree(debuggerEvent, traceManager, solidityProxy, codeManager, { includeLocalVariables: true })
callTree.event.register('callTreeReady', (scopes, scopeStarts) => { callTree.event.register('callTreeReady', (scopes, scopeStarts) => {
st.equals(scopeStarts[0], '') st.equals(scopeStarts[0], '')
st.equals(scopeStarts[97], '1') st.equals(scopeStarts[97], '1')
......
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