com.google.javascript.jscomp.TranspilationPasses.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!
???? 7P
java/lang/Object ()V
(com/google/javascript/jscomp/PassFactory builder 4()Lcom/google/javascript/jscomp/PassFactory$Builder; es6RewriteModule
0com/google/javascript/jscomp/PassFactory$Builder setName F(Ljava/lang/String;)Lcom/google/javascript/jscomp/PassFactory$Builder; apply k(Lcom/google/javascript/jscomp/PreprocessorSymbolTable$CachedInstanceFactory;)Ljava/util/function/Function;
setInternalFactory Q(Ljava/util/function/Function;)Lcom/google/javascript/jscomp/PassFactory$Builder;
build ,()Lcom/google/javascript/jscomp/PassFactory;
" # $ % & ,com/google/javascript/jscomp/PassListBuilder maybeAdd -(Lcom/google/javascript/jscomp/PassFactory;)V ( ) * + , 0com/google/javascript/jscomp/TranspilationPasses #injectTranspilationRuntimeLibraries *Lcom/google/javascript/jscomp/PassFactory; ( . / , es6RewriteModuleToCjs ( 1 2 , es6RelativizeImportPaths ( 4 5 , peepholeTranspilationsPasses 7 featureRemovalPasses
( 9 : ; createUnifiedFeatureRemovalPass l(Ljava/lang/String;Lcom/google/javascript/jscomp/CompilerOptions;)Lcom/google/javascript/jscomp/PassFactory; = > ? @ A >com/google/javascript/jscomp/parsing/parser/FeatureSet$Feature PUBLIC_CLASS_FIELDS @Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;
C D E F G ,com/google/javascript/jscomp/CompilerOptions needsTranspilationOf C(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)Z = I J A CLASS_STATIC_BLOCK = L M A CLASSES ( O P , es6RewriteClassExtends ( R S , es6ExtractClasses ( U V , rewriteClassMembers = X Y A LOGICAL_ASSIGNMENT ( [ \ , %rewriteLogicalAssignmentOperatorsPass = ^ _ A OPTIONAL_CHAINING ( a b , rewriteOptionalChainingOperator = d e A NULL_COALESCE_OP ( g h , rewriteNullishCoalesceOperator
C j k l getInstrumentAsyncContext ()Z ( n o , instrumentAsyncContext = q r A FOR_AWAIT_OF = t u A ASYNC_GENERATORS ( w x , rewriteAsyncIteration = z { A OBJECT_LITERALS_WITH_SPREAD = } ~ A OBJECT_PATTERN_REST ( ? ? , rewriteObjectSpread = ? ? A OBJECT_DESTRUCTURING ? ? ? ? ? Scom/google/javascript/jscomp/Es6RewriteDestructuring$ObjectDestructuringRewriteMode REWRITE_OBJECT_REST ULcom/google/javascript/jscomp/Es6RewriteDestructuring$ObjectDestructuringRewriteMode;
( ? ? ? getEs6RewriteDestructuring ?(Lcom/google/javascript/jscomp/Es6RewriteDestructuring$ObjectDestructuringRewriteMode;)Lcom/google/javascript/jscomp/PassFactory; = ? ? A ASYNC_FUNCTIONS ( ? ? , rewriteAsyncFunctions = ? ? A EXPONENT_OP ( ? ? , rewriteExponentialOperator ( ? ? , es6ConvertSuper ? ? ? ? ? 6com/google/javascript/jscomp/parsing/parser/FeatureSet BARE_MINIMUM 8Lcom/google/javascript/jscomp/parsing/parser/FeatureSet; = ? ? A ARRAY_DESTRUCTURING
? ? ? ? with {([Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
C ? ? ? needsTranspilationFrom ;(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)Z ? ? ? ? REWRITE_ALL_OBJECT_PATTERNS = ? ? A ARROW_FUNCTIONS ( ? ? , es6RewriteArrowFunction ( ? ? , es6RewriteClass = ? ? A REST_PARAMETERS = ? ? A SPREAD_EXPRESSIONS ( ? ? , es6RewriteRestAndSpread = ? ? A COMPUTED_PROPERTIES = ? ? A MEMBER_DECLARATIONS = ? ? A TEMPLATE_LITERALS ( ? ? , lateConvertEs6ToEs3 = ? ? A FOR_OF ( ? ? , es6ForOf = ? ? A !BLOCK_SCOPED_FUNCTION_DECLARATION ( ? ? , %rewriteBlockScopedFunctionDeclaration = ? ? A LET_DECLARATIONS = ? ? A CONST_DECLARATIONS ( ? ? , rewriteBlockScopedDeclaration = ? ? A
GENERATORS ( ? ? , rewriteGenerators ? ,postTranspileUnsupportedFeaturesRemovedCheck
( ? ? ? 2createPostTranspileUnsupportedFeaturesRemovedCheck >(Ljava/lang/String;)Lcom/google/javascript/jscomp/PassFactory; ( ? ? , rewritePolyfills ? Es6RewriteDestructuring ? ? t(Lcom/google/javascript/jscomp/Es6RewriteDestructuring$ObjectDestructuringRewriteMode;)Ljava/util/function/Function;
? ? ? ? ? %com/google/javascript/jscomp/NodeUtil getFeatureSetOfScript \(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
? ? containsAtLeastOneOf
-com/google/javascript/jscomp/AbstractCompiler
getOptions 0()Lcom/google/javascript/jscomp/CompilerOptions;
C
getOutputFeatureSet :()Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;
?
? contains
com/google/javascript/rhino/Node
getFirstChild $()Lcom/google/javascript/rhino/Node;
l isScript
$com/google/common/base/Preconditions
checkState (Z)V
( ! doesScriptHaveAnyOfTheseFeatures ](Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;)Z
#$%&' *com/google/javascript/jscomp/NodeTraversal traverse ?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)V
)* getNext
,- l hasHaltingErrors
/01 markFeatureNotAllowed C(Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;)V
?345 removeFeatureFromAllScripts ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet$Feature;Lcom/google/javascript/jscomp/AbstractCompiler;)V
?789 removeFeaturesFromAllScripts ?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/parsing/parser/FeatureSet;Lcom/google/javascript/jscomp/AbstractCompiler;)V
;< getAllowableFeatures
C>?@ getChunkOutputType @()Lcom/google/javascript/jscomp/CompilerOptions$ChunkOutputType; BCDEF