refract icon indicating copy to clipboard operation
refract copied to clipboard

Adding the ability to save comments in AST

Open akominch opened this issue 2 years ago • 2 comments

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.

akominch avatar Jul 23 '22 20:07 akominch

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.

akominch avatar Jul 25 '22 16:07 akominch

I'm unable to repro the issue around crashing enums - could you post an example?

cwqt avatar Sep 13 '22 11:09 cwqt