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

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

Issue 2708893002: fasta: Cache relativizeUri(fileUri) on LibraryBuilder and ClassBuilder (or rather it's base class) (Closed)
Patch Set: Reorder import Created 3 years, 10 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/builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/builder.dart b/pkg/front_end/lib/src/fasta/builder/builder.dart
index f1ed1b4de366c1815f9e5e430c838af6cdca1c26..89e5f970fa793aaacadc76106d6f47e76956a860 100644
--- a/pkg/front_end/lib/src/fasta/builder/builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/builder.dart
@@ -99,6 +99,11 @@ abstract class Builder {
Uri get fileUri => null;
+ String get relativeFileUri {
+ throw "The relativeFileUri method should be only called on subclasses "
+ "which have an efficient implementation of `relativeFileUri`!";
+ }
+
/// Resolve types (lookup names in scope) recorded in this builder and return
/// the number of types resolved.
int resolveTypes(covariant Builder parent) => 0;

Powered by Google App Engine
This is Rietveld 408576698