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

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

Issue 12604020: analyzer_experimental checkpoint and AnalysisContext example. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't mark Source as 'changed'. Created 7 years, 9 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.element; 4 library engine.element;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'java_engine.dart'; 8 import 'java_engine.dart';
9 import 'source.dart'; 9 import 'source.dart';
10 import 'scanner.dart' show Keyword; 10 import 'scanner.dart' show Keyword;
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 void set functions(List<FunctionElement> functions2) { 1693 void set functions(List<FunctionElement> functions2) {
1694 for (FunctionElement function in functions2) { 1694 for (FunctionElement function in functions2) {
1695 ((function as FunctionElementImpl)).enclosingElement = this; 1695 ((function as FunctionElementImpl)).enclosingElement = this;
1696 } 1696 }
1697 this._functions = functions2; 1697 this._functions = functions2;
1698 } 1698 }
1699 /** 1699 /**
1700 * Set the source that corresponds to this compilation unit to the given sourc e. 1700 * Set the source that corresponds to this compilation unit to the given sourc e.
1701 * @param source the source that corresponds to this compilation unit 1701 * @param source the source that corresponds to this compilation unit
1702 */ 1702 */
1703 void set source(Source source5) { 1703 void set source(Source source7) {
1704 this._source = source5; 1704 this._source = source7;
1705 } 1705 }
1706 /** 1706 /**
1707 * Set the top-level variables contained in this compilation unit to the given variables. 1707 * Set the top-level variables contained in this compilation unit to the given variables.
1708 * @param variables the top-level variables contained in this compilation unit 1708 * @param variables the top-level variables contained in this compilation unit
1709 */ 1709 */
1710 void set topLevelVariables(List<TopLevelVariableElement> variables2) { 1710 void set topLevelVariables(List<TopLevelVariableElement> variables2) {
1711 for (TopLevelVariableElement field in variables2) { 1711 for (TopLevelVariableElement field in variables2) {
1712 ((field as TopLevelVariableElementImpl)).enclosingElement = this; 1712 ((field as TopLevelVariableElementImpl)).enclosingElement = this;
1713 } 1713 }
1714 this._variables = variables2; 1714 this._variables = variables2;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 Set<Modifier> _modifiers; 1938 Set<Modifier> _modifiers;
1939 /** 1939 /**
1940 * An array containing all of the metadata associated with this element. 1940 * An array containing all of the metadata associated with this element.
1941 */ 1941 */
1942 List<Annotation> _metadata = AnnotationImpl.EMPTY_ARRAY; 1942 List<Annotation> _metadata = AnnotationImpl.EMPTY_ARRAY;
1943 /** 1943 /**
1944 * Initialize a newly created element to have the given name. 1944 * Initialize a newly created element to have the given name.
1945 * @param name the name of this element 1945 * @param name the name of this element
1946 */ 1946 */
1947 ElementImpl.con1(Identifier name24) { 1947 ElementImpl.con1(Identifier name24) {
1948 _jtd_constructor_172_impl(name24); 1948 _jtd_constructor_174_impl(name24);
1949 } 1949 }
1950 _jtd_constructor_172_impl(Identifier name24) { 1950 _jtd_constructor_174_impl(Identifier name24) {
1951 _jtd_constructor_173_impl(name24 == null ? "" : name24.name, name24 == null ? -1 : name24.offset); 1951 _jtd_constructor_175_impl(name24 == null ? "" : name24.name, name24 == null ? -1 : name24.offset);
1952 } 1952 }
1953 /** 1953 /**
1954 * Initialize a newly created element to have the given name. 1954 * Initialize a newly created element to have the given name.
1955 * @param name the name of this element 1955 * @param name the name of this element
1956 * @param nameOffset the offset of the name of this element in the file that c ontains the 1956 * @param nameOffset the offset of the name of this element in the file that c ontains the
1957 * declaration of this element 1957 * declaration of this element
1958 */ 1958 */
1959 ElementImpl.con2(String name8, int nameOffset2) { 1959 ElementImpl.con2(String name8, int nameOffset2) {
1960 _jtd_constructor_173_impl(name8, nameOffset2); 1960 _jtd_constructor_175_impl(name8, nameOffset2);
1961 } 1961 }
1962 _jtd_constructor_173_impl(String name8, int nameOffset2) { 1962 _jtd_constructor_175_impl(String name8, int nameOffset2) {
1963 this._name = name8; 1963 this._name = name8;
1964 this._nameOffset = nameOffset2; 1964 this._nameOffset = nameOffset2;
1965 this._modifiers = new Set(); 1965 this._modifiers = new Set();
1966 } 1966 }
1967 bool operator ==(Object object) => object != null && identical(object.runtimeT ype, runtimeType) && ((object as Element)).location == location; 1967 bool operator ==(Object object) => object != null && identical(object.runtimeT ype, runtimeType) && ((object as Element)).location == location;
1968 Element getAncestor(Type elementClass) { 1968 Element getAncestor(Type elementClass) {
1969 Element ancestor = _enclosingElement; 1969 Element ancestor = _enclosingElement;
1970 while (ancestor != null && !isInstanceOf(ancestor, elementClass)) { 1970 while (ancestor != null && !isInstanceOf(ancestor, elementClass)) {
1971 ancestor = ancestor.enclosingElement; 1971 ancestor = ancestor.enclosingElement;
1972 } 1972 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 } 2005 }
2006 bool isSynthetic() => hasModifier(Modifier.SYNTHETIC); 2006 bool isSynthetic() => hasModifier(Modifier.SYNTHETIC);
2007 /** 2007 /**
2008 * Set the metadata associate with this element to the given array of annotati ons. 2008 * Set the metadata associate with this element to the given array of annotati ons.
2009 * @param metadata the metadata to be associated with this element 2009 * @param metadata the metadata to be associated with this element
2010 */ 2010 */
2011 void set metadata(List<Annotation> metadata2) { 2011 void set metadata(List<Annotation> metadata2) {
2012 this._metadata = metadata2; 2012 this._metadata = metadata2;
2013 } 2013 }
2014 /** 2014 /**
2015 * Set the offset of the name of this element in the file that contains the de claration of this
2016 * element to the given value. This is normally done via the constructor, but this method is
2017 * provided to support unnamed constructors.
2018 * @param nameOffset the offset to the beginning of the name
2019 */
2020 void set nameOffset(int nameOffset3) {
2021 this._nameOffset = nameOffset3;
2022 }
2023 /**
2015 * Set whether this element is synthetic to correspond to the given value. 2024 * Set whether this element is synthetic to correspond to the given value.
2016 * @param isSynthetic {@code true} if the element is synthetic 2025 * @param isSynthetic {@code true} if the element is synthetic
2017 */ 2026 */
2018 void set synthetic(bool isSynthetic) { 2027 void set synthetic(bool isSynthetic) {
2019 setModifier(Modifier.SYNTHETIC, isSynthetic); 2028 setModifier(Modifier.SYNTHETIC, isSynthetic);
2020 } 2029 }
2021 String toString() { 2030 String toString() {
2022 JavaStringBuilder builder = new JavaStringBuilder(); 2031 JavaStringBuilder builder = new JavaStringBuilder();
2023 appendTo(builder); 2032 appendTo(builder);
2024 return builder.toString(); 2033 return builder.toString();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 List<String> _components; 2113 List<String> _components;
2105 /** 2114 /**
2106 * The character used to separate components in the encoded form. 2115 * The character used to separate components in the encoded form.
2107 */ 2116 */
2108 static int _SEPARATOR_CHAR = 0x3B; 2117 static int _SEPARATOR_CHAR = 0x3B;
2109 /** 2118 /**
2110 * Initialize a newly created location to represent the given element. 2119 * Initialize a newly created location to represent the given element.
2111 * @param element the element whose location is being represented 2120 * @param element the element whose location is being represented
2112 */ 2121 */
2113 ElementLocationImpl.con1(Element element) { 2122 ElementLocationImpl.con1(Element element) {
2114 _jtd_constructor_174_impl(element); 2123 _jtd_constructor_176_impl(element);
2115 } 2124 }
2116 _jtd_constructor_174_impl(Element element) { 2125 _jtd_constructor_176_impl(Element element) {
2117 List<String> components = new List<String>(); 2126 List<String> components = new List<String>();
2118 Element ancestor = element; 2127 Element ancestor = element;
2119 while (ancestor != null) { 2128 while (ancestor != null) {
2120 components.insertRange(0, 1, ((ancestor as ElementImpl)).identifier); 2129 components.insertRange(0, 1, ((ancestor as ElementImpl)).identifier);
2121 ancestor = ancestor.enclosingElement; 2130 ancestor = ancestor.enclosingElement;
2122 } 2131 }
2123 this._components = new List.from(components); 2132 this._components = new List.from(components);
2124 } 2133 }
2125 /** 2134 /**
2126 * Initialize a newly created location from the given encoded form. 2135 * Initialize a newly created location from the given encoded form.
2127 * @param encoding the encoded form of a location 2136 * @param encoding the encoded form of a location
2128 */ 2137 */
2129 ElementLocationImpl.con2(String encoding) { 2138 ElementLocationImpl.con2(String encoding) {
2130 _jtd_constructor_175_impl(encoding); 2139 _jtd_constructor_177_impl(encoding);
2131 } 2140 }
2132 _jtd_constructor_175_impl(String encoding) { 2141 _jtd_constructor_177_impl(String encoding) {
2133 this._components = decode(encoding); 2142 this._components = decode(encoding);
2134 } 2143 }
2135 bool operator ==(Object object) { 2144 bool operator ==(Object object) {
2136 if (object is! ElementLocationImpl) { 2145 if (object is! ElementLocationImpl) {
2137 return false; 2146 return false;
2138 } 2147 }
2139 ElementLocationImpl location = object as ElementLocationImpl; 2148 ElementLocationImpl location = object as ElementLocationImpl;
2140 return JavaArrays.equals(_components, location._components); 2149 return JavaArrays.equals(_components, location._components);
2141 } 2150 }
2142 /** 2151 /**
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 FunctionType _type; 2270 FunctionType _type;
2262 /** 2271 /**
2263 * An empty array of executable elements. 2272 * An empty array of executable elements.
2264 */ 2273 */
2265 static List<ExecutableElement> EMPTY_ARRAY = new List<ExecutableElement>(0); 2274 static List<ExecutableElement> EMPTY_ARRAY = new List<ExecutableElement>(0);
2266 /** 2275 /**
2267 * Initialize a newly created executable element to have the given name. 2276 * Initialize a newly created executable element to have the given name.
2268 * @param name the name of this element 2277 * @param name the name of this element
2269 */ 2278 */
2270 ExecutableElementImpl.con1(Identifier name) : super.con1(name) { 2279 ExecutableElementImpl.con1(Identifier name) : super.con1(name) {
2271 _jtd_constructor_177_impl(name); 2280 _jtd_constructor_179_impl(name);
2272 } 2281 }
2273 _jtd_constructor_177_impl(Identifier name) { 2282 _jtd_constructor_179_impl(Identifier name) {
2274 } 2283 }
2275 /** 2284 /**
2276 * Initialize a newly created executable element to have the given name. 2285 * Initialize a newly created executable element to have the given name.
2277 * @param name the name of this element 2286 * @param name the name of this element
2278 * @param nameOffset the offset of the name of this element in the file that c ontains the 2287 * @param nameOffset the offset of the name of this element in the file that c ontains the
2279 * declaration of this element 2288 * declaration of this element
2280 */ 2289 */
2281 ExecutableElementImpl.con2(String name, int nameOffset) : super.con2(name, nam eOffset) { 2290 ExecutableElementImpl.con2(String name, int nameOffset) : super.con2(name, nam eOffset) {
2282 _jtd_constructor_178_impl(name, nameOffset); 2291 _jtd_constructor_180_impl(name, nameOffset);
2283 } 2292 }
2284 _jtd_constructor_178_impl(String name, int nameOffset) { 2293 _jtd_constructor_180_impl(String name, int nameOffset) {
2285 } 2294 }
2286 ElementImpl getChild(String identifier27) { 2295 ElementImpl getChild(String identifier27) {
2287 for (ExecutableElement function in _functions) { 2296 for (ExecutableElement function in _functions) {
2288 if (((function as ExecutableElementImpl)).identifier == identifier27) { 2297 if (((function as ExecutableElementImpl)).identifier == identifier27) {
2289 return function as ExecutableElementImpl; 2298 return function as ExecutableElementImpl;
2290 } 2299 }
2291 } 2300 }
2292 for (LabelElement label in _labels) { 2301 for (LabelElement label in _labels) {
2293 if (((label as LabelElementImpl)).identifier == identifier27) { 2302 if (((label as LabelElementImpl)).identifier == identifier27) {
2294 return label as LabelElementImpl; 2303 return label as LabelElementImpl;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 class FieldElementImpl extends PropertyInducingElementImpl implements FieldEleme nt { 2467 class FieldElementImpl extends PropertyInducingElementImpl implements FieldEleme nt {
2459 /** 2468 /**
2460 * An empty array of field elements. 2469 * An empty array of field elements.
2461 */ 2470 */
2462 static List<FieldElement> EMPTY_ARRAY = new List<FieldElement>(0); 2471 static List<FieldElement> EMPTY_ARRAY = new List<FieldElement>(0);
2463 /** 2472 /**
2464 * Initialize a newly created field element to have the given name. 2473 * Initialize a newly created field element to have the given name.
2465 * @param name the name of this element 2474 * @param name the name of this element
2466 */ 2475 */
2467 FieldElementImpl.con1(Identifier name) : super.con1(name) { 2476 FieldElementImpl.con1(Identifier name) : super.con1(name) {
2468 _jtd_constructor_181_impl(name); 2477 _jtd_constructor_183_impl(name);
2469 } 2478 }
2470 _jtd_constructor_181_impl(Identifier name) { 2479 _jtd_constructor_183_impl(Identifier name) {
2471 } 2480 }
2472 /** 2481 /**
2473 * Initialize a newly created synthetic field element to have the given name. 2482 * Initialize a newly created synthetic field element to have the given name.
2474 * @param name the name of this element 2483 * @param name the name of this element
2475 */ 2484 */
2476 FieldElementImpl.con2(String name) : super.con2(name) { 2485 FieldElementImpl.con2(String name) : super.con2(name) {
2477 _jtd_constructor_182_impl(name); 2486 _jtd_constructor_184_impl(name);
2478 } 2487 }
2479 _jtd_constructor_182_impl(String name) { 2488 _jtd_constructor_184_impl(String name) {
2480 } 2489 }
2481 accept(ElementVisitor visitor) => visitor.visitFieldElement(this); 2490 accept(ElementVisitor visitor) => visitor.visitFieldElement(this);
2482 ClassElement get enclosingElement => super.enclosingElement as ClassElement; 2491 ClassElement get enclosingElement => super.enclosingElement as ClassElement;
2483 ElementKind get kind => ElementKind.FIELD; 2492 ElementKind get kind => ElementKind.FIELD;
2484 bool isStatic() => hasModifier(Modifier.STATIC); 2493 bool isStatic() => hasModifier(Modifier.STATIC);
2485 /** 2494 /**
2486 * Set whether this field is static to correspond to the given value. 2495 * Set whether this field is static to correspond to the given value.
2487 * @param isStatic {@code true} if the field is static 2496 * @param isStatic {@code true} if the field is static
2488 */ 2497 */
2489 void set static(bool isStatic) { 2498 void set static(bool isStatic) {
(...skipping 15 matching lines...) Expand all
2505 */ 2514 */
2506 int _visibleRangeLength = -1; 2515 int _visibleRangeLength = -1;
2507 /** 2516 /**
2508 * An empty array of function elements. 2517 * An empty array of function elements.
2509 */ 2518 */
2510 static List<FunctionElement> EMPTY_ARRAY = new List<FunctionElement>(0); 2519 static List<FunctionElement> EMPTY_ARRAY = new List<FunctionElement>(0);
2511 /** 2520 /**
2512 * Initialize a newly created synthetic function element. 2521 * Initialize a newly created synthetic function element.
2513 */ 2522 */
2514 FunctionElementImpl() : super.con2("", -1) { 2523 FunctionElementImpl() : super.con2("", -1) {
2515 _jtd_constructor_183_impl(); 2524 _jtd_constructor_185_impl();
2516 } 2525 }
2517 _jtd_constructor_183_impl() { 2526 _jtd_constructor_185_impl() {
2518 synthetic = true; 2527 synthetic = true;
2519 } 2528 }
2520 /** 2529 /**
2521 * Initialize a newly created function element to have the given name. 2530 * Initialize a newly created function element to have the given name.
2522 * @param name the name of this element 2531 * @param name the name of this element
2523 */ 2532 */
2524 FunctionElementImpl.con1(Identifier name) : super.con1(name) { 2533 FunctionElementImpl.con1(Identifier name) : super.con1(name) {
2525 _jtd_constructor_184_impl(name); 2534 _jtd_constructor_186_impl(name);
2526 } 2535 }
2527 _jtd_constructor_184_impl(Identifier name) { 2536 _jtd_constructor_186_impl(Identifier name) {
2528 } 2537 }
2529 accept(ElementVisitor visitor) => visitor.visitFunctionElement(this); 2538 accept(ElementVisitor visitor) => visitor.visitFunctionElement(this);
2530 String get identifier => name; 2539 String get identifier => name;
2531 ElementKind get kind => ElementKind.FUNCTION; 2540 ElementKind get kind => ElementKind.FUNCTION;
2532 SourceRange get visibleRange { 2541 SourceRange get visibleRange {
2533 if (_visibleRangeLength < 0) { 2542 if (_visibleRangeLength < 0) {
2534 return null; 2543 return null;
2535 } 2544 }
2536 return new SourceRange(_visibleRangeOffset, _visibleRangeLength); 2545 return new SourceRange(_visibleRangeOffset, _visibleRangeLength);
2537 } 2546 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2744 void set scripts(List<HtmlScriptElement> scripts2) { 2753 void set scripts(List<HtmlScriptElement> scripts2) {
2745 for (HtmlScriptElement script in scripts2) { 2754 for (HtmlScriptElement script in scripts2) {
2746 ((script as HtmlScriptElementImpl)).enclosingElement = this; 2755 ((script as HtmlScriptElementImpl)).enclosingElement = this;
2747 } 2756 }
2748 this._scripts = scripts2; 2757 this._scripts = scripts2;
2749 } 2758 }
2750 /** 2759 /**
2751 * Set the source that corresponds to this HTML file to the given source. 2760 * Set the source that corresponds to this HTML file to the given source.
2752 * @param source the source that corresponds to this HTML file 2761 * @param source the source that corresponds to this HTML file
2753 */ 2762 */
2754 void set source(Source source6) { 2763 void set source(Source source8) {
2755 this._source = source6; 2764 this._source = source8;
2756 } 2765 }
2757 void visitChildren(ElementVisitor<Object> visitor) { 2766 void visitChildren(ElementVisitor<Object> visitor) {
2758 super.visitChildren(visitor); 2767 super.visitChildren(visitor);
2759 safelyVisitChildren(_scripts, visitor); 2768 safelyVisitChildren(_scripts, visitor);
2760 } 2769 }
2761 void appendTo(JavaStringBuilder builder) { 2770 void appendTo(JavaStringBuilder builder) {
2762 if (_source == null) { 2771 if (_source == null) {
2763 builder.append("{HTML file}"); 2772 builder.append("{HTML file}");
2764 } else { 2773 } else {
2765 builder.append(_source.fullName); 2774 builder.append(_source.fullName);
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
3068 /** 3077 /**
3069 * Answer {@code true} if the receiver directly or indirectly imports the dart :html libraries. 3078 * Answer {@code true} if the receiver directly or indirectly imports the dart :html libraries.
3070 * @return {@code true} if the receiver directly or indirectly imports the dar t:html libraries 3079 * @return {@code true} if the receiver directly or indirectly imports the dar t:html libraries
3071 */ 3080 */
3072 bool isOrImportsBrowserLibrary() { 3081 bool isOrImportsBrowserLibrary() {
3073 List<LibraryElement> visited = new List<LibraryElement>(); 3082 List<LibraryElement> visited = new List<LibraryElement>();
3074 Source htmlLibSource = definingCompilationUnit.source.resolve("dart:html"); 3083 Source htmlLibSource = definingCompilationUnit.source.resolve("dart:html");
3075 visited.add(this); 3084 visited.add(this);
3076 for (int index = 0; index < visited.length; index++) { 3085 for (int index = 0; index < visited.length; index++) {
3077 LibraryElement library = visited[index]; 3086 LibraryElement library = visited[index];
3078 Source source10 = library.definingCompilationUnit.source; 3087 Source source12 = library.definingCompilationUnit.source;
3079 if (source10 == htmlLibSource) { 3088 if (source12 == htmlLibSource) {
3080 return true; 3089 return true;
3081 } 3090 }
3082 for (LibraryElement importedLibrary in library.importedLibraries) { 3091 for (LibraryElement importedLibrary in library.importedLibraries) {
3083 if (!visited.contains(importedLibrary)) { 3092 if (!visited.contains(importedLibrary)) {
3084 visited.add(importedLibrary); 3093 visited.add(importedLibrary);
3085 } 3094 }
3086 } 3095 }
3087 for (LibraryElement exportedLibrary in library.exportedLibraries) { 3096 for (LibraryElement exportedLibrary in library.exportedLibraries) {
3088 if (!visited.contains(exportedLibrary)) { 3097 if (!visited.contains(exportedLibrary)) {
3089 visited.add(exportedLibrary); 3098 visited.add(exportedLibrary);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
3149 class MethodElementImpl extends ExecutableElementImpl implements MethodElement { 3158 class MethodElementImpl extends ExecutableElementImpl implements MethodElement {
3150 /** 3159 /**
3151 * An empty array of method elements. 3160 * An empty array of method elements.
3152 */ 3161 */
3153 static List<MethodElement> EMPTY_ARRAY = new List<MethodElement>(0); 3162 static List<MethodElement> EMPTY_ARRAY = new List<MethodElement>(0);
3154 /** 3163 /**
3155 * Initialize a newly created method element to have the given name. 3164 * Initialize a newly created method element to have the given name.
3156 * @param name the name of this element 3165 * @param name the name of this element
3157 */ 3166 */
3158 MethodElementImpl.con1(Identifier name) : super.con1(name) { 3167 MethodElementImpl.con1(Identifier name) : super.con1(name) {
3159 _jtd_constructor_193_impl(name); 3168 _jtd_constructor_195_impl(name);
3160 } 3169 }
3161 _jtd_constructor_193_impl(Identifier name) { 3170 _jtd_constructor_195_impl(Identifier name) {
3162 } 3171 }
3163 /** 3172 /**
3164 * Initialize a newly created method element to have the given name. 3173 * Initialize a newly created method element to have the given name.
3165 * @param name the name of this element 3174 * @param name the name of this element
3166 * @param nameOffset the offset of the name of this element in the file that c ontains the 3175 * @param nameOffset the offset of the name of this element in the file that c ontains the
3167 * declaration of this element 3176 * declaration of this element
3168 */ 3177 */
3169 MethodElementImpl.con2(String name, int nameOffset) : super.con2(name, nameOff set) { 3178 MethodElementImpl.con2(String name, int nameOffset) : super.con2(name, nameOff set) {
3170 _jtd_constructor_194_impl(name, nameOffset); 3179 _jtd_constructor_196_impl(name, nameOffset);
3171 } 3180 }
3172 _jtd_constructor_194_impl(String name, int nameOffset) { 3181 _jtd_constructor_196_impl(String name, int nameOffset) {
3173 } 3182 }
3174 accept(ElementVisitor visitor) => visitor.visitMethodElement(this); 3183 accept(ElementVisitor visitor) => visitor.visitMethodElement(this);
3175 ClassElement get enclosingElement => super.enclosingElement as ClassElement; 3184 ClassElement get enclosingElement => super.enclosingElement as ClassElement;
3176 ElementKind get kind => ElementKind.METHOD; 3185 ElementKind get kind => ElementKind.METHOD;
3177 bool isAbstract() => hasModifier(Modifier.ABSTRACT); 3186 bool isAbstract() => hasModifier(Modifier.ABSTRACT);
3178 bool isStatic() => hasModifier(Modifier.STATIC); 3187 bool isStatic() => hasModifier(Modifier.STATIC);
3179 /** 3188 /**
3180 * Set whether this method is abstract to correspond to the given value. 3189 * Set whether this method is abstract to correspond to the given value.
3181 * @param isAbstract {@code true} if the method is abstract 3190 * @param isAbstract {@code true} if the method is abstract
3182 */ 3191 */
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
3437 PropertyInducingElement _variable; 3446 PropertyInducingElement _variable;
3438 /** 3447 /**
3439 * An empty array of property accessor elements. 3448 * An empty array of property accessor elements.
3440 */ 3449 */
3441 static List<PropertyAccessorElement> EMPTY_ARRAY = new List<PropertyAccessorEl ement>(0); 3450 static List<PropertyAccessorElement> EMPTY_ARRAY = new List<PropertyAccessorEl ement>(0);
3442 /** 3451 /**
3443 * Initialize a newly created property accessor element to have the given name . 3452 * Initialize a newly created property accessor element to have the given name .
3444 * @param name the name of this element 3453 * @param name the name of this element
3445 */ 3454 */
3446 PropertyAccessorElementImpl.con1(Identifier name) : super.con1(name) { 3455 PropertyAccessorElementImpl.con1(Identifier name) : super.con1(name) {
3447 _jtd_constructor_199_impl(name); 3456 _jtd_constructor_201_impl(name);
3448 } 3457 }
3449 _jtd_constructor_199_impl(Identifier name) { 3458 _jtd_constructor_201_impl(Identifier name) {
3450 } 3459 }
3451 /** 3460 /**
3452 * Initialize a newly created synthetic property accessor element to be associ ated with the given 3461 * Initialize a newly created synthetic property accessor element to be associ ated with the given
3453 * variable. 3462 * variable.
3454 * @param variable the variable with which this access is associated 3463 * @param variable the variable with which this access is associated
3455 */ 3464 */
3456 PropertyAccessorElementImpl.con2(PropertyInducingElementImpl variable2) : supe r.con2(variable2.name, -1) { 3465 PropertyAccessorElementImpl.con2(PropertyInducingElementImpl variable2) : supe r.con2(variable2.name, -1) {
3457 _jtd_constructor_200_impl(variable2); 3466 _jtd_constructor_202_impl(variable2);
3458 } 3467 }
3459 _jtd_constructor_200_impl(PropertyInducingElementImpl variable2) { 3468 _jtd_constructor_202_impl(PropertyInducingElementImpl variable2) {
3460 this._variable = variable2; 3469 this._variable = variable2;
3461 synthetic = true; 3470 synthetic = true;
3462 } 3471 }
3463 accept(ElementVisitor visitor) => visitor.visitPropertyAccessorElement(this); 3472 accept(ElementVisitor visitor) => visitor.visitPropertyAccessorElement(this);
3464 bool operator ==(Object object) => super == object && identical(isGetter(), (( object as PropertyAccessorElement)).isGetter()); 3473 bool operator ==(Object object) => super == object && identical(isGetter(), (( object as PropertyAccessorElement)).isGetter());
3465 ElementKind get kind { 3474 ElementKind get kind {
3466 if (isGetter()) { 3475 if (isGetter()) {
3467 return ElementKind.GETTER; 3476 return ElementKind.GETTER;
3468 } 3477 }
3469 return ElementKind.SETTER; 3478 return ElementKind.SETTER;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
3514 PropertyAccessorElement _setter; 3523 PropertyAccessorElement _setter;
3515 /** 3524 /**
3516 * An empty array of elements. 3525 * An empty array of elements.
3517 */ 3526 */
3518 static List<PropertyInducingElement> EMPTY_ARRAY = new List<PropertyInducingEl ement>(0); 3527 static List<PropertyInducingElement> EMPTY_ARRAY = new List<PropertyInducingEl ement>(0);
3519 /** 3528 /**
3520 * Initialize a newly created element to have the given name. 3529 * Initialize a newly created element to have the given name.
3521 * @param name the name of this element 3530 * @param name the name of this element
3522 */ 3531 */
3523 PropertyInducingElementImpl.con1(Identifier name) : super.con1(name) { 3532 PropertyInducingElementImpl.con1(Identifier name) : super.con1(name) {
3524 _jtd_constructor_201_impl(name); 3533 _jtd_constructor_203_impl(name);
3525 } 3534 }
3526 _jtd_constructor_201_impl(Identifier name) { 3535 _jtd_constructor_203_impl(Identifier name) {
3527 } 3536 }
3528 /** 3537 /**
3529 * Initialize a newly created synthetic element to have the given name. 3538 * Initialize a newly created synthetic element to have the given name.
3530 * @param name the name of this element 3539 * @param name the name of this element
3531 */ 3540 */
3532 PropertyInducingElementImpl.con2(String name) : super.con2(name, -1) { 3541 PropertyInducingElementImpl.con2(String name) : super.con2(name, -1) {
3533 _jtd_constructor_202_impl(name); 3542 _jtd_constructor_204_impl(name);
3534 } 3543 }
3535 _jtd_constructor_202_impl(String name) { 3544 _jtd_constructor_204_impl(String name) {
3536 synthetic = true; 3545 synthetic = true;
3537 } 3546 }
3538 PropertyAccessorElement get getter => _getter; 3547 PropertyAccessorElement get getter => _getter;
3539 PropertyAccessorElement get setter => _setter; 3548 PropertyAccessorElement get setter => _setter;
3540 /** 3549 /**
3541 * Set the getter associated with this element to the given accessor. 3550 * Set the getter associated with this element to the given accessor.
3542 * @param getter the getter associated with this element 3551 * @param getter the getter associated with this element
3543 */ 3552 */
3544 void set getter(PropertyAccessorElement getter2) { 3553 void set getter(PropertyAccessorElement getter2) {
3545 this._getter = getter2; 3554 this._getter = getter2;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
3596 class TopLevelVariableElementImpl extends PropertyInducingElementImpl implements TopLevelVariableElement { 3605 class TopLevelVariableElementImpl extends PropertyInducingElementImpl implements TopLevelVariableElement {
3597 /** 3606 /**
3598 * An empty array of top-level variable elements. 3607 * An empty array of top-level variable elements.
3599 */ 3608 */
3600 static List<TopLevelVariableElement> EMPTY_ARRAY = new List<TopLevelVariableEl ement>(0); 3609 static List<TopLevelVariableElement> EMPTY_ARRAY = new List<TopLevelVariableEl ement>(0);
3601 /** 3610 /**
3602 * Initialize a newly created top-level variable element to have the given nam e. 3611 * Initialize a newly created top-level variable element to have the given nam e.
3603 * @param name the name of this element 3612 * @param name the name of this element
3604 */ 3613 */
3605 TopLevelVariableElementImpl.con1(Identifier name) : super.con1(name) { 3614 TopLevelVariableElementImpl.con1(Identifier name) : super.con1(name) {
3606 _jtd_constructor_204_impl(name); 3615 _jtd_constructor_206_impl(name);
3607 } 3616 }
3608 _jtd_constructor_204_impl(Identifier name) { 3617 _jtd_constructor_206_impl(Identifier name) {
3609 } 3618 }
3610 /** 3619 /**
3611 * Initialize a newly created synthetic top-level variable element to have the given name. 3620 * Initialize a newly created synthetic top-level variable element to have the given name.
3612 * @param name the name of this element 3621 * @param name the name of this element
3613 */ 3622 */
3614 TopLevelVariableElementImpl.con2(String name) : super.con2(name) { 3623 TopLevelVariableElementImpl.con2(String name) : super.con2(name) {
3615 _jtd_constructor_205_impl(name); 3624 _jtd_constructor_207_impl(name);
3616 } 3625 }
3617 _jtd_constructor_205_impl(String name) { 3626 _jtd_constructor_207_impl(String name) {
3618 } 3627 }
3619 accept(ElementVisitor visitor) => visitor.visitTopLevelVariableElement(this); 3628 accept(ElementVisitor visitor) => visitor.visitTopLevelVariableElement(this);
3620 ElementKind get kind => ElementKind.TOP_LEVEL_VARIABLE; 3629 ElementKind get kind => ElementKind.TOP_LEVEL_VARIABLE;
3621 bool isStatic() => true; 3630 bool isStatic() => true;
3622 } 3631 }
3623 /** 3632 /**
3624 * Instances of the class {@code TypeVariableElementImpl} implement a {@code Typ eVariableElement}. 3633 * Instances of the class {@code TypeVariableElementImpl} implement a {@code Typ eVariableElement}.
3625 * @coverage dart.engine.element 3634 * @coverage dart.engine.element
3626 */ 3635 */
3627 class TypeVariableElementImpl extends ElementImpl implements TypeVariableElement { 3636 class TypeVariableElementImpl extends ElementImpl implements TypeVariableElement {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
3686 FunctionElement _initializer; 3695 FunctionElement _initializer;
3687 /** 3696 /**
3688 * An empty array of variable elements. 3697 * An empty array of variable elements.
3689 */ 3698 */
3690 static List<VariableElement> EMPTY_ARRAY = new List<VariableElement>(0); 3699 static List<VariableElement> EMPTY_ARRAY = new List<VariableElement>(0);
3691 /** 3700 /**
3692 * Initialize a newly created variable element to have the given name. 3701 * Initialize a newly created variable element to have the given name.
3693 * @param name the name of this element 3702 * @param name the name of this element
3694 */ 3703 */
3695 VariableElementImpl.con1(Identifier name) : super.con1(name) { 3704 VariableElementImpl.con1(Identifier name) : super.con1(name) {
3696 _jtd_constructor_207_impl(name); 3705 _jtd_constructor_209_impl(name);
3697 } 3706 }
3698 _jtd_constructor_207_impl(Identifier name) { 3707 _jtd_constructor_209_impl(Identifier name) {
3699 } 3708 }
3700 /** 3709 /**
3701 * Initialize a newly created variable element to have the given name. 3710 * Initialize a newly created variable element to have the given name.
3702 * @param name the name of this element 3711 * @param name the name of this element
3703 * @param nameOffset the offset of the name of this element in the file that c ontains the 3712 * @param nameOffset the offset of the name of this element in the file that c ontains the
3704 * declaration of this element 3713 * declaration of this element
3705 */ 3714 */
3706 VariableElementImpl.con2(String name, int nameOffset) : super.con2(name, nameO ffset) { 3715 VariableElementImpl.con2(String name, int nameOffset) : super.con2(name, nameO ffset) {
3707 _jtd_constructor_208_impl(name, nameOffset); 3716 _jtd_constructor_210_impl(name, nameOffset);
3708 } 3717 }
3709 _jtd_constructor_208_impl(String name, int nameOffset) { 3718 _jtd_constructor_210_impl(String name, int nameOffset) {
3710 } 3719 }
3711 /** 3720 /**
3712 * Return the result of evaluating this variable's initializer as a compile-ti me constant 3721 * Return the result of evaluating this variable's initializer as a compile-ti me constant
3713 * expression, or {@code null} if this variable is not a 'const' variable or d oes not have an 3722 * expression, or {@code null} if this variable is not a 'const' variable or d oes not have an
3714 * initializer. 3723 * initializer.
3715 * @return the result of evaluating this variable's initializer 3724 * @return the result of evaluating this variable's initializer
3716 */ 3725 */
3717 EvaluationResultImpl get evaluationResult => null; 3726 EvaluationResultImpl get evaluationResult => null;
3718 FunctionElement get initializer => _initializer; 3727 FunctionElement get initializer => _initializer;
3719 Type2 get type => _type; 3728 Type2 get type => _type;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3892 /** 3901 /**
3893 * The type of object returned by this type of function. 3902 * The type of object returned by this type of function.
3894 */ 3903 */
3895 Type2 _returnType = VoidTypeImpl.instance; 3904 Type2 _returnType = VoidTypeImpl.instance;
3896 /** 3905 /**
3897 * Initialize a newly created function type to be declared by the given elemen t and to have the 3906 * Initialize a newly created function type to be declared by the given elemen t and to have the
3898 * given name. 3907 * given name.
3899 * @param element the element representing the declaration of the function typ e 3908 * @param element the element representing the declaration of the function typ e
3900 */ 3909 */
3901 FunctionTypeImpl.con1(ExecutableElement element) : super(element, element == n ull ? null : element.name) { 3910 FunctionTypeImpl.con1(ExecutableElement element) : super(element, element == n ull ? null : element.name) {
3902 _jtd_constructor_259_impl(element); 3911 _jtd_constructor_261_impl(element);
3903 } 3912 }
3904 _jtd_constructor_259_impl(ExecutableElement element) { 3913 _jtd_constructor_261_impl(ExecutableElement element) {
3905 } 3914 }
3906 /** 3915 /**
3907 * Initialize a newly created function type to be declared by the given elemen t and to have the 3916 * Initialize a newly created function type to be declared by the given elemen t and to have the
3908 * given name. 3917 * given name.
3909 * @param element the element representing the declaration of the function typ e 3918 * @param element the element representing the declaration of the function typ e
3910 */ 3919 */
3911 FunctionTypeImpl.con2(FunctionTypeAliasElement element) : super(element, eleme nt == null ? null : element.name) { 3920 FunctionTypeImpl.con2(FunctionTypeAliasElement element) : super(element, eleme nt == null ? null : element.name) {
3912 _jtd_constructor_260_impl(element); 3921 _jtd_constructor_262_impl(element);
3913 } 3922 }
3914 _jtd_constructor_260_impl(FunctionTypeAliasElement element) { 3923 _jtd_constructor_262_impl(FunctionTypeAliasElement element) {
3915 } 3924 }
3916 bool operator ==(Object object) { 3925 bool operator ==(Object object) {
3917 if (object is! FunctionTypeImpl) { 3926 if (object is! FunctionTypeImpl) {
3918 return false; 3927 return false;
3919 } 3928 }
3920 FunctionTypeImpl otherType = object as FunctionTypeImpl; 3929 FunctionTypeImpl otherType = object as FunctionTypeImpl;
3921 return element == otherType.element && JavaArrays.equals(_normalParameterTyp es, otherType._normalParameterTypes) && JavaArrays.equals(_optionalParameterType s, otherType._optionalParameterTypes) && equals2(_namedParameterTypes, otherType ._namedParameterTypes); 3930 return element == otherType.element && JavaArrays.equals(_normalParameterTyp es, otherType._normalParameterTypes) && JavaArrays.equals(_optionalParameterType s, otherType._optionalParameterTypes) && equals2(_namedParameterTypes, otherType ._namedParameterTypes);
3922 } 3931 }
3923 Map<String, Type2> get namedParameterTypes => _namedParameterTypes; 3932 Map<String, Type2> get namedParameterTypes => _namedParameterTypes;
3924 List<Type2> get normalParameterTypes => _normalParameterTypes; 3933 List<Type2> get normalParameterTypes => _normalParameterTypes;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
4193 } 4202 }
4194 /** 4203 /**
4195 * An array containing the actual types of the type arguments. 4204 * An array containing the actual types of the type arguments.
4196 */ 4205 */
4197 List<Type2> _typeArguments = TypeImpl.EMPTY_ARRAY; 4206 List<Type2> _typeArguments = TypeImpl.EMPTY_ARRAY;
4198 /** 4207 /**
4199 * Initialize a newly created type to be declared by the given element. 4208 * Initialize a newly created type to be declared by the given element.
4200 * @param element the element representing the declaration of the type 4209 * @param element the element representing the declaration of the type
4201 */ 4210 */
4202 InterfaceTypeImpl.con1(ClassElement element) : super(element, element.name) { 4211 InterfaceTypeImpl.con1(ClassElement element) : super(element, element.name) {
4203 _jtd_constructor_261_impl(element); 4212 _jtd_constructor_263_impl(element);
4204 } 4213 }
4205 _jtd_constructor_261_impl(ClassElement element) { 4214 _jtd_constructor_263_impl(ClassElement element) {
4206 } 4215 }
4207 /** 4216 /**
4208 * Initialize a newly created type to have the given name. This constructor sh ould only be used in 4217 * Initialize a newly created type to have the given name. This constructor sh ould only be used in
4209 * cases where there is no declaration of the type. 4218 * cases where there is no declaration of the type.
4210 * @param name the name of the type 4219 * @param name the name of the type
4211 */ 4220 */
4212 InterfaceTypeImpl.con2(String name) : super(null, name) { 4221 InterfaceTypeImpl.con2(String name) : super(null, name) {
4213 _jtd_constructor_262_impl(name); 4222 _jtd_constructor_264_impl(name);
4214 } 4223 }
4215 _jtd_constructor_262_impl(String name) { 4224 _jtd_constructor_264_impl(String name) {
4216 } 4225 }
4217 bool operator ==(Object object) { 4226 bool operator ==(Object object) {
4218 if (object is! InterfaceTypeImpl) { 4227 if (object is! InterfaceTypeImpl) {
4219 return false; 4228 return false;
4220 } 4229 }
4221 InterfaceTypeImpl otherType = object as InterfaceTypeImpl; 4230 InterfaceTypeImpl otherType = object as InterfaceTypeImpl;
4222 return element == otherType.element && JavaArrays.equals(_typeArguments, oth erType._typeArguments); 4231 return element == otherType.element && JavaArrays.equals(_typeArguments, oth erType._typeArguments);
4223 } 4232 }
4224 ClassElement get element => super.element as ClassElement; 4233 ClassElement get element => super.element as ClassElement;
4225 Type2 getLeastUpperBound(Type2 type) { 4234 Type2 getLeastUpperBound(Type2 type) {
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
4872 abstract class TypeVariableType implements Type2 { 4881 abstract class TypeVariableType implements Type2 {
4873 TypeVariableElement get element; 4882 TypeVariableElement get element;
4874 } 4883 }
4875 /** 4884 /**
4876 * The interface {@code VoidType} defines the behavior of the unique object repr esenting the type{@code void}. 4885 * The interface {@code VoidType} defines the behavior of the unique object repr esenting the type{@code void}.
4877 * @coverage dart.engine.type 4886 * @coverage dart.engine.type
4878 */ 4887 */
4879 abstract class VoidType implements Type2 { 4888 abstract class VoidType implements Type2 {
4880 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); 4889 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes);
4881 } 4890 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698