What's the correct syntax for using
CodeUnit.InitializationStatements.Add(Value : TCodeStatement)
Through code completion I cannot deduce the right way of using TCodeStatement .
One small example:
CodeUnit.InitializationStatements.Add(
TCodeSnippetStatement.Create(
Format('RegisterEntity(%s);', [TypeName])
));