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

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

Issue 1867243004: Begin refactoring compiler out of diet parser and scanner (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/id_generator.dart
diff --git a/tests/compiler/dart2js_extra/deferred_custom_loader_lib.dart b/pkg/compiler/lib/src/id_generator.dart
similarity index 52%
copy from tests/compiler/dart2js_extra/deferred_custom_loader_lib.dart
copy to pkg/compiler/lib/src/id_generator.dart
index e8636078fd29a22beb9a84b16232df299e6f114d..ce393f9b63b4efc378429e6fcaee041323d81285 100644
--- a/tests/compiler/dart2js_extra/deferred_custom_loader_lib.dart
+++ b/pkg/compiler/lib/src/id_generator.dart
@@ -2,4 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-foo() => 499;
+/// A generator of globally unique identifiers.
+abstract class IdGenerator {
+ /// Returns the next free identifier.
+ ///
+ /// This identifier is guaranteed to be unique.
+ int getNextFreeId();
+}

Powered by Google App Engine
This is Rietveld 408576698