예제 #1
0
 public virtual IEnumerable <Diagnostic> GetDiagnostics()
 {
     return(Diagnostics.Union(ChildNodes.SelectMany(x => x.GetDiagnostics())));
 }
예제 #2
0
 public IEnumerable <Entity> GetEntities()
 {
     return(Entities.Concat(ChildNodes.SelectMany(n => n.GetEntities())));
 }
예제 #3
0
 public virtual IEnumerable <DirectiveTriviaSyntax> GetDirectives()
 {
     return(ChildNodes.SelectMany(x => x.GetDirectives()));
 }