src/com/google/javascript/jscomp/NodeUtil.java
/** Adds the given features to a SCRIPT node's FeatureSet property. */
Adds the given features to a SCRIPT node's FeatureSet property.
Adds the given features to a SCRIPT node ' s FeatureSet property .
static void addFeatureToScript(Node scriptNode, Feature feature) {
    checkState(scriptNode.isScript(), scriptNode);
    FeatureSet currentFeatures = getFeatureSetOfScript(scriptNode);
    FeatureSet newFeatures =
        currentFeatures != null
            ? currentFeatures.with(feature)
            : FeatureSet.BARE_MINIMUM.with(feature);
    scriptNode.putProp(Node.FEATURE_SET, newFeatures);
  }
static void addFeatureToScript ( Node scriptNode , Feature feature ) { checkState ( scriptNode . isScript ( ) , scriptNode ) ; FeatureSet currentFeatures = getFeatureSetOfScript ( scriptNode ) ; FeatureSet newFeatures = currentFeatures != null ? currentFeatures . with ( feature ) : FeatureSet . BARE_MINIMUM . with ( feature ) ; scriptNode . putProp ( Node . FEATURE_SET , newFeatures ) ; }
Adds the given features to a SCRIPT node's FeatureSet property.
Adds the given features to a SCRIPT node ' s FeatureSet property .