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

Method Add

datasrc/datatypes.py:124–127  ·  view source on GitHub ↗
(self, instance)

Source from the content-addressed store, hash-verified

122 self.items = []
123
124 def Add(self, instance):
125 if instance.TypeName() != self.type.TypeName():
126 raise ValueError("bah")
127 self.items += [instance]
128
129 def EmitDeclaration(self, name):
130 return [f"int m_Num{FixCasing(name)};", 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