-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add XML documentation for GlobalStatementSyntax #80697
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: CyrusNajmabadi <[email protected]>
Co-authored-by: CyrusNajmabadi <[email protected]>
<Node Name="GlobalStatementSyntax" Base="MemberDeclarationSyntax"> | ||
<Kind Name="GlobalStatement"/> | ||
<TypeComment> | ||
<summary>Represents a global statement in a compilation unit. Global statements are top-level statements that can appear in a C# program or script. In regular C# programs (C# 9.0+), they are synthesized into a Main method. In C# scripts, they are executed as top-level code. See https://github.com/dotnet/csharplang/blob/main/proposals/top-level-statements.md for more information.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot consider mentioning that each statement will be wrapped in a GlobalStatementSyntax
at the top level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit e0a8c9a. Added clarification that each statement at the top level of a compilation unit is wrapped in a GlobalStatementSyntax node.
Co-authored-by: CyrusNajmabadi <[email protected]>
@dotnet/roslyn-compiler ptal. |
Original prompt
Fixes #17118
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.