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 semtempl ident declarations, some special word use #22693

Merged
merged 4 commits into from
Sep 14, 2023

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Sep 11, 2023

semtempl is refactored to combine the uses of getIdentNode, onlyReplaceParams, isTemplParam and most of replaceIdentBySym into a single getIdentReplaceParams proc. This might fix possible problems with injections of nkAccQuoted.

Some special word comparison in ast and semtempl are also made more efficient.

@metagn metagn changed the title refactor semtempl ident declaration behavior, some special word use refactor semtempl ident declarations, some special word use Sep 11, 2023
@Araq Araq closed this Sep 12, 2023
@Araq Araq reopened this Sep 12, 2023
@Araq Araq merged commit ac1804a into nim-lang:devel Sep 14, 2023
32 checks passed
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from ac1804a

Hint: mm: orc; opt: speed; options: -d:release
169795 lines; 9.117s; 620.285MiB peakmem

narimiran pushed a commit that referenced this pull request Apr 17, 2024
`semtempl` is refactored to combine the uses of `getIdentNode`,
`onlyReplaceParams`, `isTemplParam` and most of `replaceIdentBySym` into
a single `getIdentReplaceParams` proc. This might fix possible problems
with injections of `nkAccQuoted`.

Some special word comparison in `ast` and `semtempl` are also made more
efficient.

(cherry picked from commit ac1804a)
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