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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_class_builder.dart

Issue 2880213002: Reduce use of relativize and unsort methods. (Closed)
Patch Set: Fix warning and ensure only one AST node is created. 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/front_end/lib/src/fasta/source/source_class_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_class_builder.dart b/pkg/front_end/lib/src/fasta/source/source_class_builder.dart
index 7b6c27af767857bab2c7da7f69504d748a316942..11acdf99338ac1657ad84d1ae2c4b1623b251777 100644
--- a/pkg/front_end/lib/src/fasta/source/source_class_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_class_builder.dart
@@ -33,12 +33,10 @@ import '../kernel/kernel_builder.dart'
import '../dill/dill_member_builder.dart' show DillMemberBuilder;
-import '../util/relativize.dart' show relativizeUri;
-
Class initializeClass(
- Class cls, String name, LibraryBuilder parent, int charOffset) {
+ Class cls, String name, KernelLibraryBuilder parent, int charOffset) {
cls ??= new Class(name: name);
- cls.fileUri ??= relativizeUri(parent.fileUri);
+ cls.fileUri ??= parent.library.fileUri;
if (cls.fileOffset == TreeNode.noOffset) {
cls.fileOffset = charOffset;
}

Powered by Google App Engine
This is Rietveld 408576698