refract
refract copied to clipboard
Adding the ability to save comments in AST
According to the official Prisma documentation, several types of comments are supported:
- the standard
//
, which are not saved in AST - and those that are saved in AST
///
I've added an implementation of both types of comments with backwards support for comments with string passing. Please take a look at my PR, if anything needs to be fixed, please let me know.
In this PR I found a bug related to Enum, when there is no comment in it, the schema build breaks, I'm working on a fix.
I'm unable to repro the issue around crashing enums - could you post an example?