SIL.FieldWorks.IText.LinguaLinksImport.AddWordToSegment C# (CSharp) Method

AddWordToSegment() private static method

private static AddWordToSegment ( ISegment newSegment, Word word, ITsStrFactory strFactory ) : void
newSegment ISegment
word Word
strFactory ITsStrFactory
return void
		private static void AddWordToSegment(ISegment newSegment, Word word, ITsStrFactory strFactory)
		{
			//use the items under the word to determine what kind of thing to add to the segment
			var cache = newSegment.Cache;
			IAnalysis analysis = CreateWordAnalysisStack(cache, word, strFactory);

			// Add to segment
			if (analysis != null)
			{
				newSegment.AnalysesRS.Add(analysis);
			}
		}