public ModuleMetricsResult(QualifiedModuleName moduleName, IEnumerable <MemberMetricsResult> memberMetricsResult, IEnumerable <CodeMetricsResult> nonMemberResults) { ModuleName = moduleName; MemberResults = memberMetricsResult.ToDictionary(mmr => mmr.Member, mmr => mmr.Result); Result = new CodeMetricsResult(0, 0, 0, nonMemberResults.Concat(MemberResults.Values)); }
public MemberMetricsResult(Declaration member, IEnumerable <CodeMetricsResult> contextResults) { Member = member; Result = new CodeMetricsResult(0, 0, 0, contextResults); }