Skip to content

Commit

Permalink
Elm: Quote reserved names when generating resources with enums in the…
Browse files Browse the repository at this point in the history
… path
  • Loading branch information
mbryzek committed Jun 4, 2024
1 parent 0cce276 commit e216906
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ case class ElmResource(args: GenArgs) {
private[this] def handlePossibleToString(params: Seq[ValidatedParameter], variable: String, code: String): String = {
import ElmType._

def wrap(fun: String): String = Util.wrapInParens(fun, code)
def wrap(fun: String): String = Util.wrapInParens(fun, Names.maybeQuote(code))

params.find(_.name == variable) match {
case None => code
Expand Down

0 comments on commit e216906

Please sign in to comment.