Package com.google.dart.engine.element

Examples of com.google.dart.engine.element.ElementKind


    SimpleIdentifier identifier = (SimpleIdentifier) expression;
    Element element = identifier.getStaticElement();
    if (!(element instanceof VariableElement)) {
      return null;
    }
    ElementKind kind = element.getKind();
    if (kind == ElementKind.LOCAL_VARIABLE) {
      return (VariableElement) element;
    }
    if (kind == ElementKind.PARAMETER) {
      return (VariableElement) element;
View Full Code Here


    Element element = getNameScope().lookup(node, getDefiningLibrary());
    if (!(element instanceof VariableElement)) {
      return null;
    }
    // Must be local or parameter.
    ElementKind kind = element.getKind();
    if (kind == ElementKind.LOCAL_VARIABLE) {
      node.setStaticElement(element);
      if (node.inSetterContext()) {
        LocalVariableElementImpl variableImpl = (LocalVariableElementImpl) element;
        variableImpl.markPotentiallyMutatedInScope();
View Full Code Here

TOP

Related Classes of com.google.dart.engine.element.ElementKind

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.