Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
8ac56711
Commit
8ac56711
authored
Sep 07, 2020
by
aniket-engg
Committed by
Aniket
Sep 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all tests fixed
parent
155611c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
internalCallTree.js
libs/remix-debug/src/solidity-decoder/internalCallTree.js
+0
-1
astWalker.js
libs/remix-debug/src/source/astWalker.js
+6
-3
int.js
libs/remix-debug/test/decoder/localsTests/int.js
+0
-1
No files found.
libs/remix-debug/src/solidity-decoder/internalCallTree.js
View file @
8ac56711
...
@@ -335,7 +335,6 @@ function extractFunctionDefinitions (ast, astWalker) {
...
@@ -335,7 +335,6 @@ function extractFunctionDefinitions (ast, astWalker) {
function
addParams
(
parameterList
,
tree
,
scopeId
,
states
,
contractName
,
sourceLocation
,
stackLength
,
stackPosition
,
dir
)
{
function
addParams
(
parameterList
,
tree
,
scopeId
,
states
,
contractName
,
sourceLocation
,
stackLength
,
stackPosition
,
dir
)
{
let
params
=
[]
let
params
=
[]
for
(
let
inputParam
in
parameterList
.
parameters
)
{
for
(
let
inputParam
in
parameterList
.
parameters
)
{
console
.
log
(
'parameterList.parameters------>'
,
parameterList
.
parameters
)
const
param
=
parameterList
.
parameters
[
inputParam
]
const
param
=
parameterList
.
parameters
[
inputParam
]
const
stackDepth
=
stackLength
+
(
dir
*
stackPosition
)
const
stackDepth
=
stackLength
+
(
dir
*
stackPosition
)
if
(
stackDepth
>=
0
)
{
if
(
stackDepth
>=
0
)
{
...
...
libs/remix-debug/src/source/astWalker.js
View file @
8ac56711
...
@@ -21,9 +21,12 @@ AstWalker.prototype.walk = function (ast, callback) {
...
@@ -21,9 +21,12 @@ AstWalker.prototype.walk = function (ast, callback) {
if
(
!
(
'*'
in
callback
))
{
if
(
!
(
'*'
in
callback
))
{
callback
[
'*'
]
=
function
()
{
return
true
}
callback
[
'*'
]
=
function
()
{
return
true
}
}
}
if
(
manageCallBack
(
ast
,
callback
)
&&
ast
.
nodes
&&
ast
.
nodes
.
length
>
0
)
{
const
nodes
=
ast
.
nodes
||
(
ast
.
body
&&
ast
.
body
.
statements
)
||
ast
.
declarations
for
(
let
k
in
ast
.
nodes
)
{
if
(
ast
.
body
&&
ast
.
initializationExpression
)
// 'for' loop handling
const
child
=
ast
.
nodes
[
k
]
nodes
.
push
(
ast
.
initializationExpression
)
if
(
manageCallBack
(
ast
,
callback
)
&&
nodes
&&
nodes
.
length
>
0
)
{
for
(
let
k
in
nodes
)
{
const
child
=
nodes
[
k
]
this
.
walk
(
child
,
callback
)
this
.
walk
(
child
,
callback
)
}
}
}
}
...
...
libs/remix-debug/test/decoder/localsTests/int.js
View file @
8ac56711
...
@@ -65,7 +65,6 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu
...
@@ -65,7 +65,6 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu
st
.
equals
(
scopeStarts
[
136
],
'3'
)
st
.
equals
(
scopeStarts
[
136
],
'3'
)
st
.
equals
(
scopeStarts
[
153
],
'4'
)
st
.
equals
(
scopeStarts
[
153
],
'4'
)
st
.
equals
(
scopeStarts
[
166
],
'4.1'
)
st
.
equals
(
scopeStarts
[
166
],
'4.1'
)
console
.
log
(
'----------->'
,
scopes
[
''
])
st
.
equals
(
scopes
[
''
].
locals
[
'ui8'
].
type
.
typeName
,
'uint8'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui8'
].
type
.
typeName
,
'uint8'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui16'
].
type
.
typeName
,
'uint16'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui16'
].
type
.
typeName
,
'uint16'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui32'
].
type
.
typeName
,
'uint32'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui32'
].
type
.
typeName
,
'uint32'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment