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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1531233002: Compute all default values of parameters. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer.src.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 * The result is only available for [Source]s representing a library. 73 * The result is only available for [Source]s representing a library.
74 */ 74 */
75 final ListResultDescriptor<AnalysisError> BUILD_LIBRARY_ERRORS = 75 final ListResultDescriptor<AnalysisError> BUILD_LIBRARY_ERRORS =
76 new ListResultDescriptor<AnalysisError>( 76 new ListResultDescriptor<AnalysisError>(
77 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS); 77 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS);
78 78
79 /** 79 /**
80 * A list of the [ConstantEvaluationTarget]s defined in a unit. This includes 80 * A list of the [ConstantEvaluationTarget]s defined in a unit. This includes
81 * constants defined at top level, statically inside classes, and local to 81 * constants defined at top level, statically inside classes, and local to
82 * functions, as well as constant constructors, annotations, and default values 82 * functions, as well as constant constructors, annotations, and default values
83 * of parameters to constant constructors. 83 * of parameters.
84 * 84 *
85 * The result is only available for [LibrarySpecificUnit]s. 85 * The result is only available for [LibrarySpecificUnit]s.
86 */ 86 */
87 final ListResultDescriptor< 87 final ListResultDescriptor<
88 ConstantEvaluationTarget> COMPILATION_UNIT_CONSTANTS = 88 ConstantEvaluationTarget> COMPILATION_UNIT_CONSTANTS =
89 new ListResultDescriptor<ConstantEvaluationTarget>( 89 new ListResultDescriptor<ConstantEvaluationTarget>(
90 'COMPILATION_UNIT_CONSTANTS', null, 90 'COMPILATION_UNIT_CONSTANTS', null,
91 cachingPolicy: ELEMENT_CACHING_POLICY); 91 cachingPolicy: ELEMENT_CACHING_POLICY);
92 92
93 /** 93 /**
(...skipping 5237 matching lines...) Expand 10 before | Expand all | Expand 10 after
5331 5331
5332 @override 5332 @override
5333 bool moveNext() { 5333 bool moveNext() {
5334 if (_newSources.isEmpty) { 5334 if (_newSources.isEmpty) {
5335 return false; 5335 return false;
5336 } 5336 }
5337 currentTarget = _newSources.removeLast(); 5337 currentTarget = _newSources.removeLast();
5338 return true; 5338 return true;
5339 } 5339 }
5340 } 5340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698