rename includeLocalsVariables -> includeLocalVariables

pull/7/head
yann300 8 years ago
parent 7f436a0d13
commit 3efb79b545
  1. 2
      src/ui/Ethdebugger.js
  2. 4
      src/util/internalCallTree.js
  3. 2
      test/solidity/localDecoder.js

@ -30,7 +30,7 @@ function Ethdebugger () {
this.codeManager = new CodeManager(this.traceManager)
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) {
self.codeManager.resolveStep(index, self.tx)

@ -7,7 +7,7 @@ var util = require('../helpers/util')
class InternalCallTree {
constructor (debuggerEvent, traceManager, solidityProxy, codeManager, opts) {
this.includeLocalsVariables = opts.includeLocalsVariables
this.includeLocalVariables = opts.includeLocalVariables
this.event = new EventManager()
this.solidityProxy = solidityProxy
this.traceManager = traceManager
@ -68,7 +68,7 @@ function buildTree (tree, step, scopeId, trace) {
tree.scopes[scopeId].lastStep = step
return step + 1
} else {
if (tree.includeLocalsVariables) {
if (tree.includeLocalVariables) {
var variableDeclaration = resolveVariableDeclaration(tree, step, sourceLocation)
if (variableDeclaration) {
if (!tree.scopes[scopeId].locals) {

@ -38,7 +38,7 @@ tape('solidity', function (t) {
var solidityProxy = new SolidityProxy(traceManager, codeManager)
solidityProxy.reset(output)
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) => {
st.equals(scopeStarts[0], '')
st.equals(scopeStarts[97], '1')

Loading…
Cancel
Save