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

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

Issue 898113002: Add sharedfrontend package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status. Created 5 years, 10 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/pubspec.yaml » ('j') | pkg/analyzer/pubspec.yaml » ('J')
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 // 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:sharedfrontend/elements.dart' as shared;
13
12 import 'ast.dart'; 14 import 'ast.dart';
13 import 'constant.dart' show EvaluationResultImpl; 15 import 'constant.dart' show EvaluationResultImpl;
14 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException; 16 import 'engine.dart' show AnalysisContext, AnalysisEngine, AnalysisException;
15 import 'html.dart' show XmlAttributeNode, XmlTagNode; 17 import 'html.dart' show XmlAttributeNode, XmlTagNode;
16 import 'java_core.dart'; 18 import 'java_core.dart';
17 import 'java_engine.dart'; 19 import 'java_engine.dart';
18 import 'resolver.dart'; 20 import 'resolver.dart';
19 import 'scanner.dart' show Keyword; 21 import 'scanner.dart' show Keyword;
20 import 'sdk.dart' show DartSdk; 22 import 'sdk.dart' show DartSdk;
21 import 'source.dart'; 23 import 'source.dart';
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 106
105 @override 107 @override
106 BottomTypeImpl substitute2(List<DartType> argumentTypes, 108 BottomTypeImpl substitute2(List<DartType> argumentTypes,
107 List<DartType> parameterTypes) => 109 List<DartType> parameterTypes) =>
108 this; 110 this;
109 } 111 }
110 112
111 /** 113 /**
112 * The interface `ClassElement` defines the behavior of elements that represent a class. 114 * The interface `ClassElement` defines the behavior of elements that represent a class.
113 */ 115 */
114 abstract class ClassElement implements Element { 116 abstract class ClassElement implements Element, shared.ClassElement {
115 /** 117 /**
116 * Return an array containing all of the accessors (getters and setters) decla red in this class. 118 * Return an array containing all of the accessors (getters and setters) decla red in this class.
117 * 119 *
118 * @return the accessors declared in this class 120 * @return the accessors declared in this class
119 */ 121 */
120 List<PropertyAccessorElement> get accessors; 122 List<PropertyAccessorElement> get accessors;
121 123
122 /** 124 /**
123 * Return an array containing all the supertypes defined for this class and it s supertypes. This 125 * Return an array containing all the supertypes defined for this class and it s supertypes. This
124 * includes superclasses, mixins and interfaces. 126 * includes superclasses, mixins and interfaces.
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 * <i>synthetic</i>. Examples of synthetic elements include 2229 * <i>synthetic</i>. Examples of synthetic elements include
2228 * * default constructors in classes that do not define any explicit constructor s, 2230 * * default constructors in classes that do not define any explicit constructor s,
2229 * * getters and setters that are induced by explicit field declarations, 2231 * * getters and setters that are induced by explicit field declarations,
2230 * * fields that are induced by explicit declarations of getters and setters, an d 2232 * * fields that are induced by explicit declarations of getters and setters, an d
2231 * * functions representing the initialization expression for a variable. 2233 * * functions representing the initialization expression for a variable.
2232 * 2234 *
2233 * Second, there are elements in the element model that do not have a name. Thes e correspond to 2235 * Second, there are elements in the element model that do not have a name. Thes e correspond to
2234 * unnamed functions and exist in order to more accurately represent the semanti c structure of the 2236 * unnamed functions and exist in order to more accurately represent the semanti c structure of the
2235 * program. 2237 * program.
2236 */ 2238 */
2237 abstract class Element { 2239 abstract class Element extends shared.Element {
2238 /** 2240 /**
2239 * An Unicode right arrow. 2241 * An Unicode right arrow.
2240 */ 2242 */
2241 static final String RIGHT_ARROW = " \u2192 "; 2243 static final String RIGHT_ARROW = " \u2192 ";
2242 2244
2243 /** 2245 /**
2244 * A comparator that can be used to sort elements by their name offset. Elemen ts with a smaller 2246 * A comparator that can be used to sort elements by their name offset. Elemen ts with a smaller
2245 * offset will be sorted to be before elements with a larger name offset. 2247 * offset will be sorted to be before elements with a larger name offset.
2246 */ 2248 */
2247 static final Comparator<Element> SORT_BY_OFFSET = 2249 static final Comparator<Element> SORT_BY_OFFSET =
(...skipping 4872 matching lines...) Expand 10 before | Expand all | Expand 10 after
7120 @override 7122 @override
7121 ElementKind get kind => ElementKind.LABEL; 7123 ElementKind get kind => ElementKind.LABEL;
7122 7124
7123 @override 7125 @override
7124 accept(ElementVisitor visitor) => visitor.visitLabelElement(this); 7126 accept(ElementVisitor visitor) => visitor.visitLabelElement(this);
7125 } 7127 }
7126 7128
7127 /** 7129 /**
7128 * The interface `LibraryElement` defines the behavior of elements representing a library. 7130 * The interface `LibraryElement` defines the behavior of elements representing a library.
7129 */ 7131 */
7130 abstract class LibraryElement implements Element { 7132 abstract class LibraryElement implements Element, shared.LibraryElement {
7131 /** 7133 /**
7132 * Return the compilation unit that defines this library. 7134 * Return the compilation unit that defines this library.
7133 * 7135 *
7134 * @return the compilation unit that defines this library 7136 * @return the compilation unit that defines this library
7135 */ 7137 */
7136 CompilationUnitElement get definingCompilationUnit; 7138 CompilationUnitElement get definingCompilationUnit;
7137 7139
7138 /** 7140 /**
7139 * Return the entry point for this library, or `null` if this library does not have an entry 7141 * Return the entry point for this library, or `null` if this library does not have an entry
7140 * point. The entry point is defined to be a zero argument top-level function whose name is 7142 * point. The entry point is defined to be a zero argument top-level function whose name is
(...skipping 4019 matching lines...) Expand 10 before | Expand all | Expand 10 after
11160 // bottom <: void (as bottom is a subtype of all types). 11162 // bottom <: void (as bottom is a subtype of all types).
11161 // void <: dynamic (as dynamic is a supertype of all types) 11163 // void <: dynamic (as dynamic is a supertype of all types)
11162 return identical(type, this) || type.isDynamic; 11164 return identical(type, this) || type.isDynamic;
11163 } 11165 }
11164 11166
11165 @override 11167 @override
11166 VoidTypeImpl substitute2(List<DartType> argumentTypes, 11168 VoidTypeImpl substitute2(List<DartType> argumentTypes,
11167 List<DartType> parameterTypes) => 11169 List<DartType> parameterTypes) =>
11168 this; 11170 this;
11169 } 11171 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/pubspec.yaml » ('j') | pkg/analyzer/pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698