Skip to content

Commit

Permalink
Version 2.19.0-433.0.dev
Browse files Browse the repository at this point in the history
Merge 076c856 into dev
  • Loading branch information
Dart CI committed Nov 25, 2022
2 parents eb65e5c + 076c856 commit ae4b643
Show file tree
Hide file tree
Showing 736 changed files with 3,304 additions and 7,916 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ vars = {

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

Expand Down
12 changes: 11 additions & 1 deletion pkg/_fe_analyzer_shared/lib/src/parser/value_kind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,20 @@ class UnionValueKind implements ValueKind {

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

/// Helper method for creating a list of [count] repetitions of a sequence of
/// [ValueKind]s.
List<ValueKind> repeatedKinds(List<ValueKind> kinds, int count) {
List<ValueKind> list = [];
for (int i = 0; i < count; i++) {
list.addAll(kinds);
}
return list;
}

/// Helper method for creating a union of a list of [ValueKind]s.
ValueKind unionOfKinds(List<ValueKind> kinds) {
return new UnionValueKind(kinds);
Expand Down
Loading

0 comments on commit ae4b643

Please sign in to comment.