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

Unified Diff: pkg/compiler/lib/src/js_model/elements.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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
Index: pkg/compiler/lib/src/js_model/elements.dart
diff --git a/pkg/compiler/lib/src/js_model/elements.dart b/pkg/compiler/lib/src/js_model/elements.dart
index 58f32ab2f423c4e7db3e3125eff5b0af0ad4403d..5d12e2c2abca0cb7ebe68a9b538cacbc385147a1 100644
--- a/pkg/compiler/lib/src/js_model/elements.dart
+++ b/pkg/compiler/lib/src/js_model/elements.dart
@@ -58,7 +58,7 @@ class JsToFrontendMapImpl implements JsToFrontendMap {
});
}
- LibraryEntity toFrontendLibrary(JLibrary library) =>
+ LibraryEntity toFrontendLibrary(covariant JLibrary library) =>
_frontendLibraryList[library.libraryIndex];
final Map<ClassEntity, ClassEntity> _toBackendClass =
@@ -75,7 +75,8 @@ class JsToFrontendMapImpl implements JsToFrontendMap {
});
}
- ClassEntity toFrontendClass(JClass cls) => _frontendClassList[cls.classIndex];
+ ClassEntity toFrontendClass(covariant JClass cls) =>
+ _frontendClassList[cls.classIndex];
final Map<MemberEntity, MemberEntity> _toBackendMember =
<MemberEntity, MemberEntity>{};
@@ -141,7 +142,7 @@ class JsToFrontendMapImpl implements JsToFrontendMap {
});
}
- MemberEntity toFrontendMember(JMember member) =>
+ MemberEntity toFrontendMember(covariant JMember member) =>
_frontendMemberList[member.memberIndex];
DartType toBackendType(DartType type) =>
@@ -689,8 +690,8 @@ class JsBackendUsage implements BackendUsage {
@override
Iterable<FunctionEntity> get globalFunctionDependencies {
- return _backendUsage.globalFunctionDependencies
- .map((FunctionEntity e) => _map.toBackendMember(e));
+ FunctionEntity f(FunctionEntity e) => _map.toBackendMember(e);
+ return _backendUsage.globalFunctionDependencies.map(f);
}
@override
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/type_test_registry.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698