public virtual string GetRecognizerName()
{
string suffix = "";
IList<Grammar> grammarsFromRootToMe = composite.GetDelegators( this );
//[email protected]("grammarsFromRootToMe="+grammarsFromRootToMe);
string qualifiedName = name;
if ( grammarsFromRootToMe != null )
{
StringBuilder buf = new StringBuilder();
foreach ( Grammar g in grammarsFromRootToMe )
{
buf.Append( g.name );
buf.Append( '_' );
}
buf.Append( name );
qualifiedName = buf.ToString();
}
if ( type == GrammarType.Combined ||
( type == GrammarType.Lexer && implicitLexer ) )
{
suffix = Grammar.grammarTypeToFileNameSuffix[(int)type];
}
return qualifiedName + suffix;
}