void DoIndexOfSmallAmount(TextBuffer textBuffer)
{
//convention...
//data must me sorted (ascending) before use with the wordSpanList
for (int i = wordSpanList.Count - 1; i >= 0; --i)
{
WordSpan sp = wordSpanList[i];
#if DEBUG
//string dbugStr = sp.GetString(textBuffer);
#endif
if (sp.SameTextContent(this.prefixSpan, textBuffer))
{
this.PrefixIsWord = true;
break;
}
}
this._resultWordGroup = new WordGroup(
this.prefixSpan,
null,
this.wordSpanList.ToArray(),
this.PrefixIsWord);
}