Example #1
0
 internal static IEnumerable <Imports> AsEnumerable(this ImportChain importChain)
 {
     for (var chain = importChain; chain != null; chain = chain.ParentOpt)
     {
         yield return(chain.Imports);
     }
 }
Example #2
0
 internal static Imports Single(this ImportChain importChain)
 {
     return(importChain.AsEnumerable().Single());
 }