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

pragma extraction API #806

Open
OmarTawfik opened this issue Feb 13, 2024 · 0 comments
Open

pragma extraction API #806

OmarTawfik opened this issue Feb 13, 2024 · 0 comments
Assignees

Comments

@OmarTawfik
Copy link
Collaborator

OmarTawfik commented Feb 13, 2024

  • Useful not only for end users, but can be used by both VS Code extension, and solidity-analyzer as well, as it will be able to handle/skip partial tokens correctly as the user is typing (for example pragma solidity ">0.<cursor>).
  • The API should abstract over the various VST nodes/representations, and emit an analyzer type.
  • Expose the same API through TypeScript.
let analysis = language.analyze_pragmas(root_node);

let result: bool = analysis.matches(version);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant