|
41 | 41 | Animal(this.name, {required this.type}) {
|
42 | 42 | // ^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().
|
43 | 43 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#
|
44 |
| -// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#name. |
45 |
| -// ^^^^ definition local 0 |
46 |
| -// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#type. |
47 |
| -// ^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type) |
| 44 | +// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#name. |
| 45 | +// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#type. |
48 | 46 | switch (type) {
|
49 | 47 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#type.
|
50 | 48 | case AnimalType.cat:
|
|
98 | 96 | // ^^^^^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/calculateSum().
|
99 | 97 | // ^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`list.dart`/List#
|
100 | 98 | // ^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
|
101 |
| -// ^^^^^^^ definition local 1 |
| 99 | +// ^^^^^^^ definition local 0 |
102 | 100 | return numbers.reduce((value, element) => value + element);
|
103 |
| -// ^^^^^^^ reference local 1 |
| 101 | +// ^^^^^^^ reference local 0 |
104 | 102 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`iterable.dart`/Iterable#reduce().
|
105 |
| -// ^^^^^ definition local 2 |
106 |
| -// ^^^^^^^ definition local 3 |
107 |
| -// ^^^^^ reference local 2 |
108 |
| -// ^^^^^^^ reference local 3 |
| 103 | +// ^^^^^ definition local 1 |
| 104 | +// ^^^^^^^ definition local 2 |
| 105 | +// ^^^^^ reference local 1 |
| 106 | +// ^^^^^^^ reference local 2 |
109 | 107 | }
|
110 | 108 |
|
111 | 109 | void main() {
|
112 | 110 | // ^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/main().
|
113 | 111 | List<int> numbers = [1, 2, 3, 4, 5];
|
114 | 112 | // ^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`list.dart`/List#
|
115 | 113 | // ^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
|
116 |
| -// ^^^^^^^ definition local 4 |
| 114 | +// ^^^^^^^ definition local 3 |
117 | 115 | int sum = calculateSum(numbers);
|
118 | 116 | // ^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
|
119 |
| -// ^^^ definition local 5 |
| 117 | +// ^^^ definition local 4 |
120 | 118 | // ^^^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/calculateSum().
|
121 |
| -// ^^^^^^^ reference local 4 |
| 119 | +// ^^^^^^^ reference local 3 |
122 | 120 |
|
123 | 121 | Animal cat = Animal('Kitty', type: AnimalType.cat);
|
124 | 122 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#
|
125 |
| -// ^^^ definition local 6 |
| 123 | +// ^^^ definition local 5 |
126 | 124 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#
|
127 | 125 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type)
|
128 | 126 | // ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#
|
129 | 127 | // ^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#cat.
|
130 | 128 | Animal dog = Animal('Buddy', type: AnimalType.dog);
|
131 | 129 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#
|
132 |
| -// ^^^ definition local 7 |
| 130 | +// ^^^ definition local 6 |
133 | 131 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#
|
134 | 132 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type)
|
135 | 133 | // ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#
|
136 | 134 | // ^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#dog.
|
137 | 135 |
|
138 | 136 | cat.makeSound();
|
139 |
| -// ^^^ reference local 6 |
| 137 | +// ^^^ reference local 5 |
140 | 138 | // ^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#makeSound().
|
141 | 139 | cat.sleep();
|
142 |
| -// ^^^ reference local 6 |
| 140 | +// ^^^ reference local 5 |
143 | 141 | // ^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/SleepMixin#sleep().
|
144 | 142 |
|
145 | 143 | dog.makeSound();
|
146 |
| -// ^^^ reference local 7 |
| 144 | +// ^^^ reference local 6 |
147 | 145 | // ^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#makeSound().
|
148 | 146 | dog.sleep();
|
149 |
| -// ^^^ reference local 7 |
| 147 | +// ^^^ reference local 6 |
150 | 148 | // ^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/SleepMixin#sleep().
|
151 | 149 |
|
152 | 150 | print(cat);
|
153 | 151 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print().
|
154 |
| -// ^^^ reference local 6 |
| 152 | +// ^^^ reference local 5 |
155 | 153 | print(dog);
|
156 | 154 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print().
|
157 |
| -// ^^^ reference local 7 |
| 155 | +// ^^^ reference local 6 |
158 | 156 | print('The sum of $numbers is $sum');
|
159 | 157 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print().
|
160 |
| -// ^^^^^^^ reference local 4 |
161 |
| -// ^^^ reference local 5 |
| 158 | +// ^^^^^^^ reference local 3 |
| 159 | +// ^^^ reference local 4 |
162 | 160 |
|
163 | 161 | print(math.Rectangle(1,2,3,4));
|
164 | 162 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print().
|
|
167 | 165 |
|
168 | 166 | [1,2].reduce((a, b) => a + b);
|
169 | 167 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`iterable.dart`/Iterable#reduce().
|
170 |
| -// ^ definition local 8 |
171 |
| -// ^ definition local 9 |
172 |
| -// ^ reference local 8 |
173 |
| -// ^ reference local 9 |
| 168 | +// ^ definition local 7 |
| 169 | +// ^ definition local 8 |
| 170 | +// ^ reference local 7 |
| 171 | +// ^ reference local 8 |
174 | 172 | }
|
175 | 173 |
|
176 | 174 | void test(String Function(int) p) {}
|
177 | 175 | // ^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/test().
|
178 | 176 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#
|
179 | 177 | // ^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
|
180 |
| -// ^ definition local 10 |
| 178 | +// ^ definition local 9 |
181 | 179 | void deepTest(String Function(void Function(String test)) p) {}
|
182 | 180 | // ^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/deepTest().
|
183 | 181 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#
|
184 | 182 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#
|
185 |
| -// ^ definition local 11 |
| 183 | +// ^ definition local 10 |
0 commit comments