cmdline src updated

pull/697/head
aniket-engg 4 years ago committed by Aniket
parent ed2dd996ac
commit 02e12cdcec
  1. 2
      libs/remix-debug/bin/rdb
  2. 25
      libs/remix-debug/src/cmdline/index.ts
  3. 10
      libs/remix-debug/tsconfig.lib.json

@ -25,7 +25,7 @@ program
.option('--node [url]', 'node to connect to')
.parse(process.argv)
const CmdLine = require('../src/cmdline/index.js')
const CmdLine = require('../src/cmdline/index')
const solc = require('solc')
const fs = require('fs')

@ -1,11 +1,22 @@
const Web3 = require('web3')
import Web3 from 'web3'
const Debugger = require('../debugger/debugger.js')
import EventManager from 'events'
import { EventEmitter } from 'events'
class CmdLine {
export class CmdLine {
events
lineColumnPos
rawLocation
web3
compilation
debugger
filename
txHash
solidityState
solidityLocals
constructor () {
this.events = new EventManager()
this.events = new EventEmitter()
this.lineColumnPos = null
this.rawLocation = null
}
@ -17,8 +28,8 @@ class CmdLine {
loadCompilationData (inputJson, outputJson) {
const data = {}
data.data = outputJson
data.source = { sources: inputJson.sources }
data['data'] = outputJson
data['source'] = { sources: inputJson.sources }
this.loadCompilationResult(data)
}
@ -195,5 +206,3 @@ class CmdLine {
console.dir(this.solidityState)
}
}
module.exports = CmdLine

@ -8,10 +8,10 @@
"rootDir": "./",
"types": ["node"]
},
"exclude": ["**/*.spec.js"],
"include": [
"src/**/*.js",
"./index.js"
]
"exclude": [
"**/*.spec.js",
"test/"
],
"include": ["**/*.ts"]
}
Loading…
Cancel
Save