Feedback: Documentation update

I'd like to propose a slight tweak to the documentation that would improve understanding for future me. At https://doc.metalama.net/api/metalama_framework_code_syntaxbuilders_statementfactory the Parse(String) method "indicates that the parsed string can be inserted into the run-time code using InsertStatement(IStatement)." I would recommend this be updated to include an example of where one might find the InsertStatement, as in: "using InsertStatement(IStatement) as in meta.InsertStatement(IStatement) as the linked documentation also doesn't mention that this method is available on meta. Only on the "related" link at the bottom of this subsequent page does it link to "Writing T# Templates" and then on "Generating run-time code" do we fine a note of "To add a statement to the generated code, use StatementBuilder to create the statement and then meta.InsertStatement from the template at the place where the statement should be inserted`.

By including this note on the StatementFactory and StatementBuilder pages, it would make it easier to understand how it might be implemented (especially if in the docs generated and bundled with the package on NuGet).
Was this page helpful?