public static IContract AddImplements(this IHasInterfaces intf, string name) { var cntr = Noast.Create <IContract>(name); intf.Interfaces.Add(cntr); return(cntr); }
public static IEnumerable <SyntaxNode> GetIntfNodes(this SyntaxGenerator gen, IHasInterfaces holder) => holder.Interfaces.OfType <IHasSyntaxNodes>().SelectMany(n => n.GetNodes(gen));