You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/statements.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,20 +278,20 @@ In addition to the reachability provided by normal flow of control, a labeled st
278
278
279
279
### 13.6.1 General
280
280
281
-
A *declaration_statement* declaresoneormorelocalvariables, oneormorelocalconstants, alocalfunction, oralocalusingscope ([§13.14.2](statements.md#13142-using-declaration)). Declarationstatementsarepermittedinblocksandswitchblocks, butarenotpermittedasembeddedstatements. A *using_declaration* differsfromtheotherformsinthatitshallnotappeardirectlyina *switch_block*, butmayappearinablocknestedwithina *switch_block*.
281
+
A *declaration_statement* declaresoneormorelocalvariables, oneormorelocalconstants, alocalfunction, oralocalusingscope ([§13.14.2](statements.md#13142-using-declaration)). Declarationstatementsarepermittedinblocksandswitchblocks, butarenotpermittedasembeddedstatements. A *local_using_declaration* differsfromtheotherformsinthatitshallnotappeardirectlyina *switch_block*, butmayappearinablocknestedwithina *switch_block*.
282
282
283
283
```ANTLR
284
284
declaration_statement
285
285
: local_variable_declaration ';'
286
286
| local_constant_declaration ';'
287
287
| local_function_declaration
288
-
|using_declaration
288
+
|local_using_declaration
289
289
;
290
290
```
291
291
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).
293
293
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).
295
295
296
296
### 13.6.2 Local variable declarations
297
297
@@ -2118,7 +2118,7 @@ is semantically equivalent to
2118
2118
A syntactic variant of the using statement is a *using declaration*.
0 commit comments