def _fill_empty(self, declaration: ASTDeclaration, docname: str) -> None:
    self._assert_invariants()
    assert (not self.declaration)
    assert (not self.docname)
    assert declaration
    assert docname
    self.declaration = declaration
    self.declaration.symbol = self
    self.docname = docname
    self._assert_invariants()
    self._add_template_and_function_params()
def _fill_empty(self, declaration: ASTDeclaration, docname: str) -> None:
    self._assert_invariants()
    assert (not self.declaration)
    assert (not self.docname)
    assert declaration
    assert docname
    self.declaration = declaration
    self.declaration.symbol = self
    self.docname = docname
    self._assert_invariants()
    self._add_template_and_function_params()