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

Unified Diff: pkg/front_end/lib/src/fasta/builder/class_builder.dart

Issue 2755983002: Implement override checks for methods. (Closed)
Patch Set: Add TODO and merged with master. Created 3 years, 9 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/front_end/lib/src/fasta/builder/class_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/class_builder.dart b/pkg/front_end/lib/src/fasta/builder/class_builder.dart
index b85c794fa14cb4abde5781ed1eecfbb28fc57ea8..991c2367d7eaafb31fb03ee4667288a12478d115 100644
--- a/pkg/front_end/lib/src/fasta/builder/class_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/class_builder.dart
@@ -54,6 +54,11 @@ abstract class ClassBuilder<T extends TypeBuilder, R>
Map<String, Builder> get membersInScope => members;
+ LibraryBuilder get library {
+ LibraryBuilder library = parent;
+ return library.partOfLibrary ?? library;
+ }
+
int resolveConstructors(LibraryBuilder library) {
if (constructorReferences == null) return 0;
Scope scope = computeInstanceScope(library.scope);
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/analyzer_loader.dart ('k') | pkg/front_end/lib/src/fasta/builder/library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698