public static IEnumerable <ContextTypeAnalyzer> FromPhaseGroup(PhaseGroupSyntax phaseGroup)
 {
     foreach (var method in phaseGroup.Methods)
     {
         yield return(new ContextTypeAnalyzer(PhaseTraits.FromPhaseMethod(method),
                                              ContextPropertyAnalyzer.FromMethod(method).ToArray(),
                                              ContextDelegationPropertyAnalyzer.FromMethod(method, phaseGroup)));
     }
 }
 public static IEnumerable <PhaseHandlerMethodAnalyzer> FromPhaseGroup(PhaseGroupSyntax phaseGroup)
 {
     return(phaseGroup.Methods
            .Select(method => new PhaseHandlerMethodAnalyzer(PhaseTraits.FromPhaseMethod(method))));
 }