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
4383b4a2
Commit
4383b4a2
authored
Sep 26, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming
parent
9b390452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
contextualListener.js
src/app/editor/contextualListener.js
+6
-6
No files found.
src/app/editor/contextualListener.js
View file @
4383b4a2
...
...
@@ -9,7 +9,7 @@ class ContextualListener {
Declarations
:
{},
FlatReferences
:
{}
}
this
.
_
even
ts
=
[]
this
.
_
activeHighligh
ts
=
[]
events
.
compiler
.
register
(
'compilationFinished'
,
(
success
,
data
,
source
)
=>
{
this
.
_stopHighlighting
()
...
...
@@ -67,7 +67,7 @@ class ContextualListener {
var
position
=
this
.
sourceMappingDecoder
.
decode
(
src
)
var
eventId
=
this
.
_api
.
highlight
(
position
,
node
)
if
(
eventId
)
{
this
.
_
even
ts
.
push
({
eventId
,
position
,
fileTarget
:
compilationResult
.
source
.
target
})
this
.
_
activeHighligh
ts
.
push
({
eventId
,
position
,
fileTarget
:
compilationResult
.
source
.
target
})
}
}
...
...
@@ -86,16 +86,16 @@ class ContextualListener {
highlights
(
node
.
attributes
.
referencedDeclaration
)
var
current
=
this
.
_index
[
'FlatReferences'
][
node
.
attributes
.
referencedDeclaration
]
this
.
_highlight
(
current
,
compilationResult
)
}
else
if
(
node
&&
node
.
name
&&
node
.
name
!==
'FunctionDefinition'
&&
node
.
name
!==
'ContractDefinition'
&&
node
.
name
!==
'Block'
)
{
}
else
{
highlights
(
node
.
id
)
}
}
_stopHighlighting
()
{
for
(
var
event
in
this
.
_
even
ts
)
{
this
.
_api
.
stopHighlighting
(
this
.
_
even
ts
[
event
])
for
(
var
event
in
this
.
_
activeHighligh
ts
)
{
this
.
_api
.
stopHighlighting
(
this
.
_
activeHighligh
ts
[
event
])
}
this
.
_
even
ts
=
[]
this
.
_
activeHighligh
ts
=
[]
}
}
...
...
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