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
f111d4d4
Commit
f111d4d4
authored
Feb 08, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use API
parent
f88ba6a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
staticAnalysisView.js
src/app/staticanalysis/staticAnalysisView.js
+5
-6
No files found.
src/app/staticanalysis/staticAnalysisView.js
View file @
f111d4d4
...
@@ -3,14 +3,13 @@ var StaticAnalysisRunner = require('./staticAnalysisRunner.js')
...
@@ -3,14 +3,13 @@ var StaticAnalysisRunner = require('./staticAnalysisRunner.js')
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
$
=
require
(
'jquery'
)
var
$
=
require
(
'jquery'
)
function
staticAnalysisView
(
compilerEvent
,
renderer
,
editor
,
offsetToColumnConverter
)
{
function
staticAnalysisView
(
compilerEvent
,
renderer
API
,
contentToolAPI
)
{
this
.
view
=
null
this
.
view
=
null
this
.
renderer
=
renderer
this
.
rendererAPI
=
rendererAPI
this
.
editor
=
editor
this
.
runner
=
new
StaticAnalysisRunner
()
this
.
runner
=
new
StaticAnalysisRunner
()
this
.
offsetToColumnConverter
=
offsetToColumnConverter
this
.
modulesView
=
renderModules
(
this
.
runner
.
modules
())
this
.
modulesView
=
renderModules
(
this
.
runner
.
modules
())
this
.
lastCompilationResult
=
null
this
.
lastCompilationResult
=
null
this
.
contentToolAPI
=
contentToolAPI
var
self
=
this
var
self
=
this
compilerEvent
.
register
(
'compilationFinished'
,
function
(
success
,
data
,
source
)
{
compilerEvent
.
register
(
'compilationFinished'
,
function
(
success
,
data
,
source
)
{
self
.
lastCompilationResult
=
null
self
.
lastCompilationResult
=
null
...
@@ -75,10 +74,10 @@ staticAnalysisView.prototype.run = function () {
...
@@ -75,10 +74,10 @@ staticAnalysisView.prototype.run = function () {
start
:
parseInt
(
split
[
0
]),
start
:
parseInt
(
split
[
0
]),
length
:
parseInt
(
split
[
1
])
length
:
parseInt
(
split
[
1
])
}
}
location
=
self
.
offsetToColumnConverter
.
offsetToLineColumn
(
location
,
file
,
self
.
editor
,
self
.
lastCompilationResult
)
location
=
self
.
contentToolAPI
.
offsetToLineColumn
(
location
,
file
)
location
=
self
.
lastCompilationResult
.
sourceList
[
file
]
+
':'
+
(
location
.
start
.
line
+
1
)
+
':'
+
(
location
.
start
.
column
+
1
)
+
':'
location
=
self
.
lastCompilationResult
.
sourceList
[
file
]
+
':'
+
(
location
.
start
.
line
+
1
)
+
':'
+
(
location
.
start
.
column
+
1
)
+
':'
}
}
self
.
renderer
.
error
(
location
+
' '
+
item
.
warning
,
warningContainer
,
{
type
:
'warning'
,
useSpan
:
true
,
isHTML
:
true
})
self
.
renderer
API
.
renderItem
(
location
+
' '
+
item
.
warning
,
warningContainer
,
{
type
:
'warning'
,
useSpan
:
true
,
isHTML
:
true
})
})
})
})
})
if
(
warningContainer
.
html
()
===
''
)
{
if
(
warningContainer
.
html
()
===
''
)
{
...
...
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