MCPcopy Index your code
hub / github.com/python/cpython / isSimpleType

Method isSimpleType

Parser/asdl_c.py:634–635  ·  view source on GitHub ↗
(self, field)

Source from the content-addressed store, hash-verified

632 return get_c_type(field.type) in ("int", "bool")
633
634 def isSimpleType(self, field):
635 return field.type in self.metadata.simple_sums or self.isNumeric(field)
636
637 def visitField(self, field, name, sum=None, prod=None, depth=0):
638 ctype = get_c_type(field.type)

Callers 2

visitFieldDeclarationMethod · 0.95
visitFieldMethod · 0.95

Calls 1

isNumericMethod · 0.95

Tested by

no test coverage detected