Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: pkg/front_end/lib/src/fasta/source/stack_listener.dart

Issue 2711753002: fasta: Use List instead of List<Object> because analyzer code assigns it to List<Token> (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/stack_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/stack_listener.dart b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
index a93f6374a48d8e98d5a0356ecc6863e90e6a29d0..c28aefa94bcc6e87c7c13046b733337de466615b 100644
--- a/pkg/front_end/lib/src/fasta/source/stack_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
@@ -256,13 +256,13 @@ class Stack {
return value is NullValue ? null : value;
}
- List<Object> popList(int count) {
+ List popList(int count) {
assert(arrayLength >= count);
final table = array;
final length = arrayLength;
- final tailList = new List<Object>.filled(count, null, growable: true);
+ final tailList = new List.filled(count, null, growable: true);
final startIndex = length - count;
for (int i = 0; i < count; i++) {
final value = table[startIndex + i];
@@ -273,14 +273,14 @@ class Stack {
return tailList;
}
- List<Object> get values {
- final List<Object> list = new List<Object>(arrayLength);
+ List get values {
+ final List list = new List(arrayLength);
list.setRange(0, arrayLength, array);
return list;
}
void _grow() {
- final List<Object> newTable = new List<Object>(array.length * 2);
+ final List newTable = new List(array.length * 2);
newTable.setRange(0, array.length, array, 0);
array = newTable;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698