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

Function is_static_member_definition_hack

scripts/extract_identifiers.py:74–86  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

72
73
74def is_static_member_definition_hack(node):
75 last_colons = False
76 for t in node.get_tokens():
77 t = t.spelling
78 if t == "::":
79 last_colons = True
80 elif last_colons:
81 if t.startswith("ms_"):
82 return True
83 last_colons = False
84 if t == "=":
85 return False
86 return False
87
88
89def is_const(typ):

Callers 1

process_source_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected