src/com/google/javascript/jscomp/NodeUtil.java
/**
   * @return Whether node is a call to methodName.
   *    a.f(...)
   *    a['f'](...)
   */
@return Whether node is a call to methodName.
@return Whether node is a call to methodName .
static boolean isObjectCallMethod(Node callNode, String methodName) {
    if (callNode.isCall()) {
      Node functionIndentifyingExpression = callNode.getFirstChild();
      if (isGet(functionIndentifyingExpression)) {
        Node last = functionIndentifyingExpression.getLastChild();
        if (last != null && last.isString()) {
          String propName = last.getString();
          return (propName.equals(methodName));
        }
      }
    }
    return false;
  }
static boolean isObjectCallMethod ( Node callNode , String methodName ) { if ( callNode . isCall ( ) ) { Node functionIndentifyingExpression = callNode . getFirstChild ( ) ; if ( isGet ( functionIndentifyingExpression ) ) { Node last = functionIndentifyingExpression . getLastChild ( ) ; if ( last != null && last . isString ( ) ) { String propName = last . getString ( ) ; return ( propName . equals ( methodName ) ) ; } } } return false ; }
@return Whether node is a call to methodName.
@return Whether node is a call to methodName .