Antlr3.Tool.Grammar.SetOptions C# (CSharp) Méthode

SetOptions() public méthode

public SetOptions ( object>.IDictionary options, Antlr.Runtime.IToken optionsStartToken ) : void
options object>.IDictionary
optionsStartToken Antlr.Runtime.IToken
Résultat void
        public virtual void SetOptions( IDictionary<string, object> options, IToken optionsStartToken )
        {
            if ( options == null )
            {
                this.options = null;
                return;
            }
            foreach ( var option in options.ToArray() )
            {
                string optionName = option.Key;
                object optionValue = option.Value;
                string stored = SetOption( optionName, optionValue, optionsStartToken );
                if ( stored == null )
                    options.Remove( optionName );
            }
        }
Grammar