示例#1
0
 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));
 }
示例#2
0
 public MemberMetricsResult(Declaration member, IEnumerable <CodeMetricsResult> contextResults)
 {
     Member = member;
     Result = new CodeMetricsResult(0, 0, 0, contextResults);
 }