Fix span expansion when operation name is null
This commit is contained in:
parent
da150d8a6a
commit
e4d5693ace
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ class Parser {
|
||||||
..directives.addAll(dirs);
|
..directives.addAll(dirs);
|
||||||
else
|
else
|
||||||
throw new SyntaxError(
|
throw new SyntaxError(
|
||||||
'Expected selection set in fragment definition.', NAME.span);
|
'Expected selection set in fragment definition.',
|
||||||
|
NAME?.span ?? TYPE.span);
|
||||||
} else
|
} else
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue