| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| Modifier and Type | Class and Description |
|---|---|
private static class |
FunctionRewriter.EmptyFunctionReducer
Reduces return immutable constant literal methods declarations
with calls to a constant return method factory.
|
private static class |
FunctionRewriter.GetterReducer
Reduces property getter method declarations with calls to a
getter method factory.
|
private static class |
FunctionRewriter.IdentityReducer
Reduces property getter method declarations with calls to a
getter method factory.
|
private static class |
FunctionRewriter.ReturnConstantReducer
Reduces return immutable constant literal methods declarations
with calls to a constant return method factory.
|
private static class |
FunctionRewriter.SetterReducer
Reduces property setter method declarations with calls to a
setter method factory.
|
(package private) static class |
FunctionRewriter.SingleReturnStatementReducer
Base class for reducers that match functions that contain a
single return statement.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<FunctionRewriter.Reducer> |
FunctionRewriter.ReductionGatherer.reducers |
private com.google.common.collect.Multimap<FunctionRewriter.Reducer,FunctionRewriter.Reduction> |
FunctionRewriter.ReductionGatherer.reductions |
| Modifier and Type | Method and Description |
|---|---|
Node |
FunctionRewriter.parseHelperCode(FunctionRewriter.Reducer reducer)
Parse helper code needed by a reducer.
|
| Constructor and Description |
|---|
ReductionGatherer(java.util.List<FunctionRewriter.Reducer> reducers,
com.google.common.collect.Multimap<FunctionRewriter.Reducer,FunctionRewriter.Reduction> reductions) |
ReductionGatherer(java.util.List<FunctionRewriter.Reducer> reducers,
com.google.common.collect.Multimap<FunctionRewriter.Reducer,FunctionRewriter.Reduction> reductions) |