Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve compiler api #2876

Merged
merged 6 commits into from
Jun 17, 2020
Merged

improve compiler api #2876

merged 6 commits into from
Jun 17, 2020

Conversation

yann300
Copy link
Collaborator

@yann300 yann300 commented Jun 3, 2020

fix https://github.com/ethereum/remix-ide/issues/2712
partly_fix https://github.com/ethereum/remix-ide/issues/2854

  • make run module to listen on yulp plugin
  • add compileWithParameters and setCompilerConfig plugin API

@@ -32,6 +32,10 @@ module.exports = class CompilerArtefacts extends Plugin {
this.on('lexon', 'compilationFinished', (file, source, languageVersion, data) => {
this.compilersArtefacts['__last'] = new CompilerAbstract(languageVersion, data, source)
})

this.on('yupl', 'compilationFinished', (file, source, languageVersion, data) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a typo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.compilerContainer.setLanguage(settings.language)
this.compilerContainer.setEvmVersion(settings.evmVersion)
this.compilerContainer.setOptimize(settings.optimize)
this.compilerContainer.setVersion(settings.version)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sould maybe compilerContainer has setSettings?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sure, the thing is that these methods were already existing before

@yann300 yann300 requested a review from LianaHus June 10, 2020 15:03
@yann300 yann300 merged commit 64b5a09 into master Jun 17, 2020
@yann300 yann300 deleted the compilerAPI branch June 17, 2020 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Compiler plugin API
2 participants