Package com.google.dart.engine.element.angular

Examples of com.google.dart.engine.element.angular.AngularSelectorElement


        }
      }
      // try selector
      if (toolkitObject instanceof AngularHasSelectorElement) {
        AngularHasSelectorElement hasSelector = (AngularHasSelectorElement) toolkitObject;
        AngularSelectorElement selector = hasSelector.getSelector();
        if (isNameCoveredByLiteral(selector, node)) {
          return selector;
        }
      }
      // try properties of AngularComponentElement
View Full Code Here


    if (hasStringArgument(PUBLISH_AS)) {
      name = getStringArgument(PUBLISH_AS);
      nameOffset = getStringArgumentOffset(PUBLISH_AS);
    }
    // selector
    AngularSelectorElement selector = null;
    if (!hasStringArgument(SELECTOR)) {
      reportErrorForAnnotation(AngularCode.MISSING_SELECTOR);
      isValid = false;
    } else {
      SimpleStringLiteral selectorLiteral = getStringLiteral(SELECTOR);
View Full Code Here

    if (!hasStringArgument(PUBLISH_AS)) {
      reportErrorForAnnotation(AngularCode.MISSING_PUBLISH_AS);
      isValid = false;
    }
    // selector
    AngularSelectorElement selector = null;
    if (!hasStringArgument(SELECTOR)) {
      reportErrorForAnnotation(AngularCode.MISSING_SELECTOR);
      isValid = false;
    } else {
      SimpleStringLiteral selectorLiteral = getStringLiteral(SELECTOR);
View Full Code Here

  }

  private void parseDecorator() {
    boolean isValid = true;
    // selector
    AngularSelectorElement selector = null;
    if (!hasStringArgument(SELECTOR)) {
      reportErrorForAnnotation(AngularCode.MISSING_SELECTOR);
      isValid = false;
    } else {
      SimpleStringLiteral selectorLiteral = getStringLiteral(SELECTOR);
View Full Code Here

  @Override
  public void apply(AngularHtmlUnitResolver resolver, XmlTagNode node) {
    String selectorAttributeName = null;
    {
      AngularSelectorElement selector = element.getSelector();
      if (selector instanceof HasAttributeSelectorElementImpl) {
        selectorAttributeName = ((HasAttributeSelectorElementImpl) selector).getName();
        // resolve attribute expression
        XmlAttributeNode attribute = node.getAttribute(selectorAttributeName);
        if (attribute != null) {
View Full Code Here

TOP

Related Classes of com.google.dart.engine.element.angular.AngularSelectorElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.