Repository navigation
Allow implementation keywords as managed ilasm identifiers - #136735
Merged
jkoritzinsky merged 1 commit intoOct 31, 2026
Merged
jkoritzinsky merged 1 commit into
jkoritzinsky merged 1 commit into
Conversation
Reuse the identifier grammar for dotted name parts and cover all implementation keywords in method declarations, parameters, and calls. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib |
jkotas
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Managed ILAssembler already accepts method implementation keywords in its
idrule, butdottedNamePartused a narrower token list. Consequently, unquoted method names such asasyncandruntimewere rejected in declarations and calls.Reuse
idfor dotted name parts, retaining dotted-name tokens and the existingvolatilespecial case. Regenerate the parser and add a 16-case theory covering every implementation keyword as a method name, parameter name, and call target, checking emitted metadata and IL bytes.I found this case had regressed at some point when trying to run some of the src/tests/ilasm tests with managed ilasm.
Validation (Windows x64)
.\build.cmd tools.ilasm -rc Checked -pack -testwith the regression tests but without the fix: failed with all 16 new cases failing (5,716 passed, 16 failed, 3 skipped)..\dotnet.cmd build src\tools\ilasm\src\ILAssembler\gen: passed; regenerated output matches the transferred parser apart from generated trailing whitespace..\build.cmd tools.ilasm -rc Checked -pack -testwith the final fix: passed; 5,732 passed, 0 failed, 3 skipped. Native executable generation and package creation also succeeded. The command reports Debug tools configuration despite the-rc Checkedargument.Note
This pull request was prepared with GitHub Copilot.