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:math" as math; | 10 import "dart:math" as math; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 * | 392 * |
393 * If the instances that implement this API are the system of record, then they
will typically be | 393 * If the instances that implement this API are the system of record, then they
will typically be |
394 * unique. In that case, sources that are created that represent non-existent fi
les must also be | 394 * unique. In that case, sources that are created that represent non-existent fi
les must also be |
395 * retained so that if those files are created at a later date the long-lived so
urces representing | 395 * retained so that if those files are created at a later date the long-lived so
urces representing |
396 * those files will know that they now exist. | 396 * those files will know that they now exist. |
397 */ | 397 */ |
398 abstract class Source implements AnalysisTarget { | 398 abstract class Source implements AnalysisTarget { |
399 /** | 399 /** |
400 * An empty list of sources. | 400 * An empty list of sources. |
401 */ | 401 */ |
402 @deprecated | 402 @deprecated // Use Source.EMPTY_LIST |
403 static const List<Source> EMPTY_ARRAY = const <Source>[]; | 403 static const List<Source> EMPTY_ARRAY = EMPTY_LIST; |
404 | 404 |
405 /** | 405 /** |
406 * An empty list of sources. | 406 * An empty list of sources. |
407 */ | 407 */ |
408 static const List<Source> EMPTY_LIST = const <Source>[]; | 408 static const List<Source> EMPTY_LIST = const <Source>[]; |
409 | 409 |
410 /** | 410 /** |
411 * Get the contents and timestamp of this source. | 411 * Get the contents and timestamp of this source. |
412 * | 412 * |
413 * Clients should consider using the the method [AnalysisContext.getContents] | 413 * Clients should consider using the the method [AnalysisContext.getContents] |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 1001 |
1002 /** | 1002 /** |
1003 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot | 1003 * Return an absolute URI that represents the given source, or `null` if a val
id URI cannot |
1004 * be computed. | 1004 * be computed. |
1005 * | 1005 * |
1006 * @param source the source to get URI for | 1006 * @param source the source to get URI for |
1007 * @return the absolute URI representing the given source | 1007 * @return the absolute URI representing the given source |
1008 */ | 1008 */ |
1009 Uri restoreAbsolute(Source source) => null; | 1009 Uri restoreAbsolute(Source source) => null; |
1010 } | 1010 } |
OLD | NEW |