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

Function FormatName

datasrc/datatypes.py:35–40  ·  view source on GitHub ↗
(typ, name)

Source from the content-addressed store, hash-verified

33
34
35def FormatName(typ, name):
36 if "*" in typ:
37 return "m_p" + FixCasing(name)
38 if "[]" in typ:
39 return "m_a" + FixCasing(name)
40 return "m_" + FixCasing(name)
41
42
43class BaseType:

Callers 3

EmitDeclarationMethod · 0.70
EmitDeclarationMethod · 0.70
FormatNameMethod · 0.50

Calls 1

FixCasingFunction · 0.70

Tested by

no test coverage detected