Debian Codegraph @

runtime/queries/dart/indents.scm

raw symbols SCIP
1 ; things surrounded by ({[]})
2 [
3 (template_substitution)
4 (list_literal)
5 (set_or_map_literal)
6 (parenthesized_expression)
7 (arguments)
8 (index_selector)
9 (block)
10 (assertion_arguments)
11 (switch_block)
12 ; statements after a `case`/`default` label (the node also holds the label,
13 ; so the default tail scope indents only the body lines, not the label)
14 (switch_statement_case)
15 (switch_statement_default)
16 (catch_parameters)
17 (for_loop_parts)
18 (configuration_uri_condition)
19 (enum_body)
20 (class_body)
21 (extension_body)
22 (parameter_type_list)
23 (optional_positional_parameter_types)
24 (named_parameter_types)
25 (formal_parameter_list)
26 (optional_formal_parameters)
27 ] @indent
28
29 ; control flow statement which accept one line as body
30
31 (for_statement
32 body: _ @indent
33 (#not-kind-eq? @indent block)
34
35 )
36
37 (while_statement
38 body: _ @indent
39 (#not-kind-eq? @indent block)
40
41 )
42
43 (do_statement
44 body: _ @indent
45 (#not-kind-eq? @indent block)
46
47 )
48
49 (if_statement
50 consequence: _ @indent
51 (#not-kind-eq? @indent block)
52
53 )
54 (if_statement
55 alternative: _ @indent
56 (#not-kind-eq? @indent if_statement)
57 (#not-kind-eq? @indent block)
58
59 )
60 (if_statement
61 "else" @else
62 alternative: (if_statement) @indent
63 (#not-same-line? @indent @else)
64
65 )
66
67 (if_element
68 consequence: _ @indent
69
70 )
71 (if_element
72 alternative: _ @indent
73 (#not-kind-eq? @indent if_element)
74
75 )
76 (if_element
77 "else" @else
78 alternative: (if_element) @indent
79 (#not-same-line? @indent @else)
80
81 )
82
83 (for_element
84 body: _ @indent
85
86 )
87
88 ; simple statements
89 [
90 (local_variable_declaration)
91 (break_statement)
92 (continue_statement)
93 (return_statement)
94 (yield_statement)
95 (yield_each_statement)
96 (expression_statement)
97 ] @indent
98
99 [
100 "}"
101 "]"
102 ")"
103 ] @outdent
104
105 (string_literal) @opaque