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

Unified Diff: frog/leg/api.dart

Issue 9873021: Move frog/leg to lib/compiler/implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « frog/leg/README.txt ('k') | frog/leg/apiimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/api.dart
===================================================================
--- frog/leg/api.dart (revision 5925)
+++ frog/leg/api.dart (working copy)
@@ -1,50 +0,0 @@
-// Copyright (c) 2012, the Dart 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 file.
-
-#library('leg_api');
-
-#import('../../lib/uri/uri.dart');
-#import('apiimpl.dart');
-
-// Unless explicitly allowed, passing null for any argument to the
-// methods of library will result in a NullPointerException being
-// thrown.
-
-/**
- * Returns the source corresponding to [uri]. If no such source exists
- * or if an error occur while fetching it, this method must throw an
- * exception.
- */
-typedef Future<String> ReadUriFromString(Uri uri);
-
-/**
- * Invoked by the compiler to report diagnostics. If [uri] is null, so
- * is [begin] and [end]. No other arguments may be null. If [uri] is
- * not null, neither are [begin] and [end]. [uri] indicates the
- * compilation unit from where the diagnostic originates. [begin] and
- * [end] are zero-based character offsets from the beginning of the
- * compilaton unit. [message] is the diagnostic message, and [fatal]
- * indicates whether or not this diagnostic will prevent the compiler
- * from returning null.
- */
-typedef void DiagnosticHandler(Uri uri, int begin, int end,
- String message, bool fatal);
-
-/**
- * Returns [script] compiled to JavaScript. If the compilation fails,
- * null is returned and [handler] will have been invoked at least once
- * with [:fatal == true:].
- */
-Future<String> compile(Uri script,
- Uri libraryRoot,
- ReadUriFromString provider,
- DiagnosticHandler handler,
- [List<String> options = const []]) {
- Compiler compiler = new Compiler(provider, handler, libraryRoot, options);
- compiler.run(script);
- String code = compiler.assembledCode;
- Completer<String> completer = new Completer<String>();
- completer.complete(code);
- return completer.future;
-}
« no previous file with comments | « frog/leg/README.txt ('k') | frog/leg/apiimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698