Antlr4.Runtime.DefaultErrorStrategy.ConstructToken C# (CSharp) Method

ConstructToken() protected method

protected ConstructToken ( ITokenSource tokenSource, int expectedTokenType, string tokenText, IToken current ) : IToken
tokenSource ITokenSource
expectedTokenType int
tokenText string
current IToken
return IToken
        protected internal virtual IToken ConstructToken(ITokenSource tokenSource, int expectedTokenType, string tokenText, IToken current)
        {
            ITokenFactory factory = tokenSource.TokenFactory;
            return factory.Create(Tuple.Create(tokenSource, current.TokenSource.InputStream), expectedTokenType, tokenText, TokenConstants.DefaultChannel, -1, -1, current.Line, current.Column);
        }