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

Unified Diff: frog/reader.dart

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 years, 6 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/presubmit.py ('k') | frog/scripts/bootstrap/build_frogpad_js.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/reader.dart
diff --git a/frog/reader.dart b/frog/reader.dart
deleted file mode 100644
index 4b3c0fe302e61afba1b1abc1e7f584e45fa66715..0000000000000000000000000000000000000000
--- a/frog/reader.dart
+++ /dev/null
@@ -1,77 +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.
-
-/**
- * An code reader that abstracts away the distinction between internal and user
- * libraries.
- */
-class LibraryReader {
- Map _specialLibs;
- LibraryReader() {
- if (options.config == 'dev') {
- _specialLibs = {
- 'dart:core': joinPaths(options.libDir, 'corelib.dart'),
- 'dart:coreimpl': joinPaths(options.libDir, 'corelib_impl.dart'),
- 'dart:html': joinPaths(options.libDir,
- '../../lib/html/frog/html_frog.dart'),
- 'dart:dom_deprecated': joinPaths(options.libDir,
- '../../lib/dom/frog/dom_frog.dart'),
- 'dart:crypto': joinPaths(options.libDir,
- '../../lib/crypto/crypto.dart'),
- 'dart:json': joinPaths(options.libDir, '../../lib/json/json_frog.dart'),
- 'dart:io': joinPaths(options.libDir,
- '../../lib/compiler/implementation/lib/io.dart'),
- 'dart:isolate': joinPaths(options.libDir,
- '../../lib/isolate/isolate_frog.dart'),
- 'dart:uri': joinPaths(options.libDir, '../../lib/uri/uri.dart'),
- 'dart:utf': joinPaths(options.libDir, '../../lib/utf/utf.dart'),
- };
- } else if (options.config == 'sdk') {
- _specialLibs = {
- 'dart:core': joinPaths(options.libDir, 'core/core_frog.dart'),
- 'dart:coreimpl': joinPaths(options.libDir,
- 'coreimpl/coreimpl_frog.dart'),
- 'dart:html': joinPaths(options.libDir, 'html/html_frog.dart'),
- 'dart:dom_deprecated': joinPaths(options.libDir, 'dom/dom_frog.dart'),
- // TODO(rnystrom): How should we handle dart:io here?
- 'dart:isolate': joinPaths(options.libDir, 'isolate/isolate_frog.dart'),
- 'dart:crypto': joinPaths(options.libDir, 'crypto/crypto.dart'),
- 'dart:json': joinPaths(options.libDir, 'json/json_frog.dart'),
- 'dart:uri': joinPaths(options.libDir, 'uri/uri.dart'),
- 'dart:utf': joinPaths(options.libDir, 'utf/utf.dart'),
- };
- } else {
- world.error('Invalid configuration ${options.config}');
- }
- }
-
- SourceFile readFile(String fullName) {
- String filename;
-
-
- if (fullName.startsWith('package:')) {
- String name = fullName.substring('package:'.length);
- if (options.packageRoot !== null) {
- filename = joinPaths(options.packageRoot, name);
- } else {
- filename = joinPaths(dirname(options.dartScript),
- joinPaths('packages', name));
- }
- } else {
- filename = _specialLibs[fullName];
- }
-
- if (filename == null) {
- filename = fullName;
- }
-
- if (world.files.fileExists(filename)) {
- // TODO(jimhug): Should we cache these based on time stamps here?
- return new SourceFile(filename, world.files.readAll(filename));
- } else {
- world.error('File not found: $filename', null);
- return new SourceFile(filename, '');
- }
- }
-}
« no previous file with comments | « frog/presubmit.py ('k') | frog/scripts/bootstrap/build_frogpad_js.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698