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

Method Add

datasrc/seven/datatypes.py:104–107  ·  view source on GitHub ↗
(self, instance)

Source from the content-addressed store, hash-verified

102 self.type = typ
103 self.items = []
104 def Add(self, instance):
105 if instance.TypeName() != self.type.TypeName():
106 raise ValueError("bah")
107 self.items += [instance]
108 def EmitDeclaration(self, name):
109 return [f"int m_Num{FixCasing(name)};",
110 f"{self.TypeName()} *{FormatName('[]', name)};"]

Callers 3

__init__Method · 0.45
__init__Method · 0.45
content.pyFile · 0.45

Calls 1

TypeNameMethod · 0.45

Tested by

no test coverage detected