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

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

Issue 730783002: Make constant lists immutable (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
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:collection'; 10 import 'dart:collection';
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 * represents files on disk would typically query the file system to determine t he state of the 357 * represents files on disk would typically query the file system to determine t he state of the
358 * file. 358 * file.
359 * 359 *
360 * If the instances that implement this API are the system of record, then they will typically be 360 * If the instances that implement this API are the system of record, then they will typically be
361 * unique. In that case, sources that are created that represent non-existent fi les must also be 361 * unique. In that case, sources that are created that represent non-existent fi les must also be
362 * retained so that if those files are created at a later date the long-lived so urces representing 362 * retained so that if those files are created at a later date the long-lived so urces representing
363 * those files will know that they now exist. 363 * those files will know that they now exist.
364 */ 364 */
365 abstract class Source { 365 abstract class Source {
366 /** 366 /**
367 * An empty array of sources. 367 * An empty list of sources.
368 */ 368 */
369 static final List<Source> EMPTY_ARRAY = new List<Source>(0); 369 static const List<Source> EMPTY_ARRAY = const <Source>[];
370 370
371 /** 371 /**
372 * Return `true` if the given object is a source that represents the same sour ce code as 372 * Return `true` if the given object is a source that represents the same sour ce code as
373 * this source. 373 * this source.
374 * 374 *
375 * @param object the object to be compared with this object 375 * @param object the object to be compared with this object
376 * @return `true` if the given object is a source that represents the same sou rce code as 376 * @return `true` if the given object is a source that represents the same sou rce code as
377 * this source 377 * this source
378 * See [Object.==]. 378 * See [Object.==].
379 */ 379 */
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 946
947 /** 947 /**
948 * 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
949 * be computed. 949 * be computed.
950 * 950 *
951 * @param source the source to get URI for 951 * @param source the source to get URI for
952 * @return the absolute URI representing the given source 952 * @return the absolute URI representing the given source
953 */ 953 */
954 Uri restoreAbsolute(Source source) => null; 954 Uri restoreAbsolute(Source source) => null;
955 } 955 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698