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

Side by Side Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 1127183003: Rename EMPTY_ARRAY to EMPTY_LIST (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/task/dart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 static const List<Source> EMPTY_ARRAY = const <Source>[]; 403 static const List<Source> EMPTY_ARRAY = const <Source>[];
403 404
404 /** 405 /**
406 * An empty list of sources.
407 */
408 static const List<Source> EMPTY_LIST = const <Source>[];
409
410 /**
405 * Get the contents and timestamp of this source. 411 * Get the contents and timestamp of this source.
406 * 412 *
407 * Clients should consider using the the method [AnalysisContext.getContents] 413 * Clients should consider using the the method [AnalysisContext.getContents]
408 * because contexts can have local overrides of the content of a source that t he source is not 414 * because contexts can have local overrides of the content of a source that t he source is not
409 * aware of. 415 * aware of.
410 * 416 *
411 * @return the contents and timestamp of the source 417 * @return the contents and timestamp of the source
412 * @throws Exception if the contents of this source could not be accessed 418 * @throws Exception if the contents of this source could not be accessed
413 */ 419 */
414 TimestampedData<String> get contents; 420 TimestampedData<String> get contents;
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 1001
996 /** 1002 /**
997 * 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
998 * be computed. 1004 * be computed.
999 * 1005 *
1000 * @param source the source to get URI for 1006 * @param source the source to get URI for
1001 * @return the absolute URI representing the given source 1007 * @return the absolute URI representing the given source
1002 */ 1008 */
1003 Uri restoreAbsolute(Source source) => null; 1009 Uri restoreAbsolute(Source source) => null;
1004 } 1010 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698