MCPcopy
hub / github.com/sphinx-doc/sphinx / parse

Method parse

tests/roots/test-root/parsermod.py:8–11  ·  view source on GitHub ↗
(self, input, document)

Source from the content-addressed store, hash-verified

6 supported = ('foo',)
7
8 def parse(self, input, document):
9 section = nodes.section(ids=['id1'])
10 section += nodes.title('Generated section', 'Generated section')
11 document += section
12
13 def get_transforms(self):
14 return []

Callers 15

test_IndexBuilderFunction · 0.95
test_complex_assignmentFunction · 0.95
test_obj_assignmentFunction · 0.95
test_functionFunction · 0.95
test_nested_functionFunction · 0.95
test_classFunction · 0.95
test_class_uses_non_selfFunction · 0.95

Calls 1

titleMethod · 0.80

Tested by 15

test_IndexBuilderFunction · 0.76
test_complex_assignmentFunction · 0.76
test_obj_assignmentFunction · 0.76
test_functionFunction · 0.76
test_nested_functionFunction · 0.76
test_classFunction · 0.76
test_class_uses_non_selfFunction · 0.76