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

Examples of com.google.dart.engine.internal.element.angular.AngularScopePropertyElementImpl


        if (hasPropertyWithName(name)) {
          return;
        }
        // do add property
        int nameOffset = nameNode.getValueOffset();
        AngularScopePropertyElement property = new AngularScopePropertyElementImpl(
            name,
            nameOffset,
            node.getRightHandSide().getBestType());
        nameNode.setToolkitElement(property);
        properties.add(property);
      }

      private SimpleStringLiteral getNameNode(Expression node) {
        if (node instanceof IndexExpression) {
          IndexExpression indexExpression = (IndexExpression) node;
          Expression target = indexExpression.getTarget();
          Expression index = indexExpression.getIndex();
          if (index instanceof SimpleStringLiteral && isContext(target)) {
            return (SimpleStringLiteral) index;
          }
        }
        return null;
      }

      private boolean hasPropertyWithName(String name) {
        for (AngularScopePropertyElement property : properties) {
          if (property.getName().equals(name)) {
            return true;
          }
        }
        return false;
      }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.element.angular.AngularScopePropertyElementImpl

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.