wasp/waspc/test/Analyzer/ParserTest/parseStatementsTests/declsDictsAndLiterals.golden
Martin Šošić 75ce7db663
Fix incorrect parsing of escaped strings in Wasp (#699)
* Fixed incorrect handling of escaped strings in parser.

* Refactored Parser golden tests a bit.

* Moved PrettyPrinter for Parser AST to Parser.

* fix
2022-08-23 14:01:00 +02:00

35 lines
752 B
Plaintext

(AST
(Decl@1:1-11:1 type=test name=Decl
(Dict@1:11-11:1
(DictEntry key=string
(String@2:11-25 value="Hello Wasp =}")
)
(DictEntry key=escapedString
(String@3:18-29 value="Look, a \"")
)
(DictEntry key=integer
(Integer@4:12-13 value=42)
)
(DictEntry key=real
(Double@5:9-12 value=3.14)
)
(DictEntry key=yes
(Bool@6:8-11 value=True)
)
(DictEntry key=no
(Bool@7:7-11 value=False)
)
(DictEntry key=ident
(Var@8:10-13 variable=Wasp)
)
(DictEntry key=innerDict
(Dict@10:14-36
(DictEntry key=innerDictReal
(Double@10:31-34 value=2.17)
)
)
)
)
)
)