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

Unified Diff: pkg/kernel/lib/transformations/method_call.dart

Issue 2890933002: Use LibraryIndex in CoreTypes instead of extending it. (Closed)
Patch Set: Make everything lazy in CoreTypes. Created 3 years, 7 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/kernel/lib/transformations/method_call.dart
diff --git a/pkg/kernel/lib/transformations/method_call.dart b/pkg/kernel/lib/transformations/method_call.dart
index 7dabcbce168c45f0f1230dbc9a9a20565e434897..26ee679af01fb4aa45cf47c15093dc1fc953134f 100644
--- a/pkg/kernel/lib/transformations/method_call.dart
+++ b/pkg/kernel/lib/transformations/method_call.dart
@@ -890,7 +890,7 @@ class MethodCallTransformer extends Transformer {
ConstructorInvocation _createInvocation(
String methodName, Arguments callArguments) {
if (_invocationMirrorConstructor == null) {
- Class clazz = coreTypes.getClass('dart:core', '_InvocationMirror');
+ Class clazz = coreTypes.invocationMirrorClass;
_invocationMirrorConstructor = clazz.constructors[0];
}
@@ -934,7 +934,7 @@ class MethodCallTransformer extends Transformer {
/// Create a fixed length list containing given expressions.
Expression _fixedLengthList(List<Expression> list) {
- _listFrom ??= coreTypes.getMember('dart:core', 'List', 'from');
+ _listFrom ??= coreTypes.listFromConstructor;
return new StaticInvocation(
_listFrom,
new Arguments([new ListLiteral(list)],
« no previous file with comments | « pkg/kernel/lib/transformations/continuation.dart ('k') | pkg/kernel/lib/transformations/mixin_full_resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698