MCPcopy Create free account
hub / github.com/ddnet/ddnet / is_const

Function is_const

scripts/extract_identifiers.py:89–94  ·  view source on GitHub ↗
(typ)

Source from the content-addressed store, hash-verified

87
88
89def is_const(typ):
90 if typ.is_const_qualified():
91 return True
92 if is_array_type(typ):
93 return is_const(typ.element_type)
94 return False
95
96
97class ParseError(RuntimeError):

Callers 1

process_source_fileFunction · 0.85

Calls 1

is_array_typeFunction · 0.85

Tested by

no test coverage detected