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

Unified Diff: pkg/fletchc/lib/src/fletch_context.dart

Issue 918613002: Refactor implementation to address review comments and API design suggestions from Luke. (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 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/fletchc/lib/src/fletch_context.dart
diff --git a/pkg/fletchc/lib/src/fletch_context.dart b/pkg/fletchc/lib/src/fletch_context.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2fdc45b9cbb68543e20435cc1481572816e6d065
--- /dev/null
+++ b/pkg/fletchc/lib/src/fletch_context.dart
@@ -0,0 +1,36 @@
+// Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE.md file.
+
+library fletchc.fletch_context;
+
+import 'fletch_compiler.dart' show
+ FletchCompiler;
+
+export 'fletch_compiler.dart' show
+ FletchCompiler;
+
+import 'fletch_backend.dart' show
+ FletchBackend;
+
+export 'fletch_backend.dart' show
+ FletchBackend;
+
+import 'fletch_resolution_callbacks.dart' show
+ FletchResolutionCallbacks;
+
+export 'fletch_resolution_callbacks.dart' show
+ FletchResolutionCallbacks;
+
+export 'bytecode_builder.dart' show
+ BytecodeBuilder;
+
+class FletchContext {
+ final FletchCompiler compiler;
+
+ FletchResolutionCallbacks resolutionCallbacks;
+
+ FletchContext(this.compiler);
+
+ FletchBackend get backend => compiler.backend;
+}

Powered by Google App Engine
This is Rietveld 408576698