MCPcopy Index your code
hub / github.com/nodejs/node / createItem

Function createItem

deps/inspector_protocol/pdl.py:39–50  ·  view source on GitHub ↗
(d, experimental, deprecated, name=None)

Source from the content-addressed store, hash-verified

37
38
39def createItem(d, experimental, deprecated, name=None):
40 result = collections.OrderedDict(d)
41 if name:
42 result['name'] = name
43 global description
44 if description:
45 result['description'] = description.strip()
46 if experimental:
47 result['experimental'] = True
48 if deprecated:
49 result['deprecated'] = True
50 return result
51
52
53def parse(data, file_name, map_binary_to_string, source_set):

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…