MCPcopy
hub / github.com/hylang/hy / local_macro_name

Function local_macro_name

hy/macros.py:278–283  ·  view source on GitHub ↗
(original)

Source from the content-addressed store, hash-verified

276
277
278def local_macro_name(original):
279 return '_hy_local_macro__' + (mangle(original)
280 # We have to do a bit of extra mangling beyond `mangle` itself to
281 # handle names with periods.
282 .replace('D', 'DN')
283 .replace('.', 'DD'))
284
285
286def load_macros(module):

Callers 2

compile_macro_defFunction · 0.90
compile_requireFunction · 0.90

Calls 2

mangleFunction · 0.90
replaceMethod · 0.45

Tested by

no test coverage detected