mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
test(dart): add test cases for open issues
This commit is contained in:
parent
e68b81e7fd
commit
e9de9cedf0
4 changed files with 36 additions and 2 deletions
|
|
@ -1,4 +1,8 @@
|
|||
void main() {
|
||||
}
|
||||
|
||||
class Test {
|
||||
List<String> get progress => [
|
||||
'0',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
13
tests/indent/dart/class_function_argument.dart
Normal file
13
tests/indent/dart/class_function_argument.dart
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
class Something {
|
||||
final int number;
|
||||
final Function(int) write;
|
||||
|
||||
Something(this.number, this.write);
|
||||
}
|
||||
|
||||
void test() {
|
||||
Something(
|
||||
1,
|
||||
(int number) {
|
||||
);
|
||||
}
|
||||
9
tests/indent/dart/switch.dart
Normal file
9
tests/indent/dart/switch.dart
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
void test() {
|
||||
final a = 69;
|
||||
switch (a) {
|
||||
case 69:
|
||||
break;
|
||||
case 420:
|
||||
default:
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue