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
ea8e6e80
Commit
ea8e6e80
authored
Jun 16, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get compiler state in analyzer
parent
6ef0671f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
compileTab.js
apps/remix-ide/src/app/tabs/compileTab/compileTab.js
+5
-0
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+2
-1
No files found.
apps/remix-ide/src/app/tabs/compileTab/compileTab.js
View file @
ea8e6e80
...
...
@@ -7,6 +7,7 @@ const profile = {
name
:
'solidity-logic'
,
displayName
:
'Solidity compiler logic'
,
description
:
'Compile solidity contracts - Logic'
,
methods
:
[
'getCompilerState'
],
version
:
packageJson
.
version
}
...
...
@@ -68,6 +69,10 @@ class CompileTab extends Plugin {
this
.
compiler
.
set
(
'language'
,
lang
)
}
getCompilerState
(
lang
)
{
return
this
.
compiler
.
state
}
/**
* Compile a specific file of the file manager
* @param {string} target the path to the file to compile
...
...
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
ea8e6e80
...
...
@@ -108,7 +108,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
if
(
lastCompilationResult
&&
categoryIndex
.
length
>
0
)
{
let
warningCount
=
0
const
warningMessage
=
[]
props
.
analysisModule
.
call
(
'slither'
,
'analyse'
,
state
.
file
).
then
(
console
.
log
)
props
.
analysisModule
.
call
(
'solidity-logic'
,
'getCompilerState'
).
then
(
console
.
log
)
// props.analysisModule.call('slither', 'analyse', state.file).then(console.log)
runner
.
run
(
lastCompilationResult
,
categoryIndex
,
results
=>
{
results
.
map
((
result
)
=>
{
let
moduleName
...
...
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