MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / astTop

Method astTop

addons/cppcheckdata.py:526–530  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

524 yield token
525
526 def astTop(self):
527 top = None
528 for parent in self.astParents():
529 top = parent
530 return top
531
532 def tokAt(self, n):
533 tl = self.forward()

Callers 15

isScopeNoReturnMethod · 0.80
checkFileUsageMethod · 0.80
createAstAtTokenFunction · 0.80
createAstMethod · 0.80
findEnumeratorMethod · 0.80
isConditionKnownFunction · 0.80
getEndOfExprScopeMethod · 0.80
traverseConditionMethod · 0.80
beforeConditionMethod · 0.80
afterConditionMethod · 0.80
valueFlowForLoopSimplifyFunction · 0.80

Calls 1

astParentsMethod · 0.95

Tested by 1

testAstMethod · 0.64