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

Examples of com.google.dart.engine.internal.element.LocalVariableElementImpl


    resolver.defineVariable(variable);
  }

  private void defineLocalVariable_int(AngularHtmlUnitResolver resolver, String name) {
    InterfaceType type = resolver.getTypeProvider().getIntType();
    LocalVariableElementImpl variable = resolver.createLocalVariableWithName(type, name);
    resolver.defineVariable(variable);
  }
View Full Code Here


    // 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();
        if (!ObjectUtilities.equals(element.getEnclosingElement(), enclosingFunction)) {
          variableImpl.markPotentiallyMutatedInClosure();
        }
      }
    } else if (kind == ElementKind.PARAMETER) {
      node.setStaticElement(element);
      if (node.inSetterContext()) {
View Full Code Here

    if (typeName == null) {
      declaredType = dynamicType;
    } else {
      declaredType = getType(typeName);
    }
    LocalVariableElementImpl element = (LocalVariableElementImpl) node.getElement();
    element.setType(declaredType);
    return null;
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.element.LocalVariableElementImpl

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.