Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ae4b643

Browse files
author
Dart CI
committed
Version 2.19.0-433.0.dev
Merge 076c856 into dev
2 parents eb65e5c + 076c856 commit ae4b643

File tree

736 files changed

+3304
-7916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

736 files changed

+3304
-7916
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ vars = {
5151

5252
# co19 is a cipd package. Use update.sh in tests/co19[_2] to update these
5353
# hashes.
54-
"co19_rev": "2a9309cd36effe3b083df6a2761fea6b7213c670",
54+
"co19_rev": "c38e027467efb69c754b198fe0d4029c38cfe72b",
5555
# This line prevents conflicts when both packages are rolled simultaneously.
5656
"co19_2_rev": "cdab7e4e26f3dd534bcb297ff3f9e9aa5c7a04fb",
5757

pkg/_fe_analyzer_shared/lib/src/parser/value_kind.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,20 @@ class UnionValueKind implements ValueKind {
7171

7272
/// Helper method for creating a list of [ValueKind]s of the given length
7373
/// [count].
74-
List<ValueKind> repeatedKinds(ValueKind kind, int count) {
74+
List<ValueKind> repeatedKind(ValueKind kind, int count) {
7575
return new List.generate(count, (_) => kind);
7676
}
7777

78+
/// Helper method for creating a list of [count] repetitions of a sequence of
79+
/// [ValueKind]s.
80+
List<ValueKind> repeatedKinds(List<ValueKind> kinds, int count) {
81+
List<ValueKind> list = [];
82+
for (int i = 0; i < count; i++) {
83+
list.addAll(kinds);
84+
}
85+
return list;
86+
}
87+
7888
/// Helper method for creating a union of a list of [ValueKind]s.
7989
ValueKind unionOfKinds(List<ValueKind> kinds) {
8090
return new UnionValueKind(kinds);

0 commit comments

Comments
 (0)