mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:41:41 +00:00
Hide new core lib MapEntry class where it conflicts in fasta, and
suppress hints about the undefined name for backwards compatibility. Bug: Change-Id: I381af6a8ae5be040e3c149e0cf4b9d45faa8c630 Reviewed-on: https://dart-review.googlesource.com/33663 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Leaf Petersen <leafp@google.com>
This commit is contained in:
parent
4c1cbe1c8f
commit
116ecdcf11
|
@ -4,6 +4,9 @@
|
|||
|
||||
library fasta.body_builder;
|
||||
|
||||
// ignore: UNDEFINED_HIDDEN_NAME
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:kernel/ast.dart' hide InvalidExpression, InvalidInitializer;
|
||||
|
||||
import 'package:kernel/type_algebra.dart' show instantiateToBounds;
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
/// This means that in some cases multiple shadow classes may extend the same
|
||||
/// kernel class, because multiple constructs in Dart may desugar to a tree
|
||||
/// with the same kind of root node.
|
||||
|
||||
// ignore: UNDEFINED_HIDDEN_NAME
|
||||
import 'dart:core' hide MapEntry;
|
||||
|
||||
import 'package:front_end/src/base/instrumentation.dart';
|
||||
import 'package:front_end/src/fasta/kernel/body_builder.dart';
|
||||
import 'package:front_end/src/fasta/kernel/fasta_accessors.dart';
|
||||
|
|
|
@ -37,6 +37,12 @@ const Map<String, List<String>> WHITE_LIST = const {
|
|||
"third_party/pkg/collection/lib/src/functions.dart": const [
|
||||
"Method type variables are treated as `dynamic` in `as` expressions."
|
||||
],
|
||||
"pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart": const [
|
||||
"Library 'dart:core' doesn't export a 'MapEntry' declaration.",
|
||||
],
|
||||
"pkg/front_end/lib/src/fasta/kernel/body_builder.dart": const [
|
||||
"Library 'dart:core' doesn't export a 'MapEntry' declaration.",
|
||||
],
|
||||
};
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -23,6 +23,12 @@ const Map<String, List /* <String|MessageKind> */ > WHITE_LIST = const {
|
|||
"pkg/kernel/lib/transformations/closure/": const [
|
||||
"Duplicated library name 'kernel.transformations.closure.converter'",
|
||||
],
|
||||
"pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart": const [
|
||||
"Library 'dart:core' doesn't export a 'MapEntry' declaration.",
|
||||
],
|
||||
"pkg/front_end/lib/src/fasta/kernel/body_builder.dart": const [
|
||||
"Library 'dart:core' doesn't export a 'MapEntry' declaration.",
|
||||
],
|
||||
};
|
||||
|
||||
const List<String> SKIP_LIST = const <String>[
|
||||
|
|
|
@ -58,6 +58,13 @@ const Map<String, List<String>> WHITE_LIST = const {
|
|||
"pkg/kernel/lib/transformations/closure/": const [
|
||||
"Duplicated library name 'kernel.transformations.closure.converter'",
|
||||
],
|
||||
|
||||
"pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart": const [
|
||||
"Library 'dart:core' doesn't export a 'MapEntry' declaration.",
|
||||
],
|
||||
"pkg/front_end/lib/src/fasta/kernel/body_builder.dart": const [
|
||||
"Library 'dart:core' doesn't export a 'MapEntry' declaration.",
|
||||
],
|
||||
};
|
||||
|
||||
void main() {
|
||||
|
|
Loading…
Reference in a new issue