public virtual IEnumerable <Diagnostic> GetDiagnostics() { return(Diagnostics.Union(ChildNodes.SelectMany(x => x.GetDiagnostics()))); }
public IEnumerable <Entity> GetEntities() { return(Entities.Concat(ChildNodes.SelectMany(n => n.GetEntities()))); }
public virtual IEnumerable <DirectiveTriviaSyntax> GetDirectives() { return(ChildNodes.SelectMany(x => x.GetDirectives())); }