Examples of matchesQualifiedName()


Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

    }
    if (NodeUtil.isExprCall(n)) {
      Node target = n.getFirstChild().getFirstChild();
      return (
          target.matchesQualifiedName("goog.module")
          || target.matchesQualifiedName("goog.provide")
          || target.matchesQualifiedName("goog.require")
          || target.matchesQualifiedName("goog.setTestOnly"));
    }
    return false;
  }
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

    if (NodeUtil.isExprCall(n)) {
      Node target = n.getFirstChild().getFirstChild();
      return (
          target.matchesQualifiedName("goog.module")
          || target.matchesQualifiedName("goog.provide")
          || target.matchesQualifiedName("goog.require")
          || target.matchesQualifiedName("goog.setTestOnly"));
    }
    return false;
  }
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

      Node target = n.getFirstChild().getFirstChild();
      return (
          target.matchesQualifiedName("goog.module")
          || target.matchesQualifiedName("goog.provide")
          || target.matchesQualifiedName("goog.require")
          || target.matchesQualifiedName("goog.setTestOnly"));
    }
    return false;
  }

  private void moveChildrenAfter(Node fromNode, Node targetBlock) {
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

    @Override
    public void visit(NodeTraversal t, Node n, Node parent) {
      if (n.isCall()) {
        Node fn = n.getFirstChild();
        if (fn.matchesQualifiedName("goog$object$create") ||
            fn.matchesQualifiedName("goog.object.create")) {
          callNodes.add(n);
        }
      }
    }
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

    @Override
    public void visit(NodeTraversal t, Node n, Node parent) {
      if (n.isCall()) {
        Node fn = n.getFirstChild();
        if (fn.matchesQualifiedName("goog$object$create") ||
            fn.matchesQualifiedName("goog.object.create")) {
          callNodes.add(n);
        }
      }
    }
  }
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

      /*
       * Class considered eventful if there is an unlisten call in the
       * disposal.
       */
      if (functionCalled.matchesQualifiedName("goog.events.unlisten")) {

        if (inDisposalScope()) {
          eventfulTypes.add(typeOfThis);
        }
        isGoogEventsUnlisten(n);
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

          eventfulTypes.add(typeOfThis);
        }
        isGoogEventsUnlisten(n);
      }
      if (inDisposalScope() &&
          functionCalled.matchesQualifiedName("goog.events.removeAll")) {
        eventfulTypes.add(typeOfThis);
      }

      /*
       * If member with qualified name gets disposed of when this class
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

        return null;
      }

      Node callTarget = n.getFirstChild();
      if (callTarget.isQualifiedName()) {
        if (callTarget.matchesQualifiedName("Function.prototype.bind.call")) {
          // goog.bind(fn, self, args...);
          Node fn = callTarget.getNext();
          if (fn == null) {
            return null;
          }
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

        case Token.GETPROP:
        case Token.NAME:
          if (next.isQualifiedName()) {
            if (value.isQualifiedName() &&
                next.matchesQualifiedName(value)) {
              // If the previous expression evaluates to value of a
              // qualified name, and that qualified name is used again
              // shortly, then we can exploit the assign here.

              // Verify the assignment doesn't change its own value.
View Full Code Here

Examples of com.google.javascript.rhino.Node.matchesQualifiedName()

          // }
          if (name == null) {
            return true;
          }
          if ((firstChild.isGetProp() || firstChild.isName())
              && firstChild.matchesQualifiedName(name)) {
            return true;
          }
        }
        return false;
      }
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.