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
00cd1e71
Commit
00cd1e71
authored
Jan 26, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compute reducedTraceBySourceLocation
parent
4dfdb2b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
internalCallTree.js
src/util/internalCallTree.js
+9
-0
No files found.
src/util/internalCallTree.js
View file @
00cd1e71
...
@@ -58,6 +58,7 @@ class InternalCallTree {
...
@@ -58,6 +58,7 @@ class InternalCallTree {
this
.
scopeStarts
=
{}
this
.
scopeStarts
=
{}
this
.
variableDeclarationByFile
=
{}
this
.
variableDeclarationByFile
=
{}
this
.
astWalker
=
new
AstWalker
()
this
.
astWalker
=
new
AstWalker
()
this
.
reducedTraceBySourceLocation
=
[]
}
}
/**
/**
...
@@ -90,6 +91,14 @@ async function buildTree (tree, step, scopeId) {
...
@@ -90,6 +91,14 @@ async function buildTree (tree, step, scopeId) {
var
sourceLocation
var
sourceLocation
try
{
try
{
sourceLocation
=
await
extractSourceLocation
(
tree
,
step
)
sourceLocation
=
await
extractSourceLocation
(
tree
,
step
)
var
previous
=
this
.
reducedTraceBySourceLocation
[
this
.
reducedTraceBySourceLocation
.
length
-
1
]
if
(
previous
&&
(
sourceLocation
.
jump
!==
previous
.
jump
||
sourceLocation
.
start
!==
previous
.
start
||
sourceLocation
.
length
!==
previous
.
length
||
sourceLocation
.
file
!==
previous
.
file
))
{
this
.
reducedTraceBySourceLocation
.
push
(
step
)
}
}
catch
(
e
)
{
}
catch
(
e
)
{
return
{
outStep
:
step
,
error
:
'InternalCallTree - Error resolving source location. '
+
step
+
' '
+
e
.
message
}
return
{
outStep
:
step
,
error
:
'InternalCallTree - Error resolving source location. '
+
step
+
' '
+
e
.
message
}
}
}
...
...
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