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

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

Issue 1490233007: Remove the old task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@analyzer-breaking-0.27
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
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/engine.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.constant; 5 library engine.constant;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/utilities_general.dart'; 10 import 'package:analyzer/src/generated/utilities_general.dart';
(...skipping 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 * (We return the string 2162 * (We return the string
2163 */ 2163 */
2164 String toSymbolValue(); 2164 String toSymbolValue();
2165 2165
2166 /** 2166 /**
2167 * Return the representation of the type corresponding to the value of the 2167 * Return the representation of the type corresponding to the value of the
2168 * object being represented, or `null` if 2168 * object being represented, or `null` if
2169 * * this object is not of type 'Type', or 2169 * * this object is not of type 'Type', or
2170 * * the value of the object being represented is `null`. 2170 * * the value of the object being represented is `null`.
2171 */ 2171 */
2172 ParameterizedType toTypeValue(); 2172 DartType toTypeValue();
2173 } 2173 }
2174 2174
2175 /** 2175 /**
2176 * A utility class that contains methods for manipulating instances of a Dart 2176 * A utility class that contains methods for manipulating instances of a Dart
2177 * class and for collecting errors during evaluation. 2177 * class and for collecting errors during evaluation.
2178 */ 2178 */
2179 class DartObjectComputer { 2179 class DartObjectComputer {
2180 /** 2180 /**
2181 * The error reporter that we are using to collect errors. 2181 * The error reporter that we are using to collect errors.
2182 */ 2182 */
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
3123 3123
3124 @override 3124 @override
3125 String toSymbolValue() { 3125 String toSymbolValue() {
3126 if (_state is SymbolState) { 3126 if (_state is SymbolState) {
3127 return (_state as SymbolState).value; 3127 return (_state as SymbolState).value;
3128 } 3128 }
3129 return null; 3129 return null;
3130 } 3130 }
3131 3131
3132 @override 3132 @override
3133 ParameterizedType toTypeValue() { 3133 DartType toTypeValue() {
3134 if (_state is TypeState) { 3134 if (_state is TypeState) {
3135 Element element = (_state as TypeState).value; 3135 Element element = (_state as TypeState).value;
3136 if (element is ClassElement) { 3136 if (element is TypeDefiningElement) {
3137 return element.type;
3138 }
3139 if (element is FunctionElement) {
3140 return element.type; 3137 return element.type;
3141 } 3138 }
3142 } 3139 }
3143 return null; 3140 return null;
3144 } 3141 }
3145 } 3142 }
3146 3143
3147 /** 3144 /**
3148 * An object used to provide access to the values of variables that have been 3145 * An object used to provide access to the values of variables that have been
3149 * defined on the command line using the `-D` option. 3146 * defined on the command line using the `-D` option.
(...skipping 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after
5567 return BoolState.from(_element == rightElement); 5564 return BoolState.from(_element == rightElement);
5568 } else if (rightOperand is DynamicState) { 5565 } else if (rightOperand is DynamicState) {
5569 return BoolState.UNKNOWN_VALUE; 5566 return BoolState.UNKNOWN_VALUE;
5570 } 5567 }
5571 return BoolState.FALSE_STATE; 5568 return BoolState.FALSE_STATE;
5572 } 5569 }
5573 5570
5574 @override 5571 @override
5575 String toString() => _element == null ? "-unknown-" : _element.name; 5572 String toString() => _element == null ? "-unknown-" : _element.name;
5576 } 5573 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698