| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.source; | 8 library engine.source; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 * @return the source representing the contained URI | 631 * @return the source representing the contained URI |
| 632 */ | 632 */ |
| 633 Source resolveUri(Source containingSource, String containedUri) { | 633 Source resolveUri(Source containingSource, String containedUri) { |
| 634 if (containedUri == null || containedUri.isEmpty) { | 634 if (containedUri == null || containedUri.isEmpty) { |
| 635 return null; | 635 return null; |
| 636 } | 636 } |
| 637 try { | 637 try { |
| 638 // Force the creation of an escaped URI to deal with spaces, etc. | 638 // Force the creation of an escaped URI to deal with spaces, etc. |
| 639 return _internalResolveUri(containingSource, parseUriWithException(contain
edUri)); | 639 return _internalResolveUri(containingSource, parseUriWithException(contain
edUri)); |
| 640 } catch (exception, stackTrace) { | 640 } catch (exception, stackTrace) { |
| 641 String containingFullName = |
| 642 containingSource != null ? containingSource.fullName : '<null>'; |
| 641 AnalysisEngine.instance.logger.logError( | 643 AnalysisEngine.instance.logger.logError( |
| 642 "Could not resolve URI ($containedUri) relative to source (${containin
gSource.fullName})", | 644 "Could not resolve URI ($containedUri) relative to source ($containing
FullName)", |
| 643 new CaughtException(exception, stackTrace)); | 645 new CaughtException(exception, stackTrace)); |
| 644 return null; | 646 return null; |
| 645 } | 647 } |
| 646 } | 648 } |
| 647 | 649 |
| 648 /** | 650 /** |
| 649 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot | 651 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot |
| 650 * be computed. | 652 * be computed. |
| 651 * | 653 * |
| 652 * @param source the source to get URI for | 654 * @param source the source to get URI for |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 | 946 |
| 945 /** | 947 /** |
| 946 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot | 948 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot |
| 947 * be computed. | 949 * be computed. |
| 948 * | 950 * |
| 949 * @param source the source to get URI for | 951 * @param source the source to get URI for |
| 950 * @return the absolute URI representing the given source | 952 * @return the absolute URI representing the given source |
| 951 */ | 953 */ |
| 952 Uri restoreAbsolute(Source source) => null; | 954 Uri restoreAbsolute(Source source) => null; |
| 953 } | 955 } |
| OLD | NEW |