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

chore: Add some docs to the frontend #903

Merged
merged 11 commits into from
Feb 28, 2023
Merged

chore: Add some docs to the frontend #903

merged 11 commits into from
Feb 28, 2023

Conversation

jfecher
Copy link
Contributor

@jfecher jfecher commented Feb 23, 2023

Related issue(s)

(none)

Description

Summary of changes

Adds some code documentation to the lexer, parser, node interner, and lib.rs files in the frontend.

This is the first part of several PRs to add documentation. I figured they'd be easier to review if I split them up rather than gave a single larger PR.

All changes in this PR are either adding comments or reordering code slightly so that the most important thing in a module is defined first. This later point is to make it easier for readers to find what a module does without having to skip past more unnecessary definitions.

crates/noirc_frontend/src/hir_def/mod.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/hir_def/mod.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/lexer/mod.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/lexer/token.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/lib.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/main.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/parser/parser.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@kevaundray kevaundray left a comment

Choose a reason for hiding this comment

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

More docs are amazing. Gracias!

jfecher and others added 6 commits February 24, 2023 09:30
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
@jfecher
Copy link
Contributor Author

jfecher commented Feb 24, 2023

Looks like the Keyword::iter change is failing the CI

@TomAFrench
Copy link
Member

I'm not sure why tbh as it passed in its own PR. Will take a little look.

jfecher and others added 2 commits February 24, 2023 11:22
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
kevaundray
kevaundray previously approved these changes Feb 24, 2023
Copy link
Contributor

@kevaundray kevaundray left a comment

Choose a reason for hiding this comment

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

Left some comments -- nothing blocking

@jfecher jfecher added this pull request to the merge queue Feb 28, 2023
Merged via the queue into master with commit a92d12e Feb 28, 2023
@jfecher jfecher deleted the jf/docs branch February 28, 2023 16:19
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.

3 participants