| name | error-consolidation-search |
| description | Finds C# diagnostics related to a consolidation theme. Use after setup to review documented and catch-all candidates through explicit approval gates. |
Search for Related Error Codes
Search for theme-related diagnostics that may have been missed during initial consolidation. Preserve all three phase boundaries and approval gates.
Required Inputs
Collect these inputs from the user:
- Destination filename: The consolidated
.md file in docs/csharp/language-reference/compiler-messages/.
- Theme description: The theme to search for.
Key Paths
- Destination:
docs/csharp/language-reference/compiler-messages/{destination-filename}
- TOC:
docs/csharp/language-reference/toc.yml
- Catch-all:
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md
- Roslyn error codes:
../roslyn/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs
- Roslyn resources:
../roslyn/src/Compilers/CSharp/Portable/CSharpResources.resx
Phase A: Search Existing Documentation
- Read the destination and collect all included error codes.
- Search all files whose names begin with
cs in:
docs/csharp/language-reference/compiler-messages/
docs/csharp/misc/
- Read every candidate and decide whether its diagnostic relates to the theme.
- Build a candidate list containing the file, error code, and a brief reason it matches.
Present the list and stop:
| File | Error Code | Reason |
|------|------------|--------|
| cs0220.md | CS0220 | Describes compile-time overflow |