C#: Allow attributes on local functions

This commit is contained in:
Tamas Vajk
2020-11-05 14:21:56 +01:00
parent 89a4cff5f8
commit a931c59a28
9 changed files with 60 additions and 6 deletions

View File

@@ -227,7 +227,8 @@ tokens(
@external_element = @externalMetric | @externalDefect | @externalDataElement;
@attributable = @assembly | @field | @parameter | @operator | @method | @constructor
| @destructor | @callable_accessor | @value_or_ref_type | @declaration_with_accessors;
| @destructor | @callable_accessor | @value_or_ref_type | @declaration_with_accessors
| @local_function;
/** LOCATIONS, ASEMMBLIES, MODULES, FILES and FOLDERS **/
@@ -986,7 +987,7 @@ case @expr.kind of
| 109 = @local_function_invocation_expr
| 110 = @ref_expr
| 111 = @discard_expr
/* C# 8.0 */
/* C# 8.0 */
| 112 = @range_expr
| 113 = @index_expr
| 114 = @switch_expr