| Index: pkg/compiler/lib/src/elements/elements.dart
|
| diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
|
| index 15c8cfddef4552207653385f53a157c0149bbad2..883d44ae0831605ddc10046277b1681d1826015d 100644
|
| --- a/pkg/compiler/lib/src/elements/elements.dart
|
| +++ b/pkg/compiler/lib/src/elements/elements.dart
|
| @@ -743,23 +743,23 @@ class Elements {
|
| }
|
|
|
| static bool isFixedListConstructorCall(
|
| - Element element, Send node, CommonElements commonElements) {
|
| - return element == commonElements.unnamedListConstructor &&
|
| + ConstructorEntity element, Send node, CommonElements commonElements) {
|
| + return commonElements.isUnnamedListConstructor(element) &&
|
| node.isCall &&
|
| !node.arguments.isEmpty &&
|
| node.arguments.tail.isEmpty;
|
| }
|
|
|
| static bool isGrowableListConstructorCall(
|
| - Element element, Send node, CommonElements commonElements) {
|
| - return element == commonElements.unnamedListConstructor &&
|
| + ConstructorEntity element, Send node, CommonElements commonElements) {
|
| + return commonElements.isUnnamedListConstructor(element) &&
|
| node.isCall &&
|
| node.arguments.isEmpty;
|
| }
|
|
|
| static bool isFilledListConstructorCall(
|
| - Element element, Send node, CommonElements commonElements) {
|
| - return element == commonElements.filledListConstructor &&
|
| + ConstructorEntity element, Send node, CommonElements commonElements) {
|
| + return commonElements.isFilledListConstructor(element) &&
|
| node.isCall &&
|
| !node.arguments.isEmpty &&
|
| !node.arguments.tail.isEmpty &&
|
|
|