예제 #1
0
        public static IContract AddImplements(this IHasInterfaces intf, string name)
        {
            var cntr = Noast.Create <IContract>(name);

            intf.Interfaces.Add(cntr);
            return(cntr);
        }
예제 #2
0
 public static IEnumerable <SyntaxNode> GetIntfNodes(this SyntaxGenerator gen, IHasInterfaces holder)
 => holder.Interfaces.OfType <IHasSyntaxNodes>().SelectMany(n => n.GetNodes(gen));