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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 } | 536 } |
537 try { | 537 try { |
538 Uri uri = parseUriWithException(encoding.substring(1)); | 538 Uri uri = parseUriWithException(encoding.substring(1)); |
539 for (UriResolver resolver in _resolvers) { | 539 for (UriResolver resolver in _resolvers) { |
540 Source result = resolver.fromEncoding(kind, uri); | 540 Source result = resolver.fromEncoding(kind, uri); |
541 if (result != null) { | 541 if (result != null) { |
542 return result; | 542 return result; |
543 } | 543 } |
544 } | 544 } |
545 throw new IllegalArgumentException("No resolver for kind: ${kind}"); | 545 throw new IllegalArgumentException("No resolver for kind: ${kind}"); |
546 } on JavaException catch (exception) { | 546 } catch (exception) { |
547 throw new IllegalArgumentException("Invalid URI in encoding"); | 547 throw new IllegalArgumentException("Invalid URI in encoding"); |
548 } | 548 } |
549 } | 549 } |
550 | 550 |
551 /** | 551 /** |
552 * Return the [DartSdk] associated with this [SourceFactory], or `null` if the
re | 552 * Return the [DartSdk] associated with this [SourceFactory], or `null` if the
re |
553 * is no such SDK. | 553 * is no such SDK. |
554 * | 554 * |
555 * @return the [DartSdk] associated with this [SourceFactory], or `null` if | 555 * @return the [DartSdk] associated with this [SourceFactory], or `null` if |
556 * there is no such SDK | 556 * there is no such SDK |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 | 913 |
914 /** | 914 /** |
915 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot | 915 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot |
916 * be computed. | 916 * be computed. |
917 * | 917 * |
918 * @param source the source to get URI for | 918 * @param source the source to get URI for |
919 * @return the absolute URI representing the given source | 919 * @return the absolute URI representing the given source |
920 */ | 920 */ |
921 Uri restoreAbsolute(Source source) => null; | 921 Uri restoreAbsolute(Source source) => null; |
922 } | 922 } |
OLD | NEW |