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

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

Issue 1127423005: Move CONSTANT_DEPENDENCIES out of the analyzer public API. (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 | « no previous file | 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) 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 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * The element model associated with a single compilation unit. 75 * The element model associated with a single compilation unit.
76 * 76 *
77 * The result is only available for targets representing a Dart compilation unit . 77 * The result is only available for targets representing a Dart compilation unit .
78 */ 78 */
79 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT = 79 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT =
80 new ResultDescriptor<CompilationUnitElement>( 80 new ResultDescriptor<CompilationUnitElement>(
81 'COMPILATION_UNIT_ELEMENT', null, 81 'COMPILATION_UNIT_ELEMENT', null,
82 cachingPolicy: ELEMENT_CACHING_POLICY); 82 cachingPolicy: ELEMENT_CACHING_POLICY);
83 83
84 /** 84 /**
85 * The list of [Element]s which a given constant element depends on.
86 *
87 * The result is only available for targets representing a constant [Element]
88 * (i.e. a constant variable declaration, a constant constructor, or a
89 * parameter element with a default value).
90 */
91 final ListResultDescriptor<Element> CONSTANT_DEPENDENCIES =
92 new ListResultDescriptor<Element>('CONSTANT_DEPENDENCIES', <Element>[]);
93
94 /**
85 * An [Element] that has been successfully constant-evaluated. 95 * An [Element] that has been successfully constant-evaluated.
86 * 96 *
87 * TODO(paulberry): is ELEMENT_CACHING_POLICY the correct caching policy? 97 * TODO(paulberry): is ELEMENT_CACHING_POLICY the correct caching policy?
88 */ 98 */
89 final ResultDescriptor<Element> CONSTANT_EVALUATED_ELEMENT = 99 final ResultDescriptor<Element> CONSTANT_EVALUATED_ELEMENT =
90 new ResultDescriptor<Element>('CONST_EVALUATED_ELEMENT', null, 100 new ResultDescriptor<Element>('CONST_EVALUATED_ELEMENT', null,
91 cachingPolicy: ELEMENT_CACHING_POLICY); 101 cachingPolicy: ELEMENT_CACHING_POLICY);
92 102
93 /** 103 /**
94 * The [ConstructorElement]s of a [ClassElement]. 104 * The [ConstructorElement]s of a [ClassElement].
(...skipping 2957 matching lines...) Expand 10 before | Expand all | Expand 10 after
3052 @override 3062 @override
3053 bool moveNext() { 3063 bool moveNext() {
3054 if (_newSources.isEmpty) { 3064 if (_newSources.isEmpty) {
3055 return false; 3065 return false;
3056 } 3066 }
3057 currentTarget = _newSources.first; 3067 currentTarget = _newSources.first;
3058 _newSources.remove(currentTarget); 3068 _newSources.remove(currentTarget);
3059 return true; 3069 return true;
3060 } 3070 }
3061 } 3071 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698