SIL.FieldWorks.IText.ConcordanceControl.UpdateConcordanceForTag C# (CSharp) Method

UpdateConcordanceForTag() private method

This one matches on the Tags from the Tagging tab.
private UpdateConcordanceForTag ( int ws ) : List
ws int
return List
		private List<IParaFragment> UpdateConcordanceForTag(int ws)
		{
			// Find analyses that have the relevant morpheme.
			var matchedTags = new HashSet<ITextTag>();
			var hvoPossToMatch = GetHvoOfListItemToMatch(ws);
			var tagRepo = m_cache.ServiceLocator.GetInstance<ITextTagRepository>();
			foreach (var tagInstance in tagRepo.AllInstances())
			{
				// LT-10312 reopened: BestAnalysisAlternative is how we build the chooser list,
				// but now we want to search by possibility item, not by string matching.
				if (tagInstance.IsValidRef && tagInstance.TagRA != null
					&& hvoPossToMatch == tagInstance.TagRA.Hvo)
				{
					matchedTags.Add(tagInstance);
				}
			}
			return GetParaFragmentsOfTags(matchedTags);
		}