Debian Codegraph @

src/com/google/javascript/jscomp/PropertyRenamingPolicy.java

raw symbols SCIP
1 /*
2 * Copyright 2009 The Closure Compiler Authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.google.javascript.jscomp;
18
19 /**
20 * Policies to determine how properties should be renamed.
21 */
22 public enum PropertyRenamingPolicy {
23 /**
24 * Rename no properties.
25 */
26 OFF,
27
28 /**
29 * Rename properties heuristically.
30 * @see RenamePrototypes
31 */
32 HEURISTIC,
33
34 /**
35 * Rename properties more heuristically.
36 * @see RenamePrototypes
37 */
38 AGGRESSIVE_HEURISTIC,
39
40 /**
41 * Rename all properties that aren't explicitly quoted and aren't
42 * externally defined (i.e. declared in an externs file). This policy
43 * achieves better compaction than the others.
44 * @see RenameProperties
45 */
46 ALL_UNQUOTED,
47
48 // for transitioning off old flags. not for public consumption.
49 UNSPECIFIED
50 }