NodeUtil

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total3,742 of 7,44049%1,118 of 2,05045%7981,4288501,776112286
removeChild(Node, Node)1287236%281839%1724284901
isNamespaceDecl(Node)1130%400%2121303011
functionCallHasSideEffects(Node, AbstractCompiler)966239%401932%2531254001
newQName(AbstractCompiler, String)920%120%77212111
getNodeByLineCol(Node, int, int)920%320%1717262611
replaceDeclarationChild(Node, Node)860%100%66212111
isDefinedValue(Node)780%230%1515141411
isPropertyTest(AbstractCompiler, Node)720%220%1515141411
checkForStateChangeHelper(Node, boolean, AbstractCompiler)6714668%264965%1744165701
getBestLValueName(Node)670%160%99161611
isLiteralValue(Node, boolean)667252%262144%1727173201
getBestLValue(Node)580%220%1212181811
isValidDefineValue(Node, Set)560%180%1212111111
isAliasedConstDefinition(Node)530%240%1313121211
isExecutedExactlyOnce(Node)510%210%1414161611
isControlStructureCodeBlock(Node, Node)500%160%11118811
getStringValue(Node)496055%111963%721112901
isBundledGoogModuleScopeRoot(Node)481220%19520%1013121401
allResultsMatch(Node, Predicate)480%130%998811
getDeclaredTypeExpression(Node)460%140%88121211
evaluatesToLocalValue(Node, Predicate)4410470%173567%143352501
newQNameDeclaration(AbstractCompiler, String, Node, JSDocInfo)440%60%44101011
isEnumDecl(Node)420%200%11117711
removeNestedChangeScopeNodes(List)420%80%55101011
getLhsNodesHelper(Node, List)412941%7541%610122001
getFirstPropMatchingKey(Node, String)380%120%777711
isValidQualifiedName(FeatureSet, String)380%80%558811
getApproxRequiredArity(Node)370%80%559911
isConstantDeclaration(CodingConvention, JSDocInfo, Node)370%130%889911
newCallNode(Node, Node[])370%40%336611
getFirstGetterMatchingKey(Node, String)350%100%666611
getFirstSetterMatchingKey(Node, String)350%100%666611
toUInt32(double)350%60%447711
useSourceInfoForNewQName(Node, Node)330%60%448811
getObjectDefinedPropertiesKeys(Node)320%40%339911
isTypedefDecl(Node)310%140%886611
referencesArgumentsHelper(Node)310%100%668811
getPrototypeClassName(Node)310%80%558811
isStringLiteralValue(Node)300%80%558811
deleteFunctionCall(Node, AbstractCompiler)300%20%22111111
isNestedObjectPattern(Node)300%100%667711
getNearestFunctionName(Node)290%70%55101011
getObjectLitKeyNode(Node)290%50%444411
isLhsByDestructuringHelper(Node)282950%12840%91161501
removeName(Node)280%60%445511
getFirstComputedPropMatchingKey(Node, Node)280%60%446611
functionHasInlineJsdocs(Node)280%80%55101011
getNumberValue(Node)278475%102369%82293001
isTypedAsString(Node, AbstractCompiler)270%80%55101011
isFunctionBind(Node)270%100%666611
isPrototypeAssignment(Node)260%80%555511
getParentChangeScopeNodes(List)260%20%225511
isKnownGlobalObjectReference(Node)250%70%555511
mayBeString(Node, boolean)24620%1317%787901
isUnannotatedCallback(Node)240%100%663311
isPropertyAbsenceTest(Node)240%40%336611
isBleedingFunctionName(Node)230%80%554411
precedence(Token)223963%61773%62362401
getBestLValueOwner(Node)220%80%557711
countAstSizeUpToLimit(Node, int)220%n/a113311
getInvocationArgsAsIterable(Node)220%40%335511
isEmptyBlock(Node)210%60%446611
isImmutableValue(Node)203362%8952%51151101
getObjectLitKeyName(Node)200%20%224411
isDestructuringDeclaration(Node)190%60%445511
isNestedArrayPattern(Node)190%40%335511
isInvocationTarget(Node)190%80%553311
getInvocationArgsCount(Node)190%20%224411
referencesSuper(Node)180%40%336611
getLengthOfQname(Node)180%40%336611
newName(AbstractCompiler, String)180%20%225511
getPrototypePropertyName(Node)180%n/a114411
getConditionExpression(Node)171750%3457%362601
newQName(AbstractCompiler, String, Node, String)170%20%225511
isPrototypeMethod(Node)170%40%336611
getOpFromAssignmentOp(Node)162661%31076%31331401
newVarNode(Node, Node)162257%3562%352701
isBlockScopedFunctionDeclaration(Node)162055%5444%5651001
allArgsUnescapedLocal(Node)160%40%334411
isLhsOfAssign(Node)160%60%442211
newPropertyAccess(AbstractCompiler, Node, String)160%20%224411
isCallOrNewArgument(Node)160%60%442211
getPureBooleanValue(Node)156481%72175%51931901
getSourceName(Node)150%40%335511
getSourceFile(Node)150%40%335511
getAssignOpFromOp(Node)142866%21184%21321401
mayBeObject(NodeUtil.ValueType)140%30%334411
isObjLitProperty(Node)13631%9110%563501
getNthSibling(Node, int)130%40%335511
isMethodDeclaration(Node)121453%5228%453701
getInverseOperator(Token)121352%1480%151601
opToStrNoFail(Token)12736%1150%121401
isInSyntheticScript(Node)120%40%331111
isNamedFunctionExpression(Node)120%40%331111
doesFunctionReferenceOwnArgumentsObject(Node)120%20%224411
isGoogModuleDeclareLegacyNamespaceCall(Node)120%20%224411
isLegacyGoogModuleFile(Node)120%40%332211
isDeclarationLValue(Node)111862%3350%353901
isBlockScopedDeclaration(Node)111659%5337%462601
isNamedClass(Node)110%40%331111
isEmptyFunctionExpression(Node)110%40%331111
isGoogBind(Node)110%40%331111
isGoogPartial(Node)110%40%331111
newDeclaration(Node, Node, Token)110%20%223311
createConstantJsDoc()110%n/a113311
isLValue(Node)104481%41376%31121201
findLhsNodesInNode(Node)102571%8642%5821101
isConstructor(Node)102066%9535%781701
isNonlocalModuleExportName(Node)101661%8433%670501
isCallOrNew(Node)100%40%331111
newName(AbstractCompiler, String, Node, String)100%n/a113311
isTopLevel(Node)100%40%331111
numberNode(double, Node)92674%2675%2521001
isClassDeclaration(Node)9535%5116%340101
isClassExpression(Node)9535%5116%340101
isBinaryOperatorType(Token)90%20%223311
isUpdateOperatorType(Token)90%20%223311
deleteChildren(Node, AbstractCompiler)90%20%223311
getArgumentForFunction(Node, int)90%n/a113311
getKnownValueType(Node)810692%33191%32433901
constructorCallHasSideEffects(Node)82676%5550%462701
isImpureTrue(Node)80%20%221111
isBooleanResult(Node)80%20%221111
isObjectResult(Node)80%20%221111
getArgumentForCallOrNew(Node, int)80%n/a112211
isEs6Constructor(Node)71263%5337%450401
isInFunction(Node)70%20%221111
mayBeUndefined(Node)70%20%221111
opToStr(Token)68393%33992%34234301
getBestJSDocInfoNode(Node)68293%63284%62022301
isObjectDefinePropertiesDefinition(Node)62781%3770%260801
getAssignedValue(Node)62681%5550%461701
callHasLocalResult(Node)61470%4233%340201
isGoogModuleFile(Node)61266%4450%350201
isImportedName(Node)61164%4233%340201
getClassMembers(Node)60%n/a112211
newName(AbstractCompiler, String, Node)60%n/a111111
emptyFunction()60%n/a111111
isExportFrom(Node)60%n/a112211
isExpressionResultUsed(Node)56893%32388%31621501
isValidPropertyName(FeatureSet, String)51168%3350%240301
isFromTypeSummary(Node)51066%3125%230301
mayBeString(NodeUtil.ValueType)5964%1266%131401
getLoopCodeBlock(Node)5964%2133%232401
isValidQualifiedName(CompilerOptions.LanguageMode, String)50%n/a111111
isNameReferenced(Node, String)50%n/a111111
visitPreOrder(Node, NodeUtil.Visitor)50%n/a112211
getColumnNoBase1(Node)50%n/a111111
getNameNode(Node)44291%4969%380801
isGetterOrSetter(Node)42586%3770%361601
copyNameAnnotations(Node, Node)4555%1150%121301
isBinaryOperator(Node)40%n/a111111
isUpdateOperator(Node)40%n/a111111
isImmutableResult(Node)40%n/a111111
mayBeString(Node)40%n/a111111
mayBeObject(Node)40%n/a111111
getEnclosingClassMemberFunction(Node)40%n/a111111
getEnclosingClass(Node)40%n/a111111
getEnclosingScript(Node)40%n/a111111
getEnclosingBlock(Node)40%n/a111111
getEnclosingBlockScopeRoot(Node)40%n/a111111
getEnclosingScopeRoot(Node)40%n/a111111
getRValueOfLValue(Node)32288%1583%161801
getStringNumberValue(String)29797%32790%31612301
getAddingRoot(Node)24896%51066%5901201
isConstantByConvention(CodingConvention, Node)23193%1787%151801
canMergeBlock(Node)22392%1685%151701
isToStringMethodCall(Node)22191%1583%140501
isPrototypeProperty(Node)21990%1583%140401
isLhsByDestructuring(Node)21588%2675%251301
isObjectDefinePropertyDefinition(Node)21487%1583%140301
isTryCatchNodeContainer(Node)21285%1375%130301
isAnyFor(Node)21184%3350%340101
isCallTo(Node, String)21083%1375%130101
isDeclarationParent(Node)2981%1150%121301
isPrototypePropertyDeclaration(Node)2981%1375%130101
isEnhancedFor(Node)2880%2250%230101
isGetOrSetKey(Node)2880%1150%121301
getBestJSDocInfo(Node)2880%1150%120201
isModuleScopeRoot(Node)2880%2250%230101
canBeSideEffected(Node, Set, Scope)5098%11493%11001001
static {...}104100%n/a0102101
getImpureBooleanValue(Node)64100%10100%0901901
toInt32(double)45100%2880%2601001
tryMergeBlock(Node, boolean)42100%2880%2601301
redeclareVarsInsideBranch(Node)38100%4100%0301301
collectExternVariableNames(AbstractCompiler, Node)38100%1375%130801
arrayToString(Node)36100%6100%0401001
isNaN(Node)36100%11392%180601
trimJsWhiteSpace(String)33100%8100%050901
has(Node, Predicate, Predicate)30100%8100%050801
isConstantVar(Node, Scope)30100%21083%270601
getCount(Node, Predicate, Predicate)29100%6100%040701
getAllVarsDeclaredInFunction(Map, List, AbstractCompiler, ScopeCreator, Scope)28100%n/a010701
isObjectCallMethod(Node, String)26100%1787%150801
nodeTypeMayHaveSideEffects(Node, AbstractCompiler)25100%7100%060801
createsBlockScope(Node)25100%1888%160501
isHoistedFunctionDeclaration(Node)25100%2880%260701
isWithinLoop(Node)23100%6100%040701
getRootOfQualifiedName(Node)22100%1583%140401
isLatin(String)21100%4100%030601
visitPreOrder(Node, NodeUtil.Visitor, Predicate)21100%4100%030501
visitPostOrder(Node, NodeUtil.Visitor, Predicate)21100%1375%130501
createsScope(Node)19100%1990%160201
getInputId(Node)19100%1787%150301
markNewScopesChanged(Node, AbstractCompiler)19100%4100%030501
markFunctionsDeleted(Node, AbstractCompiler)19100%4100%030501
countAstSize(Node)18100%2100%020401
isStatementBlock(Node)16100%1787%150101
isUndefined(Node)15100%3100%030401
isNameDeclaration(Node)15100%3562%350101
isTryFinallyNode(Node, Node)15100%6100%040201
getEnclosingNode(Node, Predicate)14100%4100%030401
isFunctionDeclaration(Node)14100%6100%040101
isFunctionBlock(Node)14100%1583%140101
isNameDeclOrSimpleAssignLhs(Node, Node)14100%6100%040201
hasCatchHandler(Node)14100%1375%130201
referencesThis(Node)13100%2100%020201
deleteNode(Node, AbstractCompiler)13100%n/a010501
isDeclaration(Node)13100%1583%140101
isFunctionExpression(Node)13100%1583%140301
isValidSimpleName(String)13100%6100%040301
getVarsDeclaredInBranch(Node)13100%n/a010301
newVarNode(String, Node)13100%2100%020401
maybeAddFinally(Node)12100%1150%120401
newUndefinedNode(Node)12100%2100%020401
isGoogModuleCall(Node)12100%2100%020401
getArrayElementStringValue(Node)11100%1375%130201
isExprAssign(Node)11100%4100%030201
isExprCall(Node)11100%4100%030201
isStatement(Node)11100%1375%130101
isReferenceName(Node)11100%4100%030101
isNamedFunction(Node)11100%1375%130101
getEnclosingChangeScopeRoot(Node)11100%4100%030301
getName(Node)10100%2100%020201
isSymmetricOperation(Node)10100%2100%020301
isRelationalOperation(Node)10100%2100%020301
isNullOrUndefined(Node)10100%4100%030101
isAssignmentOp(Node)10100%2100%020301
isCompoundAssignmentOp(Node)10100%4100%030101
hasCorrespondingAssignmentOp(Node)10100%2100%020301
isGet(Node)10100%4100%030101
isVanillaFunction(Node)10100%4100%030101
isLoopStructure(Node)10100%2100%020301
isControlStructure(Node)10100%2100%020301
isSwitchCase(Node)10100%1375%130101
isObjectLitKey(Node)10100%2100%020301
isChangeScopeRoot(Node)10100%4100%030101
isUnaryOperatorType(Token)9100%2100%020301
isSimpleOperatorType(Token)9100%2100%020301
isAssociative(Token)9100%2100%020301
isCommutative(Token)9100%2100%020301
isNumericResult(Node)8100%2100%020101
isStringResult(Node)8100%2100%020101
containsType(Node, Token, Predicate)8100%n/a010101
getNodeTypeReferenceCount(Node, Token, Predicate)8100%n/a010101
isNameReferenced(Node, String, Predicate)8100%n/a010101
getNameReferenceCount(Node, String)8100%n/a010201
newHasLocalResult(Node)7100%n/a010201
canBeSideEffected(Node)7100%n/a010201
and(NodeUtil.ValueType, NodeUtil.ValueType)7100%2100%020101
getEnclosingType(Node, Token)7100%n/a010101
getFunctionBody(Node)7100%n/a010201
hasFinally(Node)7100%n/a010201
getCatchBlock(Node)6100%n/a010201
getFunctionParameters(Node)6100%n/a010201
booleanNode(boolean)6100%2100%020101
newExpr(Node)5100%n/a010101
mayEffectMutableState(Node, AbstractCompiler)5100%n/a010101
mayHaveSideEffects(Node, AbstractCompiler)5100%n/a010101
isValidCfgRoot(Node)5100%n/a010101
isStatementParent(Node)5100%n/a010101
containsType(Node, Token)5100%n/a010101
isUnaryOperator(Node)4100%n/a010101
isSimpleOperator(Node)4100%n/a010101
mayEffectMutableState(Node)4100%n/a010101
mayHaveSideEffects(Node)4100%n/a010101
functionCallHasSideEffects(Node)4100%n/a010101
nodeTypeMayHaveSideEffects(Node)4100%n/a010101
containsFunction(Node)4100%n/a010101
getEnclosingFunction(Node)4100%n/a010101
getEnclosingStatement(Node)4100%n/a010101
isFunctionObjectCall(Node)4100%n/a010101
isFunctionObjectApply(Node)4100%n/a010101
isConstantName(Node)4100%n/a010101
evaluatesToLocalValue(Node)4100%n/a010101