| OLD | NEW |
| 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.element; | 8 library engine.element; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| 11 | 11 |
| 12 import 'package:analyzer/src/generated/utilities_general.dart'; | 12 import 'package:analyzer/src/generated/utilities_general.dart'; |
| 13 import 'package:analyzer/task/model.dart' show AnalysisTarget; |
| 13 | 14 |
| 14 import 'ast.dart'; | 15 import 'ast.dart'; |
| 15 import 'constant.dart' show EvaluationResultImpl; | 16 import 'constant.dart' show EvaluationResultImpl; |
| 16 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException; | 17 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException; |
| 17 import 'html.dart' show XmlAttributeNode, XmlTagNode; | 18 import 'html.dart' show XmlAttributeNode, XmlTagNode; |
| 18 import 'java_core.dart'; | 19 import 'java_core.dart'; |
| 19 import 'java_engine.dart'; | 20 import 'java_engine.dart'; |
| 20 import 'resolver.dart'; | 21 import 'resolver.dart'; |
| 21 import 'scanner.dart' show Keyword; | 22 import 'scanner.dart' show Keyword; |
| 22 import 'sdk.dart' show DartSdk; | 23 import 'sdk.dart' show DartSdk; |
| (...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 * constructors, | 2116 * constructors, |
| 2116 * * getters and setters that are induced by explicit field declarations, | 2117 * * getters and setters that are induced by explicit field declarations, |
| 2117 * * fields that are induced by explicit declarations of getters and setters, | 2118 * * fields that are induced by explicit declarations of getters and setters, |
| 2118 * and | 2119 * and |
| 2119 * * functions representing the initialization expression for a variable. | 2120 * * functions representing the initialization expression for a variable. |
| 2120 * | 2121 * |
| 2121 * Second, there are elements in the element model that do not have a name. | 2122 * Second, there are elements in the element model that do not have a name. |
| 2122 * These correspond to unnamed functions and exist in order to more accurately | 2123 * These correspond to unnamed functions and exist in order to more accurately |
| 2123 * represent the semantic structure of the program. | 2124 * represent the semantic structure of the program. |
| 2124 */ | 2125 */ |
| 2125 abstract class Element { | 2126 abstract class Element implements AnalysisTarget { |
| 2126 /** | 2127 /** |
| 2127 * An Unicode right arrow. | 2128 * An Unicode right arrow. |
| 2128 */ | 2129 */ |
| 2129 static final String RIGHT_ARROW = " \u2192 "; | 2130 static final String RIGHT_ARROW = " \u2192 "; |
| 2130 | 2131 |
| 2131 /** | 2132 /** |
| 2132 * A comparator that can be used to sort elements by their name offset. | 2133 * A comparator that can be used to sort elements by their name offset. |
| 2133 * Elements with a smaller offset will be sorted to be before elements with a | 2134 * Elements with a smaller offset will be sorted to be before elements with a |
| 2134 * larger name offset. | 2135 * larger name offset. |
| 2135 */ | 2136 */ |
| (...skipping 8316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10452 // void <: void (by reflexivity) | 10453 // void <: void (by reflexivity) |
| 10453 // bottom <: void (as bottom is a subtype of all types). | 10454 // bottom <: void (as bottom is a subtype of all types). |
| 10454 // void <: dynamic (as dynamic is a supertype of all types) | 10455 // void <: dynamic (as dynamic is a supertype of all types) |
| 10455 return identical(type, this) || type.isDynamic; | 10456 return identical(type, this) || type.isDynamic; |
| 10456 } | 10457 } |
| 10457 | 10458 |
| 10458 @override | 10459 @override |
| 10459 VoidTypeImpl substitute2( | 10460 VoidTypeImpl substitute2( |
| 10460 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; | 10461 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; |
| 10461 } | 10462 } |
| OLD | NEW |