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
515b0079
Commit
515b0079
authored
Feb 27, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
function rename
parent
416cd3bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
internalCallTree.js
src/util/internalCallTree.js
+3
-3
No files found.
src/util/internalCallTree.js
View file @
515b0079
...
@@ -106,9 +106,9 @@ class InternalCallTree {
...
@@ -106,9 +106,9 @@ class InternalCallTree {
async
function
buildTree
(
tree
,
step
,
scopeId
)
{
async
function
buildTree
(
tree
,
step
,
scopeId
)
{
let
subScope
=
1
let
subScope
=
1
tree
.
scopeStarts
[
step
]
=
scopeId
tree
.
scopeStarts
[
step
]
=
scopeId
tree
.
scopes
[
scopeId
]
=
{
firstStep
:
step
,
locals
:
{}
}
tree
.
scopes
[
scopeId
]
=
{
firstStep
:
step
,
locals
:
{}
}
function
c
heckDepth
(
step
,
trace
)
{
function
c
allDepthChange
(
step
,
trace
)
{
if
(
step
+
1
<
trace
.
length
)
{
if
(
step
+
1
<
trace
.
length
)
{
return
trace
[
step
].
depth
!==
trace
[
step
+
1
].
depth
return
trace
[
step
].
depth
!==
trace
[
step
+
1
].
depth
}
}
...
@@ -148,7 +148,7 @@ async function buildTree (tree, step, scopeId) {
...
@@ -148,7 +148,7 @@ async function buildTree (tree, step, scopeId) {
}
catch
(
e
)
{
}
catch
(
e
)
{
return
{
outStep
:
step
,
error
:
'InternalCallTree - '
+
e
.
message
}
return
{
outStep
:
step
,
error
:
'InternalCallTree - '
+
e
.
message
}
}
}
}
else
if
(
sourceLocation
.
jump
===
'o'
||
c
heckDepth
(
step
,
tree
.
traceManager
.
trace
))
{
}
else
if
(
sourceLocation
.
jump
===
'o'
||
c
allDepthChange
(
step
,
tree
.
traceManager
.
trace
))
{
tree
.
scopes
[
scopeId
].
lastStep
=
step
tree
.
scopes
[
scopeId
].
lastStep
=
step
return
{
outStep
:
step
+
1
}
return
{
outStep
:
step
+
1
}
}
else
{
}
else
{
...
...
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