| 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'; |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1863 * The interface `AngularDirectiveElement` defines the Angular controller descri
bed by | 1863 * The interface `AngularDirectiveElement` defines the Angular controller descri
bed by |
| 1864 * <code>NgDirective</code> annotation. | 1864 * <code>NgDirective</code> annotation. |
| 1865 * | 1865 * |
| 1866 * @coverage dart.engine.element | 1866 * @coverage dart.engine.element |
| 1867 */ | 1867 */ |
| 1868 abstract class AngularDirectiveElement implements AngularHasSelectorElement { | 1868 abstract class AngularDirectiveElement implements AngularHasSelectorElement { |
| 1869 /** | 1869 /** |
| 1870 * Return an array containing all of the properties declared by this directive
. | 1870 * Return an array containing all of the properties declared by this directive
. |
| 1871 */ | 1871 */ |
| 1872 List<AngularPropertyElement> get properties; | 1872 List<AngularPropertyElement> get properties; |
| 1873 |
| 1874 /** |
| 1875 * Checks if this directive is implemented by the class with given name. |
| 1876 */ |
| 1877 bool isClass(String name); |
| 1873 } | 1878 } |
| 1874 | 1879 |
| 1875 /** | 1880 /** |
| 1876 * The interface `AngularElement` defines the behavior of objects representing i
nformation | 1881 * The interface `AngularElement` defines the behavior of objects representing i
nformation |
| 1877 * about an Angular specific element. | 1882 * about an Angular specific element. |
| 1878 * | 1883 * |
| 1879 * @coverage dart.engine.element | 1884 * @coverage dart.engine.element |
| 1880 */ | 1885 */ |
| 1881 abstract class AngularElement implements ToolkitObjectElement { | 1886 abstract class AngularElement implements ToolkitObjectElement { |
| 1882 /** | 1887 /** |
| (...skipping 4464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6347 } | 6352 } |
| 6348 | 6353 |
| 6349 accept(ElementVisitor visitor) => visitor.visitAngularDirectiveElement(this); | 6354 accept(ElementVisitor visitor) => visitor.visitAngularDirectiveElement(this); |
| 6350 | 6355 |
| 6351 String get displayName => selector.displayName; | 6356 String get displayName => selector.displayName; |
| 6352 | 6357 |
| 6353 ElementKind get kind => ElementKind.ANGULAR_DIRECTIVE; | 6358 ElementKind get kind => ElementKind.ANGULAR_DIRECTIVE; |
| 6354 | 6359 |
| 6355 List<AngularPropertyElement> get properties => _properties; | 6360 List<AngularPropertyElement> get properties => _properties; |
| 6356 | 6361 |
| 6362 bool isClass(String name) { |
| 6363 Element enclosing = enclosingElement; |
| 6364 return enclosing is ClassElement && enclosing.name == name; |
| 6365 } |
| 6366 |
| 6357 /** | 6367 /** |
| 6358 * Set an array containing all of the properties declared by this directive. | 6368 * Set an array containing all of the properties declared by this directive. |
| 6359 * | 6369 * |
| 6360 * @param properties the properties to set | 6370 * @param properties the properties to set |
| 6361 */ | 6371 */ |
| 6362 void set properties(List<AngularPropertyElement> properties) { | 6372 void set properties(List<AngularPropertyElement> properties) { |
| 6363 for (AngularPropertyElement property in properties) { | 6373 for (AngularPropertyElement property in properties) { |
| 6364 encloseElement(property as AngularPropertyElementImpl); | 6374 encloseElement(property as AngularPropertyElementImpl); |
| 6365 } | 6375 } |
| 6366 this._properties = properties; | 6376 this._properties = properties; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6508 | 6518 |
| 6509 bool apply(XmlTagNode node) { | 6519 bool apply(XmlTagNode node) { |
| 6510 String attributeName = name; | 6520 String attributeName = name; |
| 6511 return node.getAttribute(attributeName) != null; | 6521 return node.getAttribute(attributeName) != null; |
| 6512 } | 6522 } |
| 6513 | 6523 |
| 6514 String get displayName => "[${super.displayName}]"; | 6524 String get displayName => "[${super.displayName}]"; |
| 6515 } | 6525 } |
| 6516 | 6526 |
| 6517 /** | 6527 /** |
| 6528 * Combination of [IsTagSelectorElementImpl] and [HasAttributeSelectorElementImp
l]. |
| 6529 */ |
| 6530 class IsTagHasAttributeSelectorElementImpl extends AngularSelectorElementImpl { |
| 6531 final String tagName; |
| 6532 |
| 6533 final String attributeName; |
| 6534 |
| 6535 IsTagHasAttributeSelectorElementImpl(this.tagName, this.attributeName) : super
(null, -1); |
| 6536 |
| 6537 bool apply(XmlTagNode node) => node.tag == tagName && node.getAttribute(attrib
uteName) != null; |
| 6538 } |
| 6539 |
| 6540 /** |
| 6518 * Implementation of [AngularSelectorElement] based on tag name. | 6541 * Implementation of [AngularSelectorElement] based on tag name. |
| 6519 */ | 6542 */ |
| 6520 class IsTagSelectorElementImpl extends AngularSelectorElementImpl { | 6543 class IsTagSelectorElementImpl extends AngularSelectorElementImpl { |
| 6521 IsTagSelectorElementImpl(String name, int offset) : super(name, offset); | 6544 IsTagSelectorElementImpl(String name, int offset) : super(name, offset); |
| 6522 | 6545 |
| 6523 bool apply(XmlTagNode node) { | 6546 bool apply(XmlTagNode node) { |
| 6524 String tagName = name; | 6547 String tagName = name; |
| 6525 return node.tag == tagName; | 6548 return node.tag == tagName; |
| 6526 } | 6549 } |
| 6527 } | 6550 } |
| (...skipping 3052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9580 | 9603 |
| 9581 /** | 9604 /** |
| 9582 * The interface `VoidType` defines the behavior of the unique object representi
ng the type | 9605 * The interface `VoidType` defines the behavior of the unique object representi
ng the type |
| 9583 * `void`. | 9606 * `void`. |
| 9584 * | 9607 * |
| 9585 * @coverage dart.engine.type | 9608 * @coverage dart.engine.type |
| 9586 */ | 9609 */ |
| 9587 abstract class VoidType implements Type2 { | 9610 abstract class VoidType implements Type2 { |
| 9588 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); | 9611 VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes); |
| 9589 } | 9612 } |
| OLD | NEW |