MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / Number

Class Number

aura/analyzers/python/nodes.py:405–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403
404@dataclass
405class Number(ASTNode):
406 value: int
407
408 def __int__(self):
409 return self.value
410
411 def _visit_node(self, context: Context):
412 if type(self.value) == dict:
413 context.visit_child(
414 node = self.value,
415 replace=partial(self.__replace_value, visitor=context.visitor)
416 )
417
418 def __replace_value(self, value, visitor):
419 self.value = value
420 visitor.modified = True
421
422 def __post_init__(self):
423 super().__post_init__()
424 self._taint_class = Taints.SAFE
425
426
427@dataclass

Callers 5

binopMethod · 0.85
rewrite_function_callMethod · 0.85
unary_opMethod · 0.85
visit_NumFunction · 0.85
visit_ConstantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected