Examples of markPotentiallyMutatedInScope()


Examples of com.google.dart.engine.internal.element.LocalVariableElementImpl.markPotentiallyMutatedInScope()

    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) {
View Full Code Here

Examples of com.google.dart.engine.internal.element.ParameterElementImpl.markPotentiallyMutatedInScope()

      }
    } else if (kind == ElementKind.PARAMETER) {
      node.setStaticElement(element);
      if (node.inSetterContext()) {
        ParameterElementImpl parameterImpl = (ParameterElementImpl) element;
        parameterImpl.markPotentiallyMutatedInScope();
        // If we are in some closure, check if it is not the same as where variable is declared.
        if (enclosingFunction != null
            && !ObjectUtilities.equals(element.getEnclosingElement(), enclosingFunction)) {
          parameterImpl.markPotentiallyMutatedInClosure();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.