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

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

Issue 2000663002: Handle resolvedAst for forwarding constructors and callType on unnamed mixin applications. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix test. Created 4 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/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index de80e0b910c52c655bf4c0ded86cc2b58ffc42ce..f6a431bc7cc7ad0ad1b434a0585874bc23e1b1ee 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -15,7 +15,12 @@ import 'common/names.dart' show Selectors;
import 'common/names.dart' show Identifiers, Uris;
import 'common/registry.dart' show EagerRegistry, Registry;
import 'common/resolution.dart'
- show ParsingContext, Resolution, ResolutionWorkItem, ResolutionImpact;
+ show
+ ParsingContext,
+ Resolution,
+ ResolutionWorkItem,
+ ResolutionImpact,
+ Target;
import 'common/tasks.dart' show CompilerTask, GenericTask, Measurer;
import 'common/work.dart' show ItemCompilationContext, WorkItem;
import 'common.dart';
@@ -1033,7 +1038,7 @@ abstract class Compiler implements LibraryLoaderListener {
if (identical(e.kind, ElementKind.GENERATIVE_CONSTRUCTOR)) {
resolved.remove(e);
}
- if (backend.isBackendLibrary(e.library)) {
+ if (backend.isTargetSpecificLibrary(e.library)) {
resolved.remove(e);
}
}
@@ -1557,6 +1562,9 @@ class CompilerDiagnosticReporter extends DiagnosticReporter {
}
}
+ @override
+ bool get hasReportedError => compiler.compilationFailed;
+
/**
* Perform an operation, [f], returning the return value from [f]. If an
* error occurs then report it as having occurred during compilation of
@@ -1886,9 +1894,18 @@ class _CompilerResolution implements Resolution {
ParsingContext get parsingContext => compiler.parsingContext;
@override
+ CoreClasses get coreClasses => compiler.coreClasses;
+
+ @override
CoreTypes get coreTypes => compiler.coreTypes;
@override
+ Types get types => compiler.types;
+
+ @override
+ Target get target => compiler.backend;
+
+ @override
void registerClass(ClassElement cls) {
compiler.world.registerClass(cls);
}
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698