We currently cannot create resources with the ResourcesGenerator without appending a ; to the toCode method as if we remove the appended semicolon it ends up generating "invalid" code as it is missing the last semicolon.
In this specific case we are using a PhpFile class which inherits from AST. So there is a bit of hoops that we might need to work on in order to make be able to add a semi colon to our files when we need them.
We currently cannot create
resourceswith theResourcesGeneratorwithout appending a;to thetoCodemethod as if we remove the appended semicolon it ends up generating "invalid" code as it is missing the last semicolon.In this specific case we are using a
PhpFileclass which inherits fromAST. So there is a bit of hoops that we might need to work on in order to make be able to add a semi colon to our files when we need them.