src/com/google/javascript/jscomp/NodeUtil.java
/** Whether the given name is constant by coding convention. */
Whether the given name is constant by coding convention.
Whether the given name is constant by coding convention .
static boolean isConstantByConvention(
      CodingConvention convention, Node node) {
    Node parent = node.getParent();
    if (parent.isGetProp() && node == parent.getLastChild()) {
      return convention.isConstantKey(node.getString());
    } else if (isObjectLitKey(node)) {
      return convention.isConstantKey(node.getString());
    } else if (node.isName()) {
      return convention.isConstant(node.getString());
    }
    return false;
  }
static boolean isConstantByConvention ( CodingConvention convention , Node node ) { Node parent = node . getParent ( ) ; if ( parent . isGetProp ( ) && node == parent . getLastChild ( ) ) { return convention . isConstantKey ( node . getString ( ) ) ; } else if ( isObjectLitKey ( node ) ) { return convention . isConstantKey ( node . getString ( ) ) ; } else if ( node . isName ( ) ) { return convention . isConstant ( node . getString ( ) ) ; } return false ; }
Whether the given name is constant by coding convention.
Whether the given name is constant by coding convention .