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

Add spans via metadata to IR. #808

Merged
merged 4 commits into from
Feb 22, 2022
Merged

Add spans via metadata to IR. #808

merged 4 commits into from
Feb 22, 2022

Commits on Feb 17, 2022

  1. Add metadata to the IR.

    Two types are supported now:
    - a `filepath` referencing a Sway file.
    - a `span` which references a `filepath` and has start and end indices.
    otrho committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    cb2e30f View commit details
    Browse the repository at this point in the history
  2. Use the IR metadata to manage spans.

    When compiling from AST to IR they are generated, and when compiling
    from IR to ASM they are referenced.
    otrho committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    df89013 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4a81403 View commit details
    Browse the repository at this point in the history
  4. Address clippy warnings.

    otrho committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    b83f156 View commit details
    Browse the repository at this point in the history