public void StoreIds([NotNull] string zip, [NotNull] IKaVESet <string> ids) { lock (_lock) { Asserts.NotNull(zip); Asserts.NotNull(ids); Asserts.That(_allZips.Contains(zip)); Asserts.Not(_idsByZip.ContainsKey(zip)); _idsByZip[zip] = ids; } }
public void StoreMergedZip([NotNull] string zip) { lock (_lock) { Asserts.NotNull(_zipGroups); Asserts.NotNull(zip); Asserts.That(_allZips.Contains(zip)); Asserts.Not(_uncleansedZips.Contains(zip)); foreach (var zipGroup in _zipGroups) { Asserts.Not(zipGroup.Contains(zip)); } _uncleansedZips.Add(zip); } }
public bool ShouldProcessOrRegister(IMethodName m) { if (_dupeSetting == Duplication.Include) { return(true); } lock (_seenMethods) { if (_seenMethods.Contains(m)) { return(false); } _seenMethods.Add(m); return(true); } }
public bool ShouldProcessOrRegister(ISST td) { if (IsGenerated(td) && _genCodeSetting == GeneratedCode.Exclude) { return(false); } if (td.IsPartialClass) { return(true); } lock (_seenTypes) { if (_seenTypes.Contains(td.EnclosingType)) { return(_dupeSetting == Duplication.Include); } _seenTypes.Add(td.EnclosingType); return(true); } }