private void ValidateFragmentSpreadIsPossible( ISyntaxNode node, IDocumentValidatorContext context, INamedType parentType, INamedType typeCondition) { if (!IsCompatibleType(context, parentType, typeCondition)) { context.Errors.Add(context.FragmentNotPossible( node, typeCondition, parentType)); } }