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

Method EmitDeclaration

datasrc/datatypes.py:129–130  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

127 self.items += [instance]
128
129 def EmitDeclaration(self, name):
130 return [f"int m_Num{FixCasing(name)};", f"{self.TypeName()} *{FormatName('[]', name)};"]
131
132 def EmitPreDefinition(self, target_name):
133 BaseType.EmitPreDefinition(self, target_name)

Callers 1

EmitTypeDeclarationMethod · 0.45

Calls 3

FixCasingFunction · 0.70
FormatNameFunction · 0.70
TypeNameMethod · 0.45

Tested by

no test coverage detected