protected override ISyntaxVisitorAction Leave( DocumentNode node, IDocumentValidatorContext context) { foreach (string fragmentName in context.Fragments.Keys) { if (context.Names.Add(fragmentName)) { context.Errors.Add(context.FragmentNotUsed(context.Fragments[fragmentName])); } } return(Continue); }