get compiler state in analyzer

pull/1398/head
aniket-engg 3 years ago committed by Aniket
parent 6ef0671faf
commit ea8e6e80f9
  1. 5
      apps/remix-ide/src/app/tabs/compileTab/compileTab.js
  2. 3
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -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

@ -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

Loading…
Cancel
Save