|
40 | 40 |
|
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 | | -// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
44 | 43 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#name. |
45 | 44 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#type. |
46 | 45 | // ^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type) |
|
77 | 76 | } |
78 | 77 | } |
79 | 78 |
|
| 79 | + factory Animal.cat() => Animal('Timmy', type: AnimalType.cat); |
| 80 | +// ^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#cat(). |
| 81 | +// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`(). |
| 82 | +// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type) |
| 83 | +// ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType# |
| 84 | +// ^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#cat. |
| 85 | + |
80 | 86 | void makeSound() { |
81 | 87 | // ^^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#makeSound(). |
82 | 88 | soundMaker?.call(); |
|
122 | 128 | // ^^^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/calculateSum(). |
123 | 129 | // ^^^^^^^ reference local 3 |
124 | 130 |
|
125 | | - Animal cat = Animal('Kitty', type: AnimalType.cat); |
| 131 | + Animal bird = Animal('Kitty', type: AnimalType.bird); |
126 | 132 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
127 | | -// ^^^ definition local 5 |
128 | | -// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
129 | | -// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type) |
130 | | -// ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType# |
131 | | -// ^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#cat. |
| 133 | +// ^^^^ definition local 5 |
| 134 | +// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`(). |
| 135 | +// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type) |
| 136 | +// ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType# |
| 137 | +// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#bird. |
132 | 138 | Animal dog = Animal('Buddy', type: AnimalType.dog); |
133 | 139 | // ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
134 | 140 | // ^^^ definition local 6 |
135 | | -// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
| 141 | +// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`(). |
136 | 142 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#`<constructor>`().(type) |
137 | 143 | // ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType# |
138 | 144 | // ^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/AnimalType#dog. |
| 145 | + Animal cat = Animal.cat(); |
| 146 | +// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
| 147 | +// ^^^ definition local 7 |
| 148 | +// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal# |
| 149 | +// ^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#cat(). |
139 | 150 |
|
140 | | - cat.makeSound(); |
141 | | -// ^^^ reference local 5 |
142 | | -// ^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#makeSound(). |
143 | | - cat.sleep(); |
144 | | -// ^^^ reference local 5 |
145 | | -// ^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/SleepMixin#sleep(). |
| 151 | + bird.makeSound(); |
| 152 | +// ^^^^ reference local 5 |
| 153 | +// ^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#makeSound(). |
| 154 | + bird.sleep(); |
| 155 | +// ^^^^ reference local 5 |
| 156 | +// ^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/SleepMixin#sleep(). |
146 | 157 |
|
147 | 158 | dog.makeSound(); |
148 | 159 | // ^^^ reference local 6 |
|
151 | 162 | // ^^^ reference local 6 |
152 | 163 | // ^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/SleepMixin#sleep(). |
153 | 164 |
|
154 | | - print(cat); |
| 165 | + cat.makeSound(); |
| 166 | +// ^^^ reference local 7 |
| 167 | +// ^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/Animal#makeSound(). |
| 168 | + |
| 169 | + print(bird); |
155 | 170 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print(). |
156 | | -// ^^^ reference local 5 |
| 171 | +// ^^^^ reference local 5 |
157 | 172 | print(dog); |
158 | 173 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print(). |
159 | 174 | // ^^^ reference local 6 |
|
165 | 180 | print(math.Rectangle(1,2,3,4)); |
166 | 181 | // ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`print.dart`/print(). |
167 | 182 | // ^^^^ reference scip-dart pub dart_test 1.0.0 lib/`more.dart`/math. |
168 | | -// ^^^^^^^^^ reference scip-dart pub dart:math 2.19.0 dart:math/`rectangle.dart`/Rectangle# |
| 183 | +// ^^^^^^^^^ reference scip-dart pub dart:math 2.19.0 dart:math/`rectangle.dart`/Rectangle#`<constructor>`(). |
169 | 184 |
|
170 | 185 | [1,2].reduce((a, b) => a + b); |
171 | 186 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`iterable.dart`/Iterable#reduce(). |
172 | | -// ^ definition local 7 |
173 | | -// ^ definition local 8 |
174 | | -// ^ reference local 7 |
175 | | -// ^ reference local 8 |
| 187 | +// ^ definition local 8 |
| 188 | +// ^ definition local 9 |
| 189 | +// ^ reference local 8 |
| 190 | +// ^ reference local 9 |
176 | 191 | } |
177 | 192 |
|
178 | 193 | void test(String Function(int) p) {} |
179 | 194 | // ^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/test(). |
180 | 195 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String# |
181 | 196 | // ^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int# |
182 | | -// ^ definition local 9 |
| 197 | +// ^ definition local 10 |
183 | 198 | void deepTest(String Function(void Function(String test)) p) {} |
184 | 199 | // ^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/`more.dart`/deepTest(). |
185 | 200 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String# |
186 | 201 | // ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String# |
187 | | -// ^ definition local 10 |
| 202 | +// ^ definition local 11 |
0 commit comments