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
b8bcfeff
Commit
b8bcfeff
authored
Feb 20, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createReducedTrace
parent
00cc6a23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
internalCallTree.js
src/util/internalCallTree.js
+5
-1
No files found.
src/util/internalCallTree.js
View file @
b8bcfeff
...
@@ -36,7 +36,7 @@ class InternalCallTree {
...
@@ -36,7 +36,7 @@ class InternalCallTree {
this
.
event
.
trigger
(
'callTreeBuildFailed'
,
[
result
.
error
])
this
.
event
.
trigger
(
'callTreeBuildFailed'
,
[
result
.
error
])
}
else
{
}
else
{
console
.
log
(
'ready'
)
console
.
log
(
'ready'
)
this
.
reducedTrace
.
push
(
traceManager
.
trace
.
length
-
1
)
createReducedTrace
(
this
,
traceManager
.
trace
.
length
-
1
)
this
.
event
.
trigger
(
'callTreeReady'
,
[
this
.
scopes
,
this
.
scopeStarts
])
this
.
event
.
trigger
(
'callTreeReady'
,
[
this
.
scopes
,
this
.
scopeStarts
])
}
}
})
})
...
@@ -130,6 +130,10 @@ async function buildTree (tree, step, scopeId) {
...
@@ -130,6 +130,10 @@ async function buildTree (tree, step, scopeId) {
return
{
outStep
:
step
}
return
{
outStep
:
step
}
}
}
function
createReducedTrace
(
tree
,
index
)
{
tree
.
reducedTrace
.
push
(
index
)
}
function
includeVariableDeclaration
(
tree
,
step
,
sourceLocation
,
scopeId
)
{
function
includeVariableDeclaration
(
tree
,
step
,
sourceLocation
,
scopeId
)
{
var
variableDeclaration
=
resolveVariableDeclaration
(
tree
,
step
,
sourceLocation
)
var
variableDeclaration
=
resolveVariableDeclaration
(
tree
,
step
,
sourceLocation
)
if
(
variableDeclaration
&&
!
tree
.
scopes
[
scopeId
].
locals
[
variableDeclaration
.
attributes
.
name
])
{
if
(
variableDeclaration
&&
!
tree
.
scopes
[
scopeId
].
locals
[
variableDeclaration
.
attributes
.
name
])
{
...
...
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