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

Method markAsCurrent

addons/misra_9.py:173–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 self.isFlexible = True
172
173 def markAsCurrent(self):
174 if self.parent:
175 if self.name == '<-':
176 self.parent.childIndex = self.parent.children.index(self.children[0])
177 else:
178 self.parent.childIndex = self.parent.children.index(self)
179
180 self.parent.markAsCurrent()
181
182 def isAllChildrenSet(self):
183 myself = len(self.children) == 0 and (self.isDesignated or self.isPositional)

Callers 4

parseInitializerMethod · 0.80
unwindAndContinueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected