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

Refactor syntax-gen. #6464

Open
wants to merge 1 commit into
base: spr/main/3f0039b9
Choose a base branch
from
Open

Refactor syntax-gen. #6464

wants to merge 1 commit into from

Conversation

orizi
Copy link
Collaborator

@orizi orizi commented Oct 7, 2024

@ilyalesokhin-starkware
Copy link
Contributor

crates/cairo-lang-syntax-codegen/src/generator.rs line 117 at r1 (raw file):

}

fn name_tokens<'a, 'b>(

Do you need different lifetimes?

Code quote:

'a, 'b

@ilyalesokhin-starkware
Copy link
Contributor

crates/cairo-lang-syntax-codegen/src/generator.rs line 119 at r1 (raw file):

fn name_tokens<'a, 'b>(
    spec: &'a [Node],
    predicate: impl Fn(&NodeKind) -> bool,

document the purpose of the predicate?

Code quote:

    predicate: impl Fn(&NodeKind) -> bool,

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @gilbens-starkware and @orizi)

commit-id:b1bb85ba
Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @gilbens-starkware and @ilyalesokhin-starkware)


crates/cairo-lang-syntax-codegen/src/generator.rs line 117 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

Do you need different lifetimes?

Done.


crates/cairo-lang-syntax-codegen/src/generator.rs line 119 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

document the purpose of the predicate?

Done.

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.

2 participants