-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(apollo-parser): bump BANG token when creating NON_NULL_TYPE
We are missing BANG token in the AST when a NON_NULL_TYPE gets created. Although the node created is indeed NON_NULL_TYPE, it's also important to keep the original set of tokens. The NON_NULL_TYPE after this commit looks like this: ```txt - [email protected] - [email protected] "\n " - [email protected] - [email protected] - [email protected] "Int" - [email protected] "!" ``` fixes #142
- Loading branch information
Showing
8 changed files
with
4,320 additions
and
4,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
- DOCUMENT@0..34 | ||
- INPUT_OBJECT_TYPE_DEFINITION@0..34 | ||
- DOCUMENT@0..35 | ||
- INPUT_OBJECT_TYPE_DEFINITION@0..35 | ||
- [email protected] "input" | ||
- [email protected] " " | ||
- INPUT_FIELDS_DEFINITION@6..34 | ||
- INPUT_FIELDS_DEFINITION@6..35 | ||
- [email protected] "{" | ||
- [email protected] "\n " | ||
- [email protected] | ||
|
@@ -14,15 +14,16 @@ | |
- [email protected] "\n " | ||
- [email protected] | ||
- [email protected] "String" | ||
- INPUT_VALUE_DEFINITION@26..33 | ||
- INPUT_VALUE_DEFINITION@26..34 | ||
- [email protected] | ||
- [email protected] "b" | ||
- [email protected] ":" | ||
- [email protected] " " | ||
- NON_NULL_TYPE@29..33 | ||
- NON_NULL_TYPE@29..34 | ||
- [email protected] "\n" | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] "Int" | ||
- [email protected] "}" | ||
- [email protected] "!" | ||
- [email protected] "}" | ||
- ERROR@6:7 "expected a Name" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
- DOCUMENT@0..53 | ||
- INPUT_OBJECT_TYPE_DEFINITION@0..53 | ||
- DOCUMENT@0..54 | ||
- INPUT_OBJECT_TYPE_DEFINITION@0..54 | ||
- [email protected] "input" | ||
- [email protected] " " | ||
- [email protected] | ||
- [email protected] "ExampleInputObject" | ||
- [email protected] " " | ||
- INPUT_FIELDS_DEFINITION@25..53 | ||
- INPUT_FIELDS_DEFINITION@25..54 | ||
- [email protected] "{" | ||
- [email protected] "\n " | ||
- [email protected] | ||
|
@@ -17,14 +17,15 @@ | |
- [email protected] "\n " | ||
- [email protected] | ||
- [email protected] "String" | ||
- INPUT_VALUE_DEFINITION@45..52 | ||
- INPUT_VALUE_DEFINITION@45..53 | ||
- [email protected] | ||
- [email protected] "b" | ||
- [email protected] ":" | ||
- [email protected] " " | ||
- NON_NULL_TYPE@48..52 | ||
- NON_NULL_TYPE@48..53 | ||
- [email protected] "\n" | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] "Int" | ||
- [email protected] "}" | ||
- [email protected] "!" | ||
- [email protected] "}" |
Oops, something went wrong.