public virtual void SetSynPredGateIfNotAlready( StringTemplate gateST )
{
string scope = GetDefaultActionScope( type );
IDictionary<string, object> actionsForGrammarScope;
Actions.TryGetValue(scope, out actionsForGrammarScope);
// if no synpredgate action set by user then set
if ( actionsForGrammarScope == null || !actionsForGrammarScope.ContainsKey( Grammar.SynpredGateActionName ) )
{
if ( actionsForGrammarScope == null )
{
actionsForGrammarScope = new Dictionary<string, object>();
Actions[scope] = actionsForGrammarScope;
}
actionsForGrammarScope[Grammar.SynpredGateActionName] = gateST;
}
}