Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
fb953b71
Unverified
Commit
fb953b71
authored
Mar 03, 2020
by
Konstantin Scheglov
Committed by
GitHub
Mar 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast to List<dynamic> and cast(). (#51591)
parent
ad44b05c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
wait.dart
packages/flutter_driver/lib/src/common/wait.dart
+1
-1
asset.dart
packages/flutter_tools/lib/src/asset.dart
+1
-1
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+1
-1
coverage_collector.dart
packages/flutter_tools/lib/src/test/coverage_collector.dart
+2
-2
dart_vm.dart
...s/fuchsia_remote_debug_protocol/lib/src/dart/dart_vm.dart
+2
-2
No files found.
packages/flutter_driver/lib/src/common/wait.dart
View file @
fb953b71
...
...
@@ -251,7 +251,7 @@ class CombinedCondition extends SerializableWaitCondition {
}
final
List
<
SerializableWaitCondition
>
conditions
=
<
SerializableWaitCondition
>[];
for
(
final
Map
<
String
,
dynamic
>
condition
in
json
.
decode
(
jsonMap
[
'conditions'
]
))
{
for
(
final
Map
<
String
,
dynamic
>
condition
in
(
json
.
decode
(
jsonMap
[
'conditions'
])
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>(
))
{
conditions
.
add
(
_deserialize
(
condition
.
cast
<
String
,
String
>()));
}
return
CombinedCondition
(
conditions
);
...
...
packages/flutter_tools/lib/src/asset.dart
View file @
fb953b71
...
...
@@ -335,7 +335,7 @@ List<_Asset> _getMaterialAssets(String fontSet) {
final
List
<
_Asset
>
result
=
<
_Asset
>[];
for
(
final
Map
<
String
,
dynamic
>
family
in
_getMaterialFonts
(
fontSet
))
{
for
(
final
Map
<
dynamic
,
dynamic
>
font
in
family
[
'fonts'
]
)
{
for
(
final
Map
<
dynamic
,
dynamic
>
font
in
(
family
[
'fonts'
]
as
List
<
dynamic
>).
cast
<
Map
<
dynamic
,
dynamic
>>()
)
{
final
Uri
entryUri
=
globals
.
fs
.
path
.
toUri
(
font
[
'asset'
]
as
String
);
result
.
add
(
_Asset
(
baseDir:
globals
.
fs
.
path
.
join
(
Cache
.
flutterRoot
,
'bin'
,
'cache'
,
'artifacts'
,
'material_fonts'
),
...
...
packages/flutter_tools/lib/src/run_hot.dart
View file @
fb953b71
...
...
@@ -597,7 +597,7 @@ class HotRunner extends ResidentRunner {
if
(!(
reloadReport
[
'success'
]
as
bool
))
{
if
(
printErrors
)
{
globals
.
printError
(
'Hot reload was rejected:'
);
for
(
final
Map
<
String
,
dynamic
>
notice
in
reloadReport
[
'details'
][
'notices'
]
)
{
for
(
final
Map
<
String
,
dynamic
>
notice
in
(
reloadReport
[
'details'
][
'notices'
]
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>()
)
{
globals
.
printError
(
'
${notice['message']}
'
);
}
}
...
...
packages/flutter_tools/lib/src/test/coverage_collector.dart
View file @
fb953b71
...
...
@@ -206,7 +206,7 @@ Future<Map<String, dynamic>> _getAllCoverage(VMService service, bool Function(St
if
(
scriptList
[
'scripts'
]
==
null
)
{
continue
;
}
for
(
final
Map
<
String
,
dynamic
>
script
in
scriptList
[
'scripts'
]
)
{
for
(
final
Map
<
String
,
dynamic
>
script
in
(
scriptList
[
'scripts'
]
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>()
)
{
if
(!
libraryPredicate
(
script
[
'uri'
]
as
String
))
{
continue
;
}
...
...
@@ -247,7 +247,7 @@ void _buildCoverageMap(
final
Map
<
String
,
Map
<
int
,
int
>>
hitMaps
=
<
String
,
Map
<
int
,
int
>>{};
for
(
final
String
scriptId
in
scripts
.
keys
)
{
final
Map
<
String
,
dynamic
>
sourceReport
=
sourceReports
[
scriptId
];
for
(
final
Map
<
String
,
dynamic
>
range
in
sourceReport
[
'ranges'
]
)
{
for
(
final
Map
<
String
,
dynamic
>
range
in
(
sourceReport
[
'ranges'
]
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>()
)
{
final
Map
<
String
,
dynamic
>
coverage
=
castStringKeyedMap
(
range
[
'coverage'
]);
// Coverage reports may sometimes be null for a Script.
if
(
coverage
==
null
)
{
...
...
packages/fuchsia_remote_debug_protocol/lib/src/dart/dart_vm.dart
View file @
fb953b71
...
...
@@ -170,7 +170,7 @@ class DartVm {
final
Map
<
String
,
dynamic
>
jsonVmRef
=
await
invokeRpc
(
'getVM'
,
timeout:
timeout
);
final
List
<
IsolateRef
>
result
=
<
IsolateRef
>[];
for
(
final
Map
<
String
,
dynamic
>
jsonIsolate
in
jsonVmRef
[
'isolates'
]
)
{
for
(
final
Map
<
String
,
dynamic
>
jsonIsolate
in
(
jsonVmRef
[
'isolates'
]
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>()
)
{
final
String
name
=
jsonIsolate
[
'name'
]
as
String
;
if
(
pattern
.
matchAsPrefix
(
name
)
!=
null
)
{
_log
.
fine
(
'Found Isolate matching "
$pattern
": "
$name
"'
);
...
...
@@ -213,7 +213,7 @@ class DartVm {
final
List
<
FlutterView
>
views
=
<
FlutterView
>[];
final
Map
<
String
,
dynamic
>
rpcResponse
=
await
invokeRpc
(
'_flutter.listViews'
,
timeout:
timeout
);
for
(
final
Map
<
String
,
dynamic
>
jsonView
in
rpcResponse
[
'views'
]
)
{
for
(
final
Map
<
String
,
dynamic
>
jsonView
in
(
rpcResponse
[
'views'
]
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>()
)
{
final
FlutterView
flutterView
=
FlutterView
.
_fromJson
(
jsonView
);
if
(
flutterView
!=
null
)
{
views
.
add
(
flutterView
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment