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