Skip to content

Commit 35cbb6e

Browse files
BillWagnerCopilot
andauthored
Create combined diagnostic page for property syntax (#50563)
* Consolidation is done. * Add other undocumented errors * Get it to add the table. * organize around themes * first pass edit * fix warnings * Final edits * fix link * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * clean up TOC --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 98b8422 commit 35cbb6e

File tree

16 files changed

+381
-581
lines changed

16 files changed

+381
-581
lines changed

.github/prompts/error-consolidation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Overall steps:
1212

1313
We're going to work through a series of files consolidating errors and warnings.
1414

15-
- For the duration of this chat, all references to "destination file" refer to `generic-type-parameters-errors.md`.
16-
- For the duration of this chat, all references to "the target theme" refer to errors and warnings related to generic type parameters and generic type arguments.
15+
- For the duration of this chat, all references to "destination file" refer to `property-declaration-errors.md`.
16+
- For the duration of this chat, all references to "the target theme" refer to errors and warnings related to declaring and defining properties.
1717

1818
The destination file already contains a skeleton for the final output.
1919

@@ -31,7 +31,7 @@ For each source file I specify in this chat, you'll do the following tasks:
3131

3232
## Search for other related articles that may be missed.
3333

34-
First, let's find candidate source files. Search all files in the docs/csharp/language-reference/compiler-messages and the docs/csharp/misc folder for any other errors and warnings that involve the target theme. Give me a list to review for possible additional consolidation. Don't make any edits until the originating user approves.
34+
First, let's find candidate source files. Search all files whose names start with "CS" in the docs/csharp/language-reference/compiler-messages and the docs/csharp/misc folder for any other errors and warnings that involve the target theme. Give me a list to review for possible additional consolidation. Don't make any edits until the originating user approves.
3535

3636
## Final search in roslyn source
3737

.openpublishing.redirection.csharp.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@
451451
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0270.md",
452452
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/array-declaration-errors"
453453
},
454+
{
455+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0545.md",
456+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
457+
},
454458
{
455459
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0552.md",
456460
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/overloaded-operator-errors"
@@ -459,6 +463,10 @@
459463
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0563.md",
460464
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/overloaded-operator-errors"
461465
},
466+
{
467+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0571.md",
468+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
469+
},
462470
{
463471
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0650.md",
464472
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/array-declaration-errors"
@@ -491,6 +499,10 @@
491499
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0834.md",
492500
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/expression-tree-restrictions"
493501
},
502+
{
503+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0840.md",
504+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
505+
},
494506
{
495507
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0843.md",
496508
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/feature-version-errors"
@@ -655,6 +667,10 @@
655667
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs7000.md",
656668
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/using-directive-errors"
657669
},
670+
{
671+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs8145.md",
672+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
673+
},
658674
{
659675
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs8153.md",
660676
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/lambda-expression-errors#conversion-to-expression-trees"
@@ -751,6 +767,10 @@
751767
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs8964.md",
752768
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/parameter-argument-mismatch"
753769
},
770+
{
771+
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs9036.md",
772+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
773+
},
754774
{
755775
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs9050.md",
756776
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/ref-struct-errors"
@@ -1793,6 +1813,10 @@
17931813
"source_path_from_root": "/docs/csharp/misc/cs0199.md",
17941814
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/ref-modifiers-errors"
17951815
},
1816+
{
1817+
"source_path_from_root": "/docs/csharp/misc/cs0200.md",
1818+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
1819+
},
17961820
{
17971821
"source_path_from_root": "/docs/csharp/misc/cs0206.md",
17981822
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/ref-modifiers-errors"
@@ -2333,6 +2357,10 @@
23332357
"source_path_from_root": "/docs/csharp/misc/cs1012.md",
23342358
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/string-literal"
23352359
},
2360+
{
2361+
"source_path_from_root": "/docs/csharp/misc/cs1014.md",
2362+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
2363+
},
23362364
{
23372365
"source_path_from_root": "/docs/csharp/misc/cs1016.md",
23382366
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/parameter-argument-mismatch"
@@ -2377,6 +2405,10 @@
23772405
"source_path_from_root": "/docs/csharp/misc/cs1040.md",
23782406
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
23792407
},
2408+
{
2409+
"source_path_from_root": "/docs/csharp/misc/cs1043.md",
2410+
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/property-declaration-errors"
2411+
},
23802412
{
23812413
"source_path_from_root": "/docs/csharp/misc/cs1100.md",
23822414
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/extension-declarations"

docs/csharp/language-reference/compiler-messages/cs0545.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs0571.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs0840.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs8145.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

docs/csharp/language-reference/compiler-messages/cs9036.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)