All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.lint.CheckJSDocStyle.class Maven / Gradle / Ivy

Go to download

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?
Dcom/google/javascript/jscomp/NodeTraversal$AbstractPostOrderCallback()V		
1com/google/javascript/jscomp/lint/CheckJSDocStylecompiler/Lcom/google/javascript/jscomp/AbstractCompiler;
*com/google/javascript/jscomp/NodeTraversaltraverse?(Lcom/google/javascript/jscomp/AbstractCompiler;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/NodeTraversal$Callback;)VAcom/google/javascript/jscomp/lint/CheckJSDocStyle$ExternsCallback
	3com/google/javascript/jscomp/lint/CheckJSDocStyle$1,$SwitchMap$com$google$javascript$rhino$Token[I
 ! com/google/javascript/rhino/NodegetToken%()Lcom/google/javascript/rhino/Token;
#$%&'!com/google/javascript/rhino/Tokenordinal()I
)*+
visitFunctionQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)V
-.+
visitClass
01+checkStyleForPrivateProperties
34567%com/google/javascript/jscomp/NodeUtilgetEnclosingClassF(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/Node;
9:+visitNonFunction
<=>?@%com/google/javascript/rhino/JSDocInfoisAtSignCodePresent()Z	BCD PREFER_BACKTICKS_TO_AT_SIGN_CODE-Lcom/google/javascript/jscomp/DiagnosticType;Fjava/lang/String
HIJreporte(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)V
LMNgetJSDocInfo)()Lcom/google/javascript/rhino/JSDocInfo;
PQRcheckForAtSignCodePresencex(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/JSDocInfo;)V
3TUVgetBestJSDocInfoK(Lcom/google/javascript/rhino/Node;)Lcom/google/javascript/rhino/JSDocInfo;
XYZgetGrandparent$()Lcom/google/javascript/rhino/Node;
\]@isClassMembers
_`Z	getParent
bc@isSetterDef
ef@isGetterDef
<hi@hasType	klD%INCORRECT_ANNOTATION_ON_GETTER_SETTER
nophasAnyInlineJsDoc%(Lcom/google/javascript/rhino/Node;)Z
rs+checkMissingJsDoc
uv@
inGlobalScope
<xyzgetParameterNames()Ljava/util/Set;|}~@
java/util/SetisEmpty
<??@
hasReturnType
<??@
isOverride
??RcheckParams
??RcheckNoTypeOnGettersAndSetters
???checkReturnL(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/JSDocInfo;)V
<??@
isConstructor	??DCLASS_DISALLOWED_JSDOC
???isFunctionThatShouldHaveJsDocQ(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;)Z
??pisTestMethod	??D
MISSING_JSDOC
??@inGlobalHoistScope
??@
inModuleScope
3??pisFunctionDeclaration
3??pisNameDeclaration
??@isAssign
??@isExport
??@isMemberFunctionDef
??pisConstructorWithoutParameters
??@isObjectLit?Polymer
3???isCallTo7(Lcom/google/javascript/rhino/Node;Ljava/lang/String;)Z
3??7
getBestLValue
3???getBestLValueName6(Lcom/google/javascript/rhino/Node;)Ljava/lang/String;
?????0com/google/javascript/jscomp/ExportTestFunctionsisTestFunction(Ljava/lang/String;)Z
3??pisEs6Constructor
3??7getFunctionParameters
??@hasChildren
<???getType0()Lcom/google/javascript/rhino/JSTypeExpression;
?????'com/google/common/collect/ImmutableListof+()Lcom/google/common/collect/ImmutableList;
????copyOfA(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;?}?java/util/List
??RcheckInlineParams???'size
???hasXChildren(I)Z	??DWRONG_NUMBER_OF_PARAMS?
?????$com/google/javascript/jscomp/JSErrormake?(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/jscomp/DiagnosticType;[Ljava/lang/String;)Lcom/google/javascript/jscomp/JSError;
??I-com/google/javascript/jscomp/AbstractCompiler)(Lcom/google/javascript/jscomp/JSError;)V
Z
getFirstChild?iterator()Ljava/util/Iterator;

@java/util/IteratorhasNext
next()Ljava/lang/Object;	DMIXED_PARAM_JSDOC_STYLES
<getParameterTypeB(Ljava/lang/String;)Lcom/google/javascript/rhino/JSTypeExpression;

checkParam?(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Ljava/lang/String;Lcom/google/javascript/rhino/JSTypeExpression;)Z
ZgetNext
!"@isDefaultValue	$%DMISSING_PARAMETER_JSDOC'+Inline JSDoc info should always have a type
)*+,-$com/google/common/base/PreconditionscheckNotNull8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
/0@isName
234	getString()Ljava/lang/String;6opt_
E89?
startsWith
;<@isDestructuringPattern
>?@isRest
)ABC
checkState(ZLjava/lang/Object;)VE
GH?matchesQualifiedName	JKDINCORRECT_PARAM_NAME
MNOP@,com/google/javascript/rhino/JSTypeExpression
isOptionalArg
MRSZgetRoot	UVD"OPTIONAL_PARAM_NOT_MARKED_OPTIONAL
XYp%isDefaultAssignedParamWithInlineJsDoc[Fcom/google/javascript/jscomp/lint/CheckJSDocStyle$FindNonTrivialReturn
Z
^_ZgetLastChild	ZabcfoundZ	efDMISSING_RETURN_JSDOChJSC_CLASS_DISALLOWED_JSDOCj2@constructor annotations are redundant on classes.
lmnop+com/google/javascript/jscomp/DiagnosticTypedisabledS(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/DiagnosticType;rJSC_MISSING_JSDOCtFunction must have JSDoc.vJSC_TYPE_ON_GETTER_SETTERx\Getters and setters must not have @type annotations. Did you mean @return or @param instead?zJSC_MISSING_PARAMETER_JSDOC|Parameter must have JSDoc.{0}~JSC_MIXED_PARAM_JSDOC_STYLES?>Functions may not use both @param annotations and inline JSDoc?JSC_MISSING_RETURN_JSDOC?LFunction that returns a value must have JSDoc indicating the return type.{0}?&JSC_OPTIONAL_PARAM_NOT_MARKED_OPTIONAL?HParameter {0} is optional so it must have a JSDoc type ending with ''=''?JSC_WRONG_NUMBER_OF_PARAMS?"Wrong number of @param annotations?JSC_INCORRECT_PARAM_NAME?EIncorrect param name. Are your @param annotations in the wrong order??%JSC_EXTERNS_FILES_SHOULD_BE_ANNOTATED?KExterns files should be annotated with @externs in the @fileoverview block.	??D!EXTERNS_FILES_SHOULD_BE_ANNOTATED?$JSC_PREFER_BACKTICKS_TO_AT_SIGN_CODE?1Use `some_code` instead of '{'@code some_code'}'.?,com/google/javascript/jscomp/DiagnosticGroup
???1([Lcom/google/javascript/jscomp/DiagnosticType;)V	???LINT_DIAGNOSTICS.Lcom/google/javascript/jscomp/DiagnosticGroup;
???2([Lcom/google/javascript/jscomp/DiagnosticGroup;)V	???ALL_DIAGNOSTICS?)com/google/javascript/jscomp/CompilerPass2(Lcom/google/javascript/jscomp/AbstractCompiler;)VCodeLineNumberTableLocalVariableTablethis3Lcom/google/javascript/jscomp/lint/CheckJSDocStyle;MethodParametersprocessG(Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vexterns"Lcom/google/javascript/rhino/Node;rootvisits(Lcom/google/javascript/jscomp/NodeTraversal;Lcom/google/javascript/rhino/Node;Lcom/google/javascript/rhino/Node;)Vt,Lcom/google/javascript/jscomp/NodeTraversal;nunused
StackMapTablejsDoc'Lcom/google/javascript/rhino/JSDocInfo;RuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;
memberNodefunctioncls
bestLValuenameLjava/lang/String;	paramType.Lcom/google/javascript/rhino/JSTypeExpression;s	paramListparamparamsFromJsDocLjava/util/List;LocalVariableTypeTable$Ljava/util/List;?[Ljava/lang/String;fnJSDocnameOptionalnodeToCheck
jsDocOptionalerrorSourcefinderHLcom/google/javascript/jscomp/lint/CheckJSDocStyle$FindNonTrivialReturn;
SourceFileCheckJSDocStyle.javaNestMembersInnerClassesAbstractPostOrderCallback?3com/google/javascript/jscomp/NodeTraversal$CallbackCallbackExternsCallbackFindNonTrivialReturn1??D?DlD%DDfDVD?DKD?DCD??????F
*?*+???lm	n?
??
????_*?,*?
*?+?Y??
??r	st? ???????	??????y?,??".?g9BKTTTTTWWW*+,?(?.*+,?,?%*+,?/??,?2?*+,?/?	*+,?8??2xDzJ{M}S~V?\?_?b?i?r?x??*y??y??y??y????D?
???QR?{-??-?;?+,?A?E?G????????*??????????
????	?:+?]
,?KN*+,-?O??????*
??
??
?????	??1+?]
,?SN*+,-?O??????*
??
??
?????	??
?R??5+?W?[?-+?^N-?a?
-?d?,?,?g?*+?j?E?G???
???(?4??*%??5??5??5??????
???*+??^,?SN*+,-?O-?*,?m?*+,?q??+?t?%*,?m?-?w?{?-???
-???
*+,-??+,-??*,-????6
????!?*?1?=?D?J?Q?W?]??*^??^??^??Y????!<(?	??.+??%,?SN*+,-?O-??-???+,???E?G????????$??*%??%??%?? ???	?<?	??s+?m*+,???*,???+,???E?G?????? ????????	?????3?+???+????,????,?W???
,?^????,?^????,?W?[?-,?^N-???*,?????-?d?
-?a??,?W???,?W?^???????F?????-?/?9?;?E?J?Q?_?m?o?z????*J%?????????????!@
?@?	???p??#+??M,?
,?ħN-?-?ș????*#??#????????@E?E@???p?^+?Ι+?ѶԚ?????????@???R?d?-?-????-?	?ۧ
-?w??:???
*+,-???,??:????(*????EY-??????S??????:?:?	?I??E:?K?+??E?G:	-	?:
*+	
????:?????n)39HW!^#c$fil%m(t)?*?+?-?.?/?0?2?3?5?f
???	???
?7??9???tY???????????????????????	F????/<??l???<??l??E?
?*E?EM?	<??
????R???,??:?:?p? ???K??K:?,*??#?EY-?-??????S???????:&?(W*+?W?:?????B9;=,>1?@CKEPFS@V?YGZIaJjKu;N?Ra??,I??
r??????????????z???o?
D




© 2015 - 2024 Weber Informatics LLC | Privacy Policy