(directives ...*ast.Directive)
| 372 | } |
| 373 | |
| 374 | func (iface *Interface) addDirectives(directives ...*ast.Directive) { |
| 375 | iface.relationsL.Lock() |
| 376 | defer iface.relationsL.Unlock() |
| 377 | iface.directives = append(iface.directives, directives...) |
| 378 | } |
| 379 | |
| 380 | // addImplementor records that an object type implements this interface. |
| 381 | func (iface *Interface) addImplementor(typeName string) { |