Beispiel #1
0
 public static IEnumerable <PhaseMethodSyntax> FromPhaseGroupType(INamedTypeSymbol phaseGroup)
 {
     return(phaseGroup.GetMembers().MatchPattern <ISymbol, IMethodSymbol>()
            .Select(method => new PhaseMethodSyntax(
                        method.Name,
                        ResultTypeSyntax.FromMethod(method),
                        ContextParameterSyntax.FromMethod(method),
                        AdditionalParameterSyntax.FromMethod(method).ToArray())));
 }
Beispiel #2
0
 public PhaseMethodSyntax(string methodName,
                          ResultTypeSyntax resultType,
                          ContextParameterSyntax?contextParameter,
                          AdditionalParameterSyntax[] additionalParameters)
 {
     MethodName           = methodName;
     ResultType           = resultType;
     ContextParameter     = contextParameter;
     AdditionalParameters = additionalParameters;
 }