Package com.google.dart.engine.internal.element.polymer

Examples of com.google.dart.engine.internal.element.polymer.PolymerAttributeElementImpl


      if (!definedNames.add(name)) {
        reportErrorForNameToken(nameToken, PolymerCode.DUPLICATE_ATTRIBUTE_DEFINITION, name);
        continue;
      }
      // create attribute
      PolymerAttributeElementImpl attribute = new PolymerAttributeElementImpl(name, offset);
      attributes.add(attribute);
      // resolve field
      FieldElement field = classElement.getField(name);
      if (field == null) {
        reportErrorForNameToken(
            nameToken,
            PolymerCode.UNDEFINED_ATTRIBUTE_FIELD,
            name,
            classElement.getDisplayName());
        continue;
      }
      if (!isPublishedField(field)) {
        reportErrorForNameToken(
            nameToken,
            PolymerCode.ATTRIBUTE_FIELD_NOT_PUBLISHED,
            name,
            classElement.getDisplayName());
      }
      attribute.setField(field);
    }
    htmlElement.setAttributes(attributes.toArray(new PolymerAttributeElement[attributes.size()]));
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.element.polymer.PolymerAttributeElementImpl

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.