internal void CollectAllWords(TextBuffer textBuffer, List<string> output)
{
if (this.PrefixIsWord)
{
output.Add(GetPrefix(textBuffer));
}
if (subGroups != null)
{
foreach (WordGroup wordGroup in subGroups)
{
if (wordGroup != null)
{
wordGroup.CollectAllWords(textBuffer, output);
}
}
}
if (wordSpans != null)
{
foreach (var span in wordSpans)
{
output.Add(span.GetString(textBuffer));
}
}
}
public int PrefixLen { get { return this.prefixSpan.len; } }