Skip to content

Commit 603ea66

Browse files
authored
Unpublish speclets (dotnet#31737)
* remove merged specs The following features have been merged into the standard: - local functions - throw expressions - readonly struct The PR removes those speclets from the build and redirects traffic to the best location in the spec. * add redirections to speclets * throw-expression is singular.
1 parent 5ddf794 commit 603ea66

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.openpublishing.redirection.csharp.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@
88
"source_path_from_root": "/_csharplang/proposals/csharp-7.0/digit-separators.md",
99
"redirect_url": "/dotnet/csharp/language-reference/language-specification/lexical-structure#6453-integer-literals"
1010
},
11+
{
12+
"source_path_from_root": "/_csharplang/proposals/csharp-7.0/local-functions.md",
13+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/statements.md#1264-local-function-declarations"
14+
},
15+
{
16+
"source_path_from_root": "/_csharplang/proposals/csharp-7.0/throw-expression.md",
17+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/expressions.md#1115-the-throw-expression-operator"
18+
},
1119
{
1220
"source_path_from_root": "/_csharplang/proposals/csharp-7.2/private-protected.md",
1321
"redirect_url": "/dotnet/csharp/language-reference/language-specification/classes.md#1436-access-modifiers"
1422
},
23+
{
24+
"source_path_from_root": "/_csharplang/proposals/csharp-7.2/readonly-struct.md",
25+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/structs.md#1524-struct-interfaces"
26+
},
1527
{
1628
"source_path_from_root": "/_csharplang/proposals/csharp-7.3/leading-digit-separator.md",
1729
"redirect_url": "/dotnet/csharp/language-reference/language-specification/lexical-structure#6453-integer-literals"

docfx.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
"csharp-7.0/binary-literals.md",
5353
"csharp-7.0/digit-separators.md",
5454
"csharp-7.0/expression-bodied-everything.md",
55+
"csharp-7.0/local-functions.md",
5556
"csharp-7.0/ref-locals-returns.md",
57+
"csharp-7.0/throw-expression.md",
5658
"csharp-7.0/tuples.md",
5759
"csharp-7.0/value-task.md",
5860
"csharp-7.2/leading-separator.md",
@@ -110,7 +112,10 @@
110112
"rules": {
111113
"docs-link-absolute": {
112114
"exclude": [
115+
"_csharplang/proposals/csharp-7.0/local-functions.md",
116+
"_csharplang/proposals/csharp-7.0/throw-expression.md",
113117
"_csharplang/proposals/csharp-7.2/private-protected.md",
118+
"_csharplang/proposals/csharp-7.2/readonly-struct.md",
114119
"_csharplang/proposals/csharp-7.3/blittable.md"
115120
]
116121
}
@@ -602,9 +607,7 @@
602607
"_csharpstandard/standard/Bibliography.md": "Bibliography",
603608

604609
"_csharplang/proposals/csharp-7.0/pattern-matching.md": "Pattern matching",
605-
"_csharplang/proposals/csharp-7.0/local-functions.md": "Local functions",
606610
"_csharplang/proposals/csharp-7.0/out-var.md": "Out variable declarations",
607-
"_csharplang/proposals/csharp-7.0/throw-expression.md": "Throw expressions",
608611
"_csharplang/proposals/csharp-7.0/binary-literals.md": "Binary literals",
609612
"_csharplang/proposals/csharp-7.0/digit-separators.md": "Digit separators",
610613
"_csharplang/proposals/csharp-7.0/task-types.md": "Async task types",
@@ -742,9 +745,7 @@
742745
"_csharpstandard/standard/Bibliography.md": "This appendix lists external standards referenced in this specification.",
743746

744747
"_csharplang/proposals/csharp-7.0/pattern-matching.md": "This feature specification describes the pattern matching featues added in C# 7.0. Note that future releases built on this initial set of features.",
745-
"_csharplang/proposals/csharp-7.0/local-functions.md": "This feature specification describes local functions, which are functions that are embedded in another method or function.",
746748
"_csharplang/proposals/csharp-7.0/out-var.md": "This feature specification describes syntax enhancements that enable declaring 'out' variables in the expression where they are used.",
747-
"_csharplang/proposals/csharp-7.0/throw-expression.md": "This feature specification describes syntax enhancements that allow 'throw' to be either an expression or a statement.",
748749
"_csharplang/proposals/csharp-7.0/binary-literals.md": "This feature specification describes the syntax to declare binary literals for integral constants.",
749750
"_csharplang/proposals/csharp-7.0/digit-separators.md": "This feature specification describes the syntax to allow separators between groups of digits in numeric literals.",
750751
"_csharplang/proposals/csharp-7.0/task-types.md": "This feature specification describes the syntax to support async return types that match a pattern, rather than restricting them to Task.",

docs/csharp/toc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,12 +1344,8 @@ items:
13441344
items:
13451345
- name: Pattern matching
13461346
href: ../../_csharplang/proposals/csharp-7.0/pattern-matching.md
1347-
- name: Local functions
1348-
href: ../../_csharplang/proposals/csharp-7.0/local-functions.md
13491347
- name: Out variable declarations
13501348
href: ../../_csharplang/proposals/csharp-7.0/out-var.md
1351-
- name: Throw expressions
1352-
href: ../../_csharplang/proposals/csharp-7.0/throw-expression.md
13531349
- name: Async task types
13541350
href: ../../_csharplang/proposals/csharp-7.0/task-types.md
13551351
- name: C# 7.1 features

0 commit comments

Comments
 (0)