| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package com.google.javascript.jscomp; |
| 18 |
|
| 19 |
import java.util.Map; |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
public class Result { |
| 25 |
public final boolean success; |
| 26 |
public final JSError[] errors; |
| 27 |
public final JSError[] warnings; |
| 28 |
public final String debugLog; |
| 29 |
public final VariableMap variableMap; |
| 30 |
public final VariableMap propertyMap; |
| 31 |
public final VariableMap namedAnonFunctionMap; |
| 32 |
public final VariableMap stringMap; |
| 33 |
public final FunctionInformationMap functionInformationMap; |
| 34 |
public final SourceMap sourceMap; |
| 35 |
public final Map<String, Integer> cssNames; |
| 36 |
public final String externExport; |
| 37 |
public final String idGeneratorMap; |
| 38 |
|
| 39 |
Result(JSError[] errors, JSError[] warnings, String debugLog, |
| 40 |
VariableMap variableMap, VariableMap propertyMap, |
| 41 |
VariableMap namedAnonFunctionMap, |
| 42 |
VariableMap stringMap, |
| 43 |
FunctionInformationMap functionInformationMap, |
| 44 |
SourceMap sourceMap, String externExport, |
| 45 |
Map<String, Integer> cssNames, String idGeneratorMap) { |
| 46 |
this.success = errors.length == 0; |
| 47 |
this.errors = errors; |
| 48 |
this.warnings = warnings; |
| 49 |
this.debugLog = debugLog; |
| 50 |
this.variableMap = variableMap; |
| 51 |
this.propertyMap = propertyMap; |
| 52 |
this.namedAnonFunctionMap = namedAnonFunctionMap; |
| 53 |
this.stringMap = stringMap; |
| 54 |
this.functionInformationMap = functionInformationMap; |
| 55 |
this.sourceMap = sourceMap; |
| 56 |
this.externExport = externExport; |
| 57 |
this.cssNames = cssNames; |
| 58 |
this.idGeneratorMap = idGeneratorMap; |
| 59 |
} |
| 60 |
|
| 61 |
|
| 62 |
public Result(JSError[] errors, JSError[] warnings, String debugLog, |
| 63 |
VariableMap variableMap, VariableMap propertyMap, |
| 64 |
VariableMap namedAnonFunctionMap, |
| 65 |
FunctionInformationMap functionInformationMap, |
| 66 |
SourceMap sourceMap, String externExport) { |
| 67 |
this(errors, warnings, debugLog, variableMap, propertyMap, |
| 68 |
namedAnonFunctionMap, null, functionInformationMap, sourceMap, |
| 69 |
externExport, null, null); |
| 70 |
} |
| 71 |
} |