fix(dart): replace slow indent with simpler strategy

Pattern for dedenting else blocks is painfully slow (~20% of total test
time), so replace with `@indent.auto` for the whole `if_statement` for
now.
This commit is contained in:
Christian Clason
2024-01-25 12:40:17 +01:00
parent fb91060f59
commit cc908cfcd7

View File

@@ -5,7 +5,6 @@
(declaration
(initializers))
(switch_block)
(if_statement)
(formal_parameter_list)
(formal_parameter)
(list_literal)
@@ -41,8 +40,10 @@
(break_statement
";" @indent.end)
; this one is for dedenting the else block
(if_statement
(block) @indent.branch)
(comment) @indent.ignore
; dedenting the else block is painfully slow; replace with simpler strategy
; (if_statement) @indent.begin
; (if_statement
; (block) @indent.branch)
(if_statement) @indent.auto