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

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: 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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 @override 104 @override
103 BottomTypeImpl substitute2(List<DartType> argumentTypes, 105 BottomTypeImpl substitute2(List<DartType> argumentTypes,
104 List<DartType> parameterTypes) => 106 List<DartType> parameterTypes) =>
105 this; 107 this;
106 } 108 }
107 109
108 /** 110 /**
109 * The interface `ClassElement` defines the behavior of elements that represent a class. 111 * The interface `ClassElement` defines the behavior of elements that represent a class.
110 */ 112 */
111 abstract class ClassElement implements Element { 113 abstract class ClassElement implements Element, shared.ClassElement {
112 /** 114 /**
113 * Return an array containing all of the accessors (getters and setters) decla red in this class. 115 * Return an array containing all of the accessors (getters and setters) decla red in this class.
114 * 116 *
115 * @return the accessors declared in this class 117 * @return the accessors declared in this class
116 */ 118 */
117 List<PropertyAccessorElement> get accessors; 119 List<PropertyAccessorElement> get accessors;
118 120
119 /** 121 /**
120 * Return an array containing all the supertypes defined for this class and it s supertypes. This 122 * Return an array containing all the supertypes defined for this class and it s supertypes. This
121 * includes superclasses, mixins and interfaces. 123 * includes superclasses, mixins and interfaces.
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2221 * <i>synthetic</i>. Examples of synthetic elements include 2223 * <i>synthetic</i>. Examples of synthetic elements include
2222 * * default constructors in classes that do not define any explicit constructor s, 2224 * * default constructors in classes that do not define any explicit constructor s,
2223 * * getters and setters that are induced by explicit field declarations, 2225 * * getters and setters that are induced by explicit field declarations,
2224 * * fields that are induced by explicit declarations of getters and setters, an d 2226 * * fields that are induced by explicit declarations of getters and setters, an d
2225 * * functions representing the initialization expression for a variable. 2227 * * functions representing the initialization expression for a variable.
2226 * 2228 *
2227 * Second, there are elements in the element model that do not have a name. Thes e correspond to 2229 * Second, there are elements in the element model that do not have a name. Thes e correspond to
2228 * unnamed functions and exist in order to more accurately represent the semanti c structure of the 2230 * unnamed functions and exist in order to more accurately represent the semanti c structure of the
2229 * program. 2231 * program.
2230 */ 2232 */
2231 abstract class Element { 2233 abstract class Element extends shared.Element {
2232 /** 2234 /**
2233 * An Unicode right arrow. 2235 * An Unicode right arrow.
2234 */ 2236 */
2235 static final String RIGHT_ARROW = " \u2192 "; 2237 static final String RIGHT_ARROW = " \u2192 ";
2236 2238
2237 /** 2239 /**
2238 * A comparator that can be used to sort elements by their name offset. Elemen ts with a smaller 2240 * A comparator that can be used to sort elements by their name offset. Elemen ts with a smaller
2239 * offset will be sorted to be before elements with a larger name offset. 2241 * offset will be sorted to be before elements with a larger name offset.
2240 */ 2242 */
2241 static final Comparator<Element> SORT_BY_OFFSET = 2243 static final Comparator<Element> SORT_BY_OFFSET =
(...skipping 4855 matching lines...) Expand 10 before | Expand all | Expand 10 after
7097 @override 7099 @override
7098 ElementKind get kind => ElementKind.LABEL; 7100 ElementKind get kind => ElementKind.LABEL;
7099 7101
7100 @override 7102 @override
7101 accept(ElementVisitor visitor) => visitor.visitLabelElement(this); 7103 accept(ElementVisitor visitor) => visitor.visitLabelElement(this);
7102 } 7104 }
7103 7105
7104 /** 7106 /**
7105 * The interface `LibraryElement` defines the behavior of elements representing a library. 7107 * The interface `LibraryElement` defines the behavior of elements representing a library.
7106 */ 7108 */
7107 abstract class LibraryElement implements Element { 7109 abstract class LibraryElement implements Element, shared.LibraryElement {
7108 /** 7110 /**
7109 * Return the compilation unit that defines this library. 7111 * Return the compilation unit that defines this library.
7110 * 7112 *
7111 * @return the compilation unit that defines this library 7113 * @return the compilation unit that defines this library
7112 */ 7114 */
7113 CompilationUnitElement get definingCompilationUnit; 7115 CompilationUnitElement get definingCompilationUnit;
7114 7116
7115 /** 7117 /**
7116 * Return the entry point for this library, or `null` if this library does not have an entry 7118 * Return the entry point for this library, or `null` if this library does not have an entry
7117 * point. The entry point is defined to be a zero argument top-level function whose name is 7119 * point. The entry point is defined to be a zero argument top-level function whose name is
(...skipping 3996 matching lines...) Expand 10 before | Expand all | Expand 10 after
11114 // bottom <: void (as bottom is a subtype of all types). 11116 // bottom <: void (as bottom is a subtype of all types).
11115 // void <: dynamic (as dynamic is a supertype of all types) 11117 // void <: dynamic (as dynamic is a supertype of all types)
11116 return identical(type, this) || type.isDynamic; 11118 return identical(type, this) || type.isDynamic;
11117 } 11119 }
11118 11120
11119 @override 11121 @override
11120 VoidTypeImpl substitute2(List<DartType> argumentTypes, 11122 VoidTypeImpl substitute2(List<DartType> argumentTypes,
11121 List<DartType> parameterTypes) => 11123 List<DartType> parameterTypes) =>
11122 this; 11124 this;
11123 } 11125 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer2dart/lib/src/cps_generator.dart » ('j') | pkg/sharedfrontend/lib/elements.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698