mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Manual roll of Dart SDK from ce76503f5b46 to dcd5a8f005a (#22766)
dart-lang/sdk@dcd5a8f005 [vm/aot] Two improvements to signature shaking (reland) dart-lang/sdk@5bff8f3bb4 [co19] Roll co19 to 8740182c0547c1b26b79a5f96e28a0d5cd27b0c9 dart-lang/sdk@b16e402fb9 Prepare for replacing PackageBundle with PackageBundleReader. dart-lang/sdk@85174e4d8c Revert "Reland "update Glob in the sdk, also adds package:file to the sdk"" dart-lang/sdk@4a206e4108 Analyzer: Report invalid instance access from closure within factory dart-lang/sdk@72e8eab7e2 [vm/concurrency] Reduce public API surface of ICData, remove unused methods, make methods private dart-lang/sdk@94f6532bd9 Capture a couple of failing completions as tests dart-lang/sdk@c62709e87b Reland "update Glob in the sdk, also adds package:file to the sdk" dart-lang/sdk@4fc797d6b1 [Analyzer] Add LSP dart.analysisExcludedFolders to readme dart-lang/sdk@e047dd60d6 Ensure that function elements inside local variable elements have unique locations. dart-lang/sdk@7de67100a3 [co19] Roll co19 to 7a43aa19fb31db657b8b2dac2ed8a8af28889be3 dart-lang/sdk@367761987b [vm/corelib] Fix ConcurrentModificationError for empty addAll. dart-lang/sdk@b64550eaff Add a `nullFuture` in `dart:internal`.
This commit is contained in:
parent
7b5f79f1a1
commit
cec8a6e26b
2
DEPS
2
DEPS
@ -34,7 +34,7 @@ vars = {
|
||||
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
|
||||
# You can use //tools/dart/create_updated_flutter_deps.py to produce
|
||||
# updated revision list of existing dependencies.
|
||||
'dart_revision': 'ce76503f5b461590926ba619351518d593b81153',
|
||||
'dart_revision': 'dcd5a8f005a27361f351ef12b2ad49e700d36169',
|
||||
|
||||
# WARNING: DO NOT EDIT MANUALLY
|
||||
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Signature: e4f965835a37a079ac9033d7fe951bb4
|
||||
Signature: 32a07d90ab604d3cd5828941c268ea0d
|
||||
|
||||
UNUSED LICENSES:
|
||||
|
||||
|
||||
@ -7,6 +7,12 @@
|
||||
"packageUri": "lib",
|
||||
"languageVersion": "2.4"
|
||||
},
|
||||
{
|
||||
"name": "collection",
|
||||
"rootUri": "../../../../third_party/dart/third_party/pkg/collection",
|
||||
"packageUri": "lib",
|
||||
"languageVersion": "2.10"
|
||||
},
|
||||
{
|
||||
"name": "kernel",
|
||||
"rootUri": "../../../../third_party/dart/pkg/kernel",
|
||||
@ -32,4 +38,4 @@
|
||||
"languageVersion": "2.10"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
# Generated by pub on 2020-07-16 10:06:29.401548.
|
||||
# Generated by pub on 2020-11-27 10:12:47.813477.
|
||||
args:../../../third_party/dart/third_party/pkg/args/lib/
|
||||
collection:../../../third_party/dart/third_party/pkg/collection/lib/
|
||||
kernel:../../../third_party/dart/pkg/kernel/lib/
|
||||
meta:../../../third_party/dart/pkg/meta/lib/
|
||||
path:../../../third_party/dart/third_party/pkg/path/lib/
|
||||
|
||||
@ -18,6 +18,7 @@ environment:
|
||||
|
||||
dependencies:
|
||||
args: any
|
||||
collection: any
|
||||
meta: any
|
||||
kernel: any
|
||||
|
||||
@ -27,6 +28,8 @@ dev_dependencies:
|
||||
dependency_overrides:
|
||||
args:
|
||||
path: ../../../third_party/dart/third_party/pkg/args
|
||||
collection:
|
||||
path: ../../../third_party/dart/third_party/pkg/collection
|
||||
kernel:
|
||||
path: ../../../third_party/dart/pkg/kernel
|
||||
meta:
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
import 'dart:convert' show jsonEncode;
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:const_finder/const_finder.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
@ -16,6 +17,22 @@ void expect<T>(T value, T expected) {
|
||||
}
|
||||
}
|
||||
|
||||
void expectInstances(dynamic value, dynamic expected) {
|
||||
// To ensure we ignore insertion order into maps as well as lists we use
|
||||
// DeepCollectionEquality as well as sort the lists.
|
||||
|
||||
int compareByStringValue(dynamic a, dynamic b) {
|
||||
return a['stringValue'].compareTo(b['stringValue']) as int;
|
||||
}
|
||||
value['constantInstances'].sort(compareByStringValue);
|
||||
expected['constantInstances'].sort(compareByStringValue);
|
||||
if (!const DeepCollectionEquality().equals(value, expected)) {
|
||||
stderr.writeln('Expected: ${jsonEncode(expected)}');
|
||||
stderr.writeln('Actual: ${jsonEncode(value)}');
|
||||
exitCode = -1;
|
||||
}
|
||||
}
|
||||
|
||||
final String basePath =
|
||||
path.canonicalize(path.join(path.dirname(Platform.script.path), '..'));
|
||||
final String fixtures = path.join(basePath, 'test', 'fixtures');
|
||||
@ -50,9 +67,9 @@ void _checkConsts() {
|
||||
classLibraryUri: 'package:const_finder_fixtures/target.dart',
|
||||
className: 'Target',
|
||||
);
|
||||
expect<String>(
|
||||
jsonEncode(finder.findInstances()),
|
||||
jsonEncode(<String, dynamic>{
|
||||
expectInstances(
|
||||
finder.findInstances(),
|
||||
<String, dynamic>{
|
||||
'constantInstances': <Map<String, dynamic>>[
|
||||
<String, dynamic>{'stringValue': '100', 'intValue': 100, 'targetValue': null},
|
||||
<String, dynamic>{'stringValue': '102', 'intValue': 102, 'targetValue': null},
|
||||
@ -76,7 +93,7 @@ void _checkConsts() {
|
||||
<String, dynamic>{'stringValue': 'package', 'intValue':-1, 'targetValue': null},
|
||||
],
|
||||
'nonConstantLocations': <dynamic>[],
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
final ConstFinder finder2 = ConstFinder(
|
||||
@ -84,14 +101,14 @@ void _checkConsts() {
|
||||
classLibraryUri: 'package:const_finder_fixtures/target.dart',
|
||||
className: 'MixedInTarget',
|
||||
);
|
||||
expect<String>(
|
||||
jsonEncode(finder2.findInstances()),
|
||||
jsonEncode(<String, dynamic>{
|
||||
expectInstances(
|
||||
finder2.findInstances(),
|
||||
<String, dynamic>{
|
||||
'constantInstances': <Map<String, dynamic>>[
|
||||
<String, dynamic>{'val': '13'},
|
||||
],
|
||||
'nonConstantLocations': <dynamic>[],
|
||||
}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@ -103,9 +120,9 @@ void _checkNonConsts() {
|
||||
className: 'Target',
|
||||
);
|
||||
|
||||
expect<String>(
|
||||
jsonEncode(finder.findInstances()),
|
||||
jsonEncode(<String, dynamic>{
|
||||
expectInstances(
|
||||
finder.findInstances(),
|
||||
<String, dynamic>{
|
||||
'constantInstances': <dynamic>[
|
||||
<String, dynamic>{'stringValue': '1', 'intValue': 1, 'targetValue': null},
|
||||
<String, dynamic>{'stringValue': '6', 'intValue': 6, 'targetValue': null},
|
||||
@ -141,7 +158,7 @@ void _checkNonConsts() {
|
||||
'column': 25,
|
||||
}
|
||||
]
|
||||
}),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user