Browse Source

Fix doc build.

pull/3/head
Jakob Stoklund Olesen 8 years ago
parent
commit
dd326350ff
  1. 12
      docs/cton_domain.py

12
docs/cton_domain.py

@ -305,11 +305,19 @@ class InstDocumenter(sphinx.ext.autodoc.Documenter):
# Add inputs and outputs.
for op in self.object.ins:
if op.is_value():
typ = op.typevar
else:
typ = op.kind
self.add_line(u':in {} {}: {}'.format(
op.typ.name, op.name, op.get_doc()), sourcename)
typ, op.name, op.get_doc()), sourcename)
for op in self.object.outs:
if op.is_value():
typ = op.typevar
else:
typ = op.kind
self.add_line(u':out {} {}: {}'.format(
op.typ.name, op.name, op.get_doc()), sourcename)
typ, op.name, op.get_doc()), sourcename)
# Document type inference for polymorphic instructions.
if self.object.is_polymorphic:

Loading…
Cancel
Save