Antlr4.Runtime.ListTokenSource.ListTokenSource C# (CSharp) Method

ListTokenSource() public method

Constructs a new ListTokenSource instance from the specified collection of IToken objects and source name.
/// NullPointerException /// if /// /// is /// ///
public ListTokenSource ( IList tokens, string sourceName ) : System
tokens IList /// The collection of /// /// objects to provide as a /// /// . ///
sourceName string /// The name of the /// /// . If this value is /// /// , /// /// will attempt to infer the name from /// the next /// /// (or the previous token if the end of the input has /// been reached). ///
return System
        public ListTokenSource(IList<IToken> tokens, string sourceName)
        {
            if (tokens == null)
            {
                throw new ArgumentNullException("tokens cannot be null");
            }
            this.tokens = tokens;
            this.sourceName = sourceName;
        }

Same methods

ListTokenSource::ListTokenSource ( IList tokens ) : System