import { FragmentDefinitionNode } from "graphql/language" ; import { Algebra } from "sparqlalgebrajs" ; import { IConvertContext } from "../IConvertContext" ; import { IConvertSettings } from "../IConvertSettings" ; import { Util } from "../Util" ; import { NodeHandlerDefinitionAdapter } from "./NodeHandlerDefinitionAdapter" ; /**
 * Errors if fragment definitions are found,
 * as these should have been processed away earlier.
 */ export class NodeHandlerDefinitionFragment extends NodeHandlerDefinitionAdapter < FragmentDefinitionNode > { constructor ( util , settings ) { super ( 'FragmentDefinition' , util , settings ) ; } public handle ( operationDefinition , convertContext ) { throw new Error ( 'Illegal state: fragment definitions must be indexed and removed before processing' ) ; } }