com.google.javascript.jscomp.instrumentation.CoverageInstrumentationCallback.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
Lcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationCallback instrumentationData Ljava/util/Map; reach XLcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationPass$CoverageReach;
*com/google/javascript/jscomp/NodeTraversal
getSourceName ()Ljava/lang/String;
getFileName @(Lcom/google/javascript/jscomp/NodeTraversal;)Ljava/lang/String;
9com/google/javascript/jscomp/instrumentation/CoverageUtil createIdentifierFromText &(Ljava/lang/String;)Ljava/lang/String; " # makeConcatWithConstants
% & ' ( ) com/google/javascript/rhino/Node getLineno ()I
+ , createArrayName
. / 0 1 2 com/google/javascript/rhino/IR name 6(Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
. 4 5 6 number %(D)Lcom/google/javascript/rhino/Node;
. 8 9 : getelem h(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
. < = > trueNode $()Lcom/google/javascript/rhino/Node;
. @ A : assign
. C D E
exprResult F(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; G H I apply 1(Ljava/lang/String;)Ljava/util/function/Function; K L M N O
java/util/Map computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object; K Q R S get &(Ljava/lang/Object;)Ljava/lang/Object; U Dcom/google/javascript/jscomp/instrumentation/FileInstrumentationData
T W X Y setLineAsInstrumented (I)V
% [ \ E srcrefTreeIfMissing
. ^ _ ` arraylit G([Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
. b c : var
e f g h S $com/google/common/base/Preconditions checkNotNull j Hcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationPass l __jscov
n o p newArrayDeclarationNode P(Lcom/google/javascript/jscomp/NodeTraversal;)Lcom/google/javascript/rhino/Node; r
executedLines
. t u 2 string w push
. y z { getprop X(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Lcom/google/javascript/rhino/Node;
. } ~ call i(Lcom/google/javascript/rhino/Node;[Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node; ? instrumentedLines
T ? ? getInstrumentedLinesAsHexString ? fileNames
. ? ? ` block
% ? ? ? isScript ()Z
% ? ? ? getJSDocInfo )()Lcom/google/javascript/rhino/JSDocInfo;
? ? ? ? ? %com/google/javascript/rhino/JSDocInfo isNoCoverage
% ? ? ? hasChildren
% ? ? >
getFirstChild
% ? ? ? isModuleBody
? ? ?
newHeaderNode r(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
% ? ? > removeChildren
% ? ? ? addChildrenToFront %(Lcom/google/javascript/rhino/Node;)V
? ? reportCodeChange ? ? ? ? Vcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationPass$CoverageReach CONDITIONAL
% ? ? ?
isFunction
? ? ? ? E %com/google/javascript/jscomp/NodeUtil getFunctionBody
% ? ? ? isBlock
% ? ? > detach
. ? ? E
returnNode
. ? ? E
% ? ? ? addChildToBack
% ? ? ? isWith
% ? ? ? isCase
% ? ? ?
isDefaultCase
% ? ? ? isCatch
% ? ? > getLastChild
? ? ? newInstrumentationNode
% ? ? ? addChildToFront
% ? ? ? isTry
? ? ? ? isStatementBlock %(Lcom/google/javascript/rhino/Node;)Z
% ? ? ? insertBefore
T ? ? '(Ljava/lang/String;Ljava/lang/String;)V ? 3com/google/javascript/jscomp/NodeTraversal$Callback Signature iLjava/util/Map; ARRAY_NAME_PREFIX Ljava/lang/String;
ConstantValue ? JSCompiler_lcov_data_ j(Ljava/util/Map;Lcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationPass$CoverageReach;)V Code LineNumberTable LocalVariableTable this NLcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationCallback; LocalVariableTypeTable MethodParameters ?(Ljava/util/Map;Lcom/google/javascript/jscomp/instrumentation/CoverageInstrumentationPass$CoverageReach;)V traversal ,Lcom/google/javascript/jscomp/NodeTraversal; node "Lcom/google/javascript/rhino/Node;
lineNumber I arrayName getElemNode exprNode fileName srcref data FLcom/google/javascript/jscomp/instrumentation/FileInstrumentationData; objName shouldTraverse s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Z
nodeTraversal n parent
StackMapTable visit s(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)V returnValue body codeBlock
firstChild java/lang/String lambda$newInstrumentationNode$0 l(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/instrumentation/FileInstrumentationData; k
SourceFile $CoverageInstrumentationCallback.java RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; value FileInstrumentationData BootstrapMethods$
%&' #( $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;* JSCompiler_lcov_data_,
-./01 "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; S4
57 Z(Ljava/lang/String;)Lcom/google/javascript/jscomp/instrumentation/FileInstrumentationData; InnerClasses
CoverageReach Callback< %java/lang/invoke/MethodHandles$Lookup> java/lang/invoke/MethodHandles Lookup ? ? ? ? ? ? ? ? ? k *? *+? *,?
? ? ( ) * + ? ? ? ? ? ? ? ?
? / *? ? ? 3 ? ? ? ? ? , ? I
+? ? ? ! ? ? ; <