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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index ff6d4eb0013035c9182867770f0074c68f32a997..3253ef5aa4e786e81097b4f4843a4e5ba2fb6d25 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -612,8 +612,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
finishSend(Object receiver, Arguments arguments, int charOffset) {
bool isIdentical(Object receiver) {
return receiver is StaticAccessor &&
- receiver.readTarget ==
- coreTypes.tryGetTopLevelMember("dart:core", null, "identical");
+ receiver.readTarget == coreTypes.identicalProcedure;
}
if (receiver is FastaAccessor) {
@@ -784,7 +783,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
}
warning(message, charOffset);
Constructor constructor =
- coreTypes.getClass("dart:core", "NoSuchMethodError").constructors.first;
+ coreTypes.noSuchMethodErrorClass.constructors.first;
return new Throw(new ConstructorInvocation(
constructor,
astFactory.arguments(<Expression>[
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698