apollo-parser@0.5.2
·
542 commits
to main
since this release
Features
-
add
SyntaxTree::token_limit- SimonSapin, pull/525
This enables finding out how many tokens were present in a succesful parse,
which can be useful to choose where to set the limit. -
add
Definition::kind() -> &strandDefinition::is_executable_definition()- goto-bus-stop, pull/535
These are new methods on theDefinitionAST node.kind()returns the kind
of definition (eg. "ScalarTypeExtension") andis_executable_definition()
returns true for operation definitions and fragment definitions.
Fixes
- handle escape sequences when reading string contents - goto-bus-stop, pull/541
TheString::from(StringValue)implementation now turns escape sequences like
\nand\u2764into their literal characters.