com.google.javascript.jscomp.JsAst.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
what's left. It also checks syntax, variable references, and types, and
warns about common JavaScript pitfalls. It is used in many of Google's
JavaScript apps, including Gmail, Google Web Search, Google Maps, and
Google Docs.
The newest version!
???? 7!
java/lang/Object ()V #com/google/javascript/rhino/InputId
'com/google/javascript/jscomp/SourceFile getName ()Ljava/lang/String;
(Ljava/lang/String;)V "com/google/javascript/jscomp/JsAst inputId %Lcom/google/javascript/rhino/InputId;
sourceFile )Lcom/google/javascript/jscomp/SourceFile;
isParsed ()Z ! " # root "Lcom/google/javascript/rhino/Node;
% & ' ( ) -com/google/javascript/jscomp/AbstractCompiler getTypedAstDeserializer H(Lcom/google/javascript/jscomp/SourceFile;)Ljava/util/function/Supplier; + , - . / java/util/function/Supplier get ()Ljava/lang/Object; 1 com/google/javascript/rhino/Node 0 3 4 5 FEATURE_SET 'Lcom/google/javascript/rhino/Node$Prop;
0 7 8 9 getProp ;(Lcom/google/javascript/rhino/Node$Prop;)Ljava/lang/Object; ; 6com/google/javascript/jscomp/parsing/parser/FeatureSet = > ? features 8Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
A B C parse 2(Lcom/google/javascript/jscomp/AbstractCompiler;)V
0 E F G getStaticSourceFile 0()Lcom/google/javascript/rhino/StaticSourceFile;
I J K L M /com/google/javascript/jscomp/base/JSCompObjects identical '(Ljava/lang/Object;Ljava/lang/Object;)Z
O P Q R S $com/google/common/base/Preconditions
checkState (Z)V
0 U V W
setInputId ((Lcom/google/javascript/rhino/InputId;)V
Y Z clearCachedSource
\ ] ^
getAstRoot S(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/rhino/Node; ` 9com/google/javascript/jscomp/JsAst$RecordingReporterProxy
% b c d getDefaultErrorReporter -()Lcom/google/javascript/rhino/ErrorReporter;
_ f g .(Lcom/google/javascript/rhino/ErrorReporter;)V
i j getCode
l m isExtern o p q r s ;com/google/javascript/jscomp/AbstractCompiler$ConfigContext EXTERNS =Lcom/google/javascript/jscomp/AbstractCompiler$ConfigContext; o u v s DEFAULT
% x y z getParserConfig l(Lcom/google/javascript/jscomp/AbstractCompiler$ConfigContext;)Lcom/google/javascript/jscomp/parsing/Config;
| } ~ B 1com/google/javascript/jscomp/parsing/ParserRunner ?(Lcom/google/javascript/rhino/StaticSourceFile;Ljava/lang/String;Lcom/google/javascript/jscomp/parsing/Config;Lcom/google/javascript/rhino/ErrorReporter;)Lcom/google/javascript/jscomp/parsing/ParserRunner$ParseResult; ? ? ? ? # =com/google/javascript/jscomp/parsing/ParserRunner$ParseResult ast ? =
% ? ? ?
getOptions 0()Lcom/google/javascript/jscomp/CompilerOptions;
? ? ? ? ,com/google/javascript/jscomp/CompilerOptions preservesDetailedSourceInfo ? ? ? ? comments Ljava/util/List;
% ? ? ? addComments %(Ljava/lang/String;Ljava/util/List;)V ? ? ? ? sourceMapURL Ljava/lang/String; ? ? ? ? resolveSourceMapAnnotations Z ? ? ? ? parseInlineSourceMaps
? ? ? ? ? .com/google/javascript/jscomp/SourceMapResolver extractSourceMap g(Lcom/google/javascript/jscomp/SourceFile;Ljava/lang/String;Z)Lcom/google/javascript/jscomp/SourceFile; ? +com/google/javascript/jscomp/SourceMapInput
? ? ? ,(Lcom/google/javascript/jscomp/SourceFile;)V
% ? ? ? addInputSourceMap B(Ljava/lang/String;Lcom/google/javascript/jscomp/SourceMapInput;)V ? java/io/IOException % ? ? ?
READ_ERROR -Lcom/google/javascript/jscomp/DiagnosticType; ? java/lang/String
? ? ?
getMessage
? ? ? ? ? $com/google/javascript/jscomp/JSError make h(Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
% ? ? ? report )(Lcom/google/javascript/jscomp/JSError;)V
? ? ? ? ? com/google/javascript/rhino/IR script $()Lcom/google/javascript/rhino/Node; _ ? ? ? errors Ljava/util/ArrayList;
? ? ? ? java/util/ArrayList isEmpty _ ? ? ? warnings ? .com/google/javascript/jscomp/JsAst$ParseResult
? ? ? ? ? 'com/google/common/collect/ImmutableList copyOf A(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
? ? ? U(Lcom/google/common/collect/ImmutableList;Lcom/google/common/collect/ImmutableList;)V 0 ? ? 5
PARSE_RESULTS
0 ? ? ? putProp <(Lcom/google/javascript/rhino/Node$Prop;Ljava/lang/Object;)V
0 ? ? ? setStaticSourceFile R(Lcom/google/javascript/rhino/StaticSourceFile;)Lcom/google/javascript/rhino/Node; ? &com/google/javascript/jscomp/SourceAst serialVersionUID J
ConstantValue RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; Code LineNumberTable LocalVariableTable this $Lcom/google/javascript/jscomp/JsAst; MethodParameters compiler /Lcom/google/javascript/jscomp/AbstractCompiler;
astRootSource Ljava/util/function/Supplier; LocalVariableTypeTable ALjava/util/function/Supplier;
StackMapTable clearAst
getInputId '()Lcom/google/javascript/rhino/InputId;
getSourceFile +()Lcom/google/javascript/jscomp/SourceFile; getFeatures i(Lcom/google/javascript/jscomp/AbstractCompiler;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet; parseInline sourceMapSourceFile result ?Lcom/google/javascript/jscomp/parsing/ParserRunner$ParseResult; e Ljava/io/IOException; 0Lcom/google/javascript/jscomp/JsAst$ParseResult; reporter ;Lcom/google/javascript/jscomp/JsAst$RecordingReporterProxy;
SourceFile
JsAst.java NestMembers -com/google/javascript/jscomp/JsAst$RhinoError InnerClasses %com/google/javascript/rhino/Node$Prop Prop RecordingReporterProxy
ConfigContext ParseResult
RhinoError ! ? ? ? ? ? " # ? ? > ? ? ? Y *? *? Y+? ? ? *+? ? ? / 0 1 2 ? ? ? ? ] ^ ? ? g*? ? *? ?+*? ? $M,? $*,? * ? 0? **? ? 2? 6? :?