Repository navigation
Leave public out of .api files - #100
Merged
Merged
Conversation
Everything in a .api file is visible from outside, so public said nothing on nearly every line: declarations now start with protected or protected internal when they are, and with nothing when they are public. The parser still reads a public that is written. A member line that starts with delegate* is a function pointer field, not a delegate declaration; the samples gain one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Everything in a
.apifile is visible from outside, sopublicwas noise on nearly every line. Declarations now carry an access modifier only when it says something:protectedorprotected internal. The parser still accepts a writtenpublic, and treats a missing modifier as public.One fix rides along. With
publicgone, a member line can start withdelegate*, a function pointer field, and the parser would have taken that for a delegate declaration. The samples now include a function pointer field. Everything else in the diff is regenerated output: the snapshots, the committedapi/, and the doc examples.Checks:
mise run cipasses locally, includingverifyapiagainst the regeneratedapi/. The Roslyn oracle and the round-trip tests pass on the new format: 75 library tests and 630 tool tests.🤖 Generated with Claude Code