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

Unified Diff: pkg/analyzer/lib/src/generated/interner.dart

Issue 2486873003: Move scanner into pkg/front_end/lib/src/scanner. (Closed)
Patch Set: Created 4 years, 1 month 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/analyzer/lib/src/generated/interner.dart
diff --git a/pkg/analyzer/lib/src/generated/interner.dart b/pkg/analyzer/lib/src/generated/interner.dart
index 9741f2835b31fecb2636bb51b394178ca1703eaa..7bb6e5b4cb4f1044cc32e657cd9c7734d312a7c3 100644
--- a/pkg/analyzer/lib/src/generated/interner.dart
+++ b/pkg/analyzer/lib/src/generated/interner.dart
@@ -6,17 +6,10 @@ library analyzer.src.generated.interner;
import 'dart:collection';
-/**
- * The interface `Interner` defines the behavior of objects that can intern
- * strings.
- */
-abstract class Interner {
- /**
- * Return a string that is identical to all of the other strings that have
- * been interned that are equal to the given [string].
- */
- String intern(String string);
-}
+import 'package:front_end/src/scanner/interner.dart';
+
+export 'package:front_end/src/scanner/interner.dart'
+ show Interner, NullInterner;
/**
* The class `MappedInterner` implements an interner that uses a map to manage
@@ -38,12 +31,3 @@ class MappedInterner implements Interner {
return original;
}
}
-
-/**
- * The class `NullInterner` implements an interner that does nothing (does not
- * actually intern any strings).
- */
-class NullInterner implements Interner {
- @override
- String intern(String string) => string;
-}

Powered by Google App Engine
This is Rietveld 408576698