public static AnalyzerRoot FromPhaseGroup(PhaseGroupSyntax phaseGroup) { return(new AnalyzerRoot(phaseGroup.InterfaceName, phaseGroup.InterfaceName.ToNonInterfaceName(), PhaseHandlerAnalyzer.FromPhaseGroup(phaseGroup), PhaseLogicAnalyzer.FromPhaseGroup(phaseGroup), ContextTypeAnalyzer.FromPhaseGroup(phaseGroup).ToArray())); }
public AnalyzerRoot(TypeName definitionTypeName, string phaseGroupName, PhaseHandlerAnalyzer phaseHandler, PhaseLogicAnalyzer phaseLogic, ContextTypeAnalyzer[] contextTypes) { DefinitionTypeName = definitionTypeName; PhaseGroupName = phaseGroupName; PhaseHandler = phaseHandler; PhaseLogic = phaseLogic; ContextTypes = contextTypes; }