src/com/google/javascript/jscomp/NodeUtil.java
/**
   * True for aliases defined with @const, not for aliases defined with @constructor/@interface.
   */
True for aliases defined with @const, not for aliases defined with @constructor/@interface.
True for aliases defined with @const not for aliases defined with @constructor / @interface .
static boolean isAliasedConstDefinition(Node lhs) {
    JSDocInfo jsdoc = getBestJSDocInfo(lhs);
    if (jsdoc == null && !lhs.isFromExterns()) {
      return false;
    }
    if (jsdoc != null && !jsdoc.hasConstAnnotation()) {
      return false;
    }
    Node rhs = getRValueOfLValue(lhs);
    if (rhs == null || !rhs.isQualifiedName()) {
      return false;
    }
    Node parent = lhs.getParent();
    return (lhs.isName() && parent.isVar())
        || (lhs.isGetProp() && lhs.isQualifiedName()
            && parent.isAssign() && parent.getParent().isExprResult());
  }
static boolean isAliasedConstDefinition ( Node lhs ) { JSDocInfo jsdoc = getBestJSDocInfo ( lhs ) ; if ( jsdoc == null && ! lhs . isFromExterns ( ) ) { return false ; } if ( jsdoc != null && ! jsdoc . hasConstAnnotation ( ) ) { return false ; } Node rhs = getRValueOfLValue ( lhs ) ; if ( rhs == null || ! rhs . isQualifiedName ( ) ) { return false ; } Node parent = lhs . getParent ( ) ; return ( lhs . isName ( ) && parent . isVar ( ) ) || ( lhs . isGetProp ( ) && lhs . isQualifiedName ( ) && parent . isAssign ( ) && parent . getParent ( ) . isExprResult ( ) ) ; }
True for aliases defined with @const, not for aliases defined with @constructor/@interface.
True for aliases defined with @const not for aliases defined with @constructor / @interface .