| 1 | (class_definition |
| 2 | body: (_) @class.inside) @class.around |
| 3 | |
| 4 | (mixin_declaration |
| 5 | (class_body) @class.inside) @class.around |
| 6 | |
| 7 | (extension_declaration |
| 8 | (extension_body) @class.inside) @class.around |
| 9 | |
| 10 | (extension_type_declaration |
| 11 | body: (_) @class.inside) @class.around |
| 12 | |
| 13 | (enum_declaration |
| 14 | body: (_) @class.inside) @class.around |
| 15 | |
| 16 | (type_alias) @class.around |
| 17 | |
| 18 | (_ |
| 19 | ( |
| 20 | [ |
| 21 | (getter_signature) |
| 22 | (setter_signature) |
| 23 | (function_signature) |
| 24 | (method_signature) |
| 25 | (constructor_signature) |
| 26 | ] |
| 27 | . |
| 28 | (function_body) @function.inside @function.around |
| 29 | ) @function.around |
| 30 | ) |
| 31 | |
| 32 | (declaration |
| 33 | [ |
| 34 | (constant_constructor_signature) |
| 35 | (constructor_signature) |
| 36 | (factory_constructor_signature) |
| 37 | (redirecting_factory_constructor_signature) |
| 38 | (getter_signature) |
| 39 | (setter_signature) |
| 40 | (operator_signature) |
| 41 | (function_signature) |
| 42 | ] |
| 43 | ) @function.around |
| 44 | |
| 45 | (lambda_expression |
| 46 | body: (_) @function.inside |
| 47 | ) @function.around |
| 48 | |
| 49 | (function_expression |
| 50 | body: (_) @function.inside |
| 51 | ) @function.around |
| 52 | |
| 53 | [ |
| 54 | (comment) |
| 55 | (documentation_comment) |
| 56 | ] @comment.inside |
| 57 | |
| 58 | (comment)+ @comment.around |
| 59 | |
| 60 | (documentation_comment)+ @comment.around |
| 61 | |
| 62 | (formal_parameter_list |
| 63 | ( |
| 64 | (formal_parameter) @parameter.inside . ","? @parameter.around |
| 65 | ) @parameter.around |
| 66 | ) |
| 67 | |
| 68 | (optional_formal_parameters |
| 69 | ( |
| 70 | (formal_parameter) @parameter.inside . ","? @parameter.around |
| 71 | ) @parameter.around |
| 72 | ) |
| 73 | |
| 74 | (arguments |
| 75 | ( |
| 76 | [ |
| 77 | (argument) @parameter.inside |
| 78 | (named_argument (label) . (_)* @parameter.inside) |
| 79 | ] |
| 80 | . ","? @parameter.around |
| 81 | ) @parameter.around |
| 82 | ) |
| 83 | |
| 84 | (type_arguments |
| 85 | ( |
| 86 | ((_) . ("." . (_) @parameter.inside @parameter.around)?) @parameter.inside |
| 87 | . ","? @parameter.around |
| 88 | ) @parameter.around |
| 89 | ) |
| 90 | |
| 91 | (expression_statement |
| 92 | ((identifier) @_name (#any-of? @_name "test" "testWidgets")) |
| 93 | . |
| 94 | (selector (argument_part (arguments . (_) . (argument) @test.inside))) |
| 95 | ) @test.around |
| 96 |