 Chromium Code Reviews
 Chromium Code Reviews Issue 1212513002:
  sdk files reorganization to make dart2js a proper package  (Closed) 
  Base URL: git@github.com:dart-lang/sdk.git@master
    
  
    Issue 1212513002:
  sdk files reorganization to make dart2js a proper package  (Closed) 
  Base URL: git@github.com:dart-lang/sdk.git@master| OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 library dart2js.library_loader; | 5 library dart2js.library_loader; | 
| 6 | 6 | 
| 7 import 'dart:async'; | 7 import 'dart:async'; | 
| 8 | 8 | 
| 9 import 'dart2jslib.dart' show | 9 import 'dart2jslib.dart' show | 
| 10 Compiler, | 10 Compiler, | 
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 * platform library using a relative URI will _not_ result in the same library | 95 * platform library using a relative URI will _not_ result in the same library | 
| 96 * as when loaded through the dart URI. | 96 * as when loaded through the dart URI. | 
| 97 * | 97 * | 
| 98 * ## Readable URI ## | 98 * ## Readable URI ## | 
| 99 * | 99 * | 
| 100 * A 'readable URI' is an absolute URI whose scheme is either 'package' or | 100 * A 'readable URI' is an absolute URI whose scheme is either 'package' or | 
| 101 * something supported by the input provider, normally 'file'. Dart URIs such as | 101 * something supported by the input provider, normally 'file'. Dart URIs such as | 
| 102 * 'dart:core' and 'dart:_js_helper' are not readable themselves but are instead | 102 * 'dart:core' and 'dart:_js_helper' are not readable themselves but are instead | 
| 103 * resolved into a readable URI using the library root URI provided from the | 103 * resolved into a readable URI using the library root URI provided from the | 
| 104 * command line and the list of platform libraries found in | 104 * command line and the list of platform libraries found in | 
| 105 * 'sdk/lib/_internal/libraries.dart'. This is done through the | 105 * 'sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart'. This is done thr ough | 
| 
floitsch
2015/06/29 09:08:23
long line.
 
Siggi Cherem (dart-lang)
2015/06/29 16:19:12
thx, oops, it got even longer after the second tim
 | |
| 106 * [Compiler.translateResolvedUri] method which checks whether a library by that | 106 * the [Compiler.translateResolvedUri] method which checks whether a library by | 
| 107 * name exists and in case of internal libraries whether access is granted. | 107 * that name exists and in case of internal libraries whether access is granted. | 
| 108 * | 108 * | 
| 109 * ## Resource URI ## | 109 * ## Resource URI ## | 
| 110 * | 110 * | 
| 111 * A 'resource URI' is an absolute URI with a scheme supported by the input | 111 * A 'resource URI' is an absolute URI with a scheme supported by the input | 
| 112 * provider. For the standard implementation this means a URI with the 'file' | 112 * provider. For the standard implementation this means a URI with the 'file' | 
| 113 * scheme. Readable URIs are converted into resource URIs as part of the | 113 * scheme. Readable URIs are converted into resource URIs as part of the | 
| 114 * [Compiler.readScript] method. In the standard implementation the package URIs | 114 * [Compiler.readScript] method. In the standard implementation the package URIs | 
| 115 * are converted to file URIs using the package root URI provided on the | 115 * are converted to file URIs using the package root URI provided on the | 
| 116 * command line as base. If the package root URI is | 116 * command line as base. If the package root URI is | 
| 117 * 'file:///current/working/dir/' then the package URI 'package:foo/bar.dart' | 117 * 'file:///current/working/dir/' then the package URI 'package:foo/bar.dart' | 
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1194 } | 1194 } | 
| 1195 suffixes.add(const Link<Uri>().prepend(canonicalUri)); | 1195 suffixes.add(const Link<Uri>().prepend(canonicalUri)); | 
| 1196 } | 1196 } | 
| 1197 suffixChainMap[library] = suffixes; | 1197 suffixChainMap[library] = suffixes; | 
| 1198 return; | 1198 return; | 
| 1199 } | 1199 } | 
| 1200 | 1200 | 
| 1201 computeSuffixes(rootLibrary, const Link<Uri>()); | 1201 computeSuffixes(rootLibrary, const Link<Uri>()); | 
| 1202 } | 1202 } | 
| 1203 } | 1203 } | 
| OLD | NEW |