public ContextTypeAnalyzer(PhaseTraits traits,
                            ContextPropertyAnalyzer[] contextProperties,
                            ContextDelegationPropertyAnalyzer?contextDelegationProperties)
 {
     _traits                     = traits;
     ContextProperties           = contextProperties;
     ContextDelegationProperties = contextDelegationProperties;
 }
 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))));
 }
 public PhaseHandlerMethodAnalyzer(PhaseTraits traits)
 {
     this._traits = traits;
 }
 public PhaseLogicMethodAnalyzer(PhaseTraits traits)
 {
     _traits = traits;
 }