Skip to content

Conversation

@am11
Copy link
Member

@am11 am11 commented Jan 6, 2026

Implement several features for the C# ilasm replacement:

  • Add diagnostic reporting infrastructure with 20 diagnostic IDs and helper methods (ReportError, ReportWarning, ReportDiagnostic)

  • Add escape sequence parsing in StringHelpers.ParseQuotedString supporting \t, \n, \r, \, ", octal sequences, etc.

  • Add typedef support: store and resolve type/member/custom attribute aliases via .typedef declarations

  • Fix IndexOutOfRangeException when field has no marshal clause

  • Add tests for typedefs, escape sequences, and diagnostics

Implement several features for the C# ilasm replacement:

- Add diagnostic reporting infrastructure with 20 diagnostic IDs
  and helper methods (ReportError, ReportWarning, ReportDiagnostic)

- Add escape sequence parsing in StringHelpers.ParseQuotedString
  supporting \t, \n, \r, \\, \", octal sequences, etc.

- Add typedef support: store and resolve type/member/custom
  attribute aliases via .typedef declarations

- Fix IndexOutOfRangeException when field has no marshal clause

- Add tests for typedefs, escape sequences, and diagnostics
@am11 am11 added area-ILTools-coreclr community-contribution Indicates that the PR has been added by a community member labels Jan 6, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas requested a review from jkoritzinsky January 6, 2026 17:56
Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

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

Looking good so far! Can we add tests for more of the error diagnostics?

@jkoritzinsky jkoritzinsky enabled auto-merge (squash) January 6, 2026 20:19
@jkoritzinsky jkoritzinsky merged commit 6347a04 into dotnet:main Jan 7, 2026
61 checks passed
@am11 am11 deleted the feature/managed-ilasm branch January 7, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ILTools-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants