parseFragmentSpread method
Implementation
FragmentSpreadContext? parseFragmentSpread() {
if (next(TokenType.ELLIPSIS) && current != null) {
var ELLIPSIS = current!;
if (next(TokenType.NAME, exclude: ['on'])) {
var NAME = current!;
return FragmentSpreadContext(ELLIPSIS, NAME)
..directives.addAll(parseDirectives());
} else {
_index--;
return null;
}
} else {
return null;
}
}