Debian Codegraph @

src/com/google/javascript/jscomp/Result.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 import java.util.Map;
20
21 /**
22 * Compilation results
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 // Visible for testing only.
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 }