Skip to content

Commit bf8910e

Browse files
committed
rename rule
Change *using_declaration* to *local_using_declaration*
1 parent 7b4d60c commit bf8910e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

standard/statements.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -278,20 +278,20 @@ In addition to the reachability provided by normal flow of control, a labeled st
278278
279279
### 13.6.1 General
280280
281-
A *declaration_statement* declares one or more local variables, one or more local constants, a local function, or a local using scope ([§13.14.2](statements.md#13142-using-declaration)). Declaration statements are permitted in blocks and switch blocks, but are not permitted as embedded statements. A *using_declaration* differs from the other forms in that it shall not appear directly in a *switch_block*, but may appear in a block nested within a *switch_block*.
281+
A *declaration_statement* declares one or more local variables, one or more local constants, a local function, or a local using scope ([§13.14.2](statements.md#13142-using-declaration)). Declaration statements are permitted in blocks and switch blocks, but are not permitted as embedded statements. A *local_using_declaration* differs from the other forms in that it shall not appear directly in a *switch_block*, but may appear in a block nested within a *switch_block*.
282282
283283
```ANTLR
284284
declaration_statement
285285
: local_variable_declaration ';'
286286
| local_constant_declaration ';'
287287
| local_function_declaration
288-
| using_declaration
288+
| local_using_declaration
289289
;
290290
```
291291
292-
A local variable is declared using a *local_variable_declaration* ([§13.6.2](statements.md#1362-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§13.6.3](statements.md#1363-local-constant-declarations)). A local function is declared using a *local_function_declaration* ([§13.6.4](statements.md#1364-local-function-declarations)). A using declaration is declared using a *using_declaration* (§13.14.2).
292+
A local variable is declared using a *local_variable_declaration* ([§13.6.2](statements.md#1362-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§13.6.3](statements.md#1363-local-constant-declarations)). A local function is declared using a *local_function_declaration* ([§13.6.4](statements.md#1364-local-function-declarations)). A using declaration is declared using a *local_using_declaration* (§13.14.2).
293293

294-
Except for a *using_declaration*, the declared names are introduced into the nearest enclosing declaration space ([§7.3](basic-concepts.md#73-declarations)). A *using_declaration* introduces a new declaration space and scope that extends from the declaration to the end of the enclosing block, as specified in [§13.14.2](statements.md#13142-using-declaration).
294+
Except for a *local_using_declaration*, the declared names are introduced into the nearest enclosing declaration space ([§7.3](basic-concepts.md#73-declarations)). A *local_using_declaration* introduces a new declaration space and scope that extends from the declaration to the end of the enclosing block, as specified in [§13.14.2](statements.md#13142-using-declaration).
295295

296296
### 13.6.2 Local variable declarations
297297

@@ -2118,7 +2118,7 @@ is semantically equivalent to
21182118
A syntactic variant of the using statement is a *using declaration*.
21192119

21202120
```ANTLR
2121-
using_declaration
2121+
local_using_declaration
21222122
: 'await'? 'using' non_ref_local_variable_declaration ';' statement_list?
21232123
;
21242124
```
@@ -2155,7 +2155,7 @@ await using («local_variable_type» «local_variable_declarators»)
21552155
}
21562156
```
21572157

2158-
The lifetime of the variables declared in a *non_ref_local_variable_declaration* extends to the end of the scope in which they are declared. Those variables are then disposed in the reverse order in which they are declared. The variables declared by a *using_declaration*, together with the trailing *statement_list*, form a new declaration space and scope ([§7.3](basic-concepts.md#73-declarations), [§13.3.1](statements.md#1331-general)), equivalent to the block introduced by the corresponding rewrite to a *using_statement* shown above.
2158+
The lifetime of the variables declared in a *non_ref_local_variable_declaration* extends to the end of the scope in which they are declared. Those variables are then disposed in the reverse order in which they are declared. The variables declared by a *local_using_declaration*, together with the trailing *statement_list*, form a new declaration space and scope ([§7.3](basic-concepts.md#73-declarations), [§13.3.1](statements.md#1331-general)), equivalent to the block introduced by the corresponding rewrite to a *using_statement* shown above.
21592159

21602160
<!-- Example: {template:"code-in-partial-class", name:"LocalVariableDecls6", additionalFiles:["SupportLocalVarDecl.cs"], replaceEllipsis:true, customEllipsisReplacements: ["\"File1.txt\", FileMode.Create", "\"File2.txt\", FileMode.Create", "\"File3.txt\", FileMode.Create"]} -->
21612161
```csharp
@@ -2170,7 +2170,7 @@ static void M()
21702170
}
21712171
```
21722172

2173-
A *using_declaration* shall not appear directly inside a *switch_block*, but may appear within a block nested inside a *switch_block*.
2173+
A *local_using_declaration* shall not appear directly inside a *switch_block*, but may appear within a block nested inside a *switch_block*.
21742174

21752175
## 13.15 The yield statement
21762176

0 commit comments

Comments
 (0)