OLD | NEW |
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 R visitMethodElement(MethodElement element); | 418 R visitMethodElement(MethodElement element); |
419 R visitMultiplyDefinedElement(MultiplyDefinedElement element); | 419 R visitMultiplyDefinedElement(MultiplyDefinedElement element); |
420 R visitParameterElement(ParameterElement element); | 420 R visitParameterElement(ParameterElement element); |
421 R visitPrefixElement(PrefixElement element); | 421 R visitPrefixElement(PrefixElement element); |
422 R visitPropertyAccessorElement(PropertyAccessorElement element); | 422 R visitPropertyAccessorElement(PropertyAccessorElement element); |
423 R visitTopLevelVariableElement(TopLevelVariableElement element); | 423 R visitTopLevelVariableElement(TopLevelVariableElement element); |
424 R visitTypeAliasElement(TypeAliasElement element); | 424 R visitTypeAliasElement(TypeAliasElement element); |
425 R visitTypeVariableElement(TypeVariableElement element); | 425 R visitTypeVariableElement(TypeVariableElement element); |
426 } | 426 } |
427 /** | 427 /** |
| 428 * The interface {@code EmbeddedHtmlScriptElement} defines the behavior of eleme
nts representing a |
| 429 * script tag in an HTML file having content that defines a Dart library. |
| 430 */ |
| 431 abstract class EmbeddedHtmlScriptElement implements HtmlScriptElement { |
| 432 /** |
| 433 * Return the library element defined by the content of the script tag, or {@c
ode null} if the |
| 434 * content does not define a library. |
| 435 * @return the library element |
| 436 */ |
| 437 LibraryElement get scriptLibrary; |
| 438 } |
| 439 /** |
428 * The interface {@code ExecutableElement} defines the behavior of elements repr
esenting an | 440 * The interface {@code ExecutableElement} defines the behavior of elements repr
esenting an |
429 * executable object, including functions, methods, constructors, getters, and s
etters. | 441 * executable object, including functions, methods, constructors, getters, and s
etters. |
430 */ | 442 */ |
431 abstract class ExecutableElement implements Element { | 443 abstract class ExecutableElement implements Element { |
432 /** | 444 /** |
433 * Return an array containing all of the functions defined within this executa
ble element. | 445 * Return an array containing all of the functions defined within this executa
ble element. |
434 * @return the functions defined within this executable element | 446 * @return the functions defined within this executable element |
435 */ | 447 */ |
436 List<FunctionElement> get functions; | 448 List<FunctionElement> get functions; |
437 /** | 449 /** |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 * @return the combinators specified in the export directive | 488 * @return the combinators specified in the export directive |
477 */ | 489 */ |
478 List<NamespaceCombinator> get combinators; | 490 List<NamespaceCombinator> get combinators; |
479 /** | 491 /** |
480 * Return the library that is exported from this library by this export direct
ive. | 492 * Return the library that is exported from this library by this export direct
ive. |
481 * @return the library that is exported from this library | 493 * @return the library that is exported from this library |
482 */ | 494 */ |
483 LibraryElement get exportedLibrary; | 495 LibraryElement get exportedLibrary; |
484 } | 496 } |
485 /** | 497 /** |
| 498 * The interface {@code ExternalHtmlScriptElement} defines the behavior of eleme
nts representing a |
| 499 * script tag in an HTML file having a {@code source} attribute that references
a Dart library |
| 500 * source file. |
| 501 */ |
| 502 abstract class ExternalHtmlScriptElement implements HtmlScriptElement { |
| 503 /** |
| 504 * Return the source referenced by this element, or {@code null} if this eleme
nt does not |
| 505 * reference a Dart library source file. |
| 506 * @return the source for the external Dart library |
| 507 */ |
| 508 Source get scriptSource; |
| 509 } |
| 510 /** |
486 * The interface {@code FieldElement} defines the behavior of elements represent
ing a field defined | 511 * The interface {@code FieldElement} defines the behavior of elements represent
ing a field defined |
487 * within a type. | 512 * within a type. |
488 */ | 513 */ |
489 abstract class FieldElement implements PropertyInducingElement { | 514 abstract class FieldElement implements PropertyInducingElement { |
490 /** | 515 /** |
491 * Return the type in which this field is defined. | 516 * Return the type in which this field is defined. |
492 * @return the type in which this field is defined | 517 * @return the type in which this field is defined |
493 */ | 518 */ |
494 ClassElement get enclosingElement; | 519 ClassElement get enclosingElement; |
495 } | 520 } |
(...skipping 12 matching lines...) Expand all Loading... |
508 * even if they are defined in the imported library. | 533 * even if they are defined in the imported library. |
509 * @return the names from the imported library that are hidden from the import
ing library | 534 * @return the names from the imported library that are hidden from the import
ing library |
510 */ | 535 */ |
511 List<String> get hiddenNames; | 536 List<String> get hiddenNames; |
512 } | 537 } |
513 /** | 538 /** |
514 * The interface {@code HtmlElement} defines the behavior of elements representi
ng an HTML file. | 539 * The interface {@code HtmlElement} defines the behavior of elements representi
ng an HTML file. |
515 */ | 540 */ |
516 abstract class HtmlElement implements Element { | 541 abstract class HtmlElement implements Element { |
517 /** | 542 /** |
518 * Return an array containing all of the libraries contained in or referenced
from script tags in | 543 * Return an array containing all of the script elements contained in the HTML
file. This includes |
519 * the HTML file. This includes libraries that are defined by the content of a
script file as well | 544 * scripts with libraries that are defined by the content of a script tag as w
ell as libraries |
520 * as libraries that are referenced in the {@core src} attribute of a script t
ag. | 545 * that are referenced in the {@core source} attribute of a script tag. |
521 * @return the libraries referenced from script tags in the HTML file | 546 * @return the script elements in the HTML file (not {@code null}, contains no
{@code null}s) |
522 */ | 547 */ |
523 List<LibraryElement> get libraries; | 548 List<HtmlScriptElement> get scripts; |
| 549 } |
| 550 /** |
| 551 * The interface {@code HtmlScriptElement} defines the behavior of elements repr
esenting a script |
| 552 * tag in an HTML file. |
| 553 * @see EmbeddedHtmlScriptElement |
| 554 * @see ExternalHtmlScriptElement |
| 555 */ |
| 556 abstract class HtmlScriptElement implements Element { |
524 } | 557 } |
525 /** | 558 /** |
526 * The interface {@code ImportElement} defines the behavior of objects represent
ing information | 559 * The interface {@code ImportElement} defines the behavior of objects represent
ing information |
527 * about a single import directive within a library. | 560 * about a single import directive within a library. |
528 */ | 561 */ |
529 abstract class ImportElement implements Element { | 562 abstract class ImportElement implements Element { |
530 /** | 563 /** |
531 * An empty array of import elements. | 564 * An empty array of import elements. |
532 */ | 565 */ |
533 static List<ImportElement> EMPTY_ARRAY = new List<ImportElement>(0); | 566 static List<ImportElement> EMPTY_ARRAY = new List<ImportElement>(0); |
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2346 class HtmlElementImpl extends ElementImpl implements HtmlElement { | 2379 class HtmlElementImpl extends ElementImpl implements HtmlElement { |
2347 /** | 2380 /** |
2348 * An empty array of HTML file elements. | 2381 * An empty array of HTML file elements. |
2349 */ | 2382 */ |
2350 static List<HtmlElement> EMPTY_ARRAY = new List<HtmlElement>(0); | 2383 static List<HtmlElement> EMPTY_ARRAY = new List<HtmlElement>(0); |
2351 /** | 2384 /** |
2352 * The analysis context in which this library is defined. | 2385 * The analysis context in which this library is defined. |
2353 */ | 2386 */ |
2354 AnalysisContext _context; | 2387 AnalysisContext _context; |
2355 /** | 2388 /** |
2356 * The libraries contained in or referenced from script tags in the HTML file. | 2389 * The scripts contained in or referenced from script tags in the HTML file. |
2357 */ | 2390 */ |
2358 List<LibraryElement> _libraries = LibraryElementImpl.EMPTY_ARRAY; | 2391 List<HtmlScriptElement> _scripts = new List<HtmlScriptElement>(0); |
2359 /** | 2392 /** |
2360 * The source that corresponds to this HTML file. | 2393 * The source that corresponds to this HTML file. |
2361 */ | 2394 */ |
2362 Source _source; | 2395 Source _source; |
2363 /** | 2396 /** |
2364 * Initialize a newly created HTML element to have the given name. | 2397 * Initialize a newly created HTML element to have the given name. |
2365 * @param context the analysis context in which the HTML file is defined | 2398 * @param context the analysis context in which the HTML file is defined |
2366 * @param name the name of this element | 2399 * @param name the name of this element |
2367 */ | 2400 */ |
2368 HtmlElementImpl(AnalysisContext context, String name) : super.con2(name, -1) { | 2401 HtmlElementImpl(AnalysisContext context, String name) : super.con2(name, -1) { |
2369 this._context = context; | 2402 this._context = context; |
2370 } | 2403 } |
2371 accept(ElementVisitor visitor) => visitor.visitHtmlElement(this); | 2404 accept(ElementVisitor visitor) => visitor.visitHtmlElement(this); |
2372 bool operator ==(Object object) => identical(runtimeType, object.runtimeType)
&& _source == ((object as CompilationUnitElementImpl)).source; | 2405 bool operator ==(Object object) => identical(runtimeType, object.runtimeType)
&& _source == ((object as CompilationUnitElementImpl)).source; |
2373 AnalysisContext get context => _context; | 2406 AnalysisContext get context => _context; |
2374 ElementKind get kind => ElementKind.HTML; | 2407 ElementKind get kind => ElementKind.HTML; |
2375 List<LibraryElement> get libraries => _libraries; | 2408 List<HtmlScriptElement> get scripts => _scripts; |
2376 Source get source => _source; | 2409 Source get source => _source; |
2377 int get hashCode => _source.hashCode; | 2410 int get hashCode => _source.hashCode; |
2378 /** | 2411 /** |
2379 * Set the libraries contained in or referenced from script tags in the HTML f
ile to the given | 2412 * Set the scripts contained in the HTML file to the given scripts. |
2380 * libraries. | 2413 * @param scripts the scripts |
2381 * @param libraries the libraries contained in or referenced from script tags
in the HTML file | |
2382 */ | 2414 */ |
2383 void set libraries(List<LibraryElement> libraries2) { | 2415 void set scripts(List<HtmlScriptElement> scripts2) { |
2384 this._libraries = libraries2; | 2416 this._scripts = scripts2; |
2385 } | 2417 } |
2386 /** | 2418 /** |
2387 * Set the source that corresponds to this HTML file to the given source. | 2419 * Set the source that corresponds to this HTML file to the given source. |
2388 * @param source the source that corresponds to this HTML file | 2420 * @param source the source that corresponds to this HTML file |
2389 */ | 2421 */ |
2390 void set source(Source source6) { | 2422 void set source(Source source6) { |
2391 this._source = source6; | 2423 this._source = source6; |
2392 } | 2424 } |
2393 void visitChildren(ElementVisitor<Object> visitor) { | 2425 void visitChildren(ElementVisitor<Object> visitor) { |
2394 super.visitChildren(visitor); | 2426 super.visitChildren(visitor); |
2395 safelyVisitChildren(_libraries, visitor); | 2427 safelyVisitChildren(_scripts, visitor); |
2396 } | 2428 } |
2397 void appendTo(JavaStringBuilder builder) { | 2429 void appendTo(JavaStringBuilder builder) { |
2398 if (_source == null) { | 2430 if (_source == null) { |
2399 builder.append("{HTML file}"); | 2431 builder.append("{HTML file}"); |
2400 } else { | 2432 } else { |
2401 builder.append(_source.fullName); | 2433 builder.append(_source.fullName); |
2402 } | 2434 } |
2403 } | 2435 } |
2404 } | 2436 } |
2405 /** | 2437 /** |
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4523 */ | 4555 */ |
4524 abstract class TypeVariableType implements Type2 { | 4556 abstract class TypeVariableType implements Type2 { |
4525 TypeVariableElement get element; | 4557 TypeVariableElement get element; |
4526 } | 4558 } |
4527 /** | 4559 /** |
4528 * The interface {@code VoidType} defines the behavior of the unique object repr
esenting the type{@code void}. | 4560 * The interface {@code VoidType} defines the behavior of the unique object repr
esenting the type{@code void}. |
4529 */ | 4561 */ |
4530 abstract class VoidType implements Type2 { | 4562 abstract class VoidType implements Type2 { |
4531 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); | 4563 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); |
4532 } | 4564 } |
OLD | NEW |