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

Side by Side Diff: pkg/analyzer/lib/src/generated/resolver.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
« no previous file with comments | « pkg/analyzer/lib/src/generated/html.dart ('k') | pkg/analyzer/lib/src/generated/source.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 library engine.resolver; 5 library engine.resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 7347 matching lines...) Expand 10 before | Expand all | Expand 10 after
7358 * AST structures. 7358 * AST structures.
7359 */ 7359 */
7360 HashMap<Source, CompilationUnit> _astMap = new HashMap<Source, CompilationUnit >(); 7360 HashMap<Source, CompilationUnit> _astMap = new HashMap<Source, CompilationUnit >();
7361 7361
7362 /** 7362 /**
7363 * The library scope used when resolving elements within this library's compil ation units. 7363 * The library scope used when resolving elements within this library's compil ation units.
7364 */ 7364 */
7365 LibraryScope _libraryScope; 7365 LibraryScope _libraryScope;
7366 7366
7367 /** 7367 /**
7368 * An empty array that can be used to initialize lists of libraries. 7368 * An empty list that can be used to initialize lists of libraries.
7369 */ 7369 */
7370 static List<Library> _EMPTY_ARRAY = new List<Library>(0); 7370 static const List<Library> _EMPTY_ARRAY = const <Library>[];
7371 7371
7372 /** 7372 /**
7373 * The prefix of a URI using the dart-ext scheme to reference a native code li brary. 7373 * The prefix of a URI using the dart-ext scheme to reference a native code li brary.
7374 */ 7374 */
7375 static String _DART_EXT_SCHEME = "dart-ext:"; 7375 static String _DART_EXT_SCHEME = "dart-ext:";
7376 7376
7377 /** 7377 /**
7378 * Initialize a newly created data holder that can maintain the data associate d with a library. 7378 * Initialize a newly created data holder that can maintain the data associate d with a library.
7379 * 7379 *
7380 * @param analysisContext the analysis context in which this library is being analyzed 7380 * @param analysisContext the analysis context in which this library is being analyzed
(...skipping 8430 matching lines...) Expand 10 before | Expand all | Expand 10 after
15811 _errorListener.onError( 15811 _errorListener.onError(
15812 new AnalysisError.con2( 15812 new AnalysisError.con2(
15813 element.source, 15813 element.source,
15814 element.nameOffset, 15814 element.nameOffset,
15815 element.displayName.length, 15815 element.displayName.length,
15816 errorCode, 15816 errorCode,
15817 arguments)); 15817 arguments));
15818 } 15818 }
15819 } 15819 }
15820 } 15820 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/html.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698