GraphView.GraphViewParser.ReadToken C# (CSharp) Method

ReadToken() private static method

private static ReadToken ( IList tokens, TSqlTokenType type, string &result, int &nextToken, int &farestError ) : bool
tokens IList
type TSqlTokenType
result string
nextToken int
farestError int
return bool
        private static bool ReadToken(
            IList<TSqlParserToken> tokens,
            TSqlTokenType type,
            ref string result,
            ref int nextToken,
            ref int farestError)
        {
            if (tokens.Count == nextToken)
            {
                farestError = nextToken;
                return false;
            }
            if (tokens[nextToken].TokenType == type)
            {
                result = tokens[nextToken].Text;
                nextToken++;
                while (nextToken < tokens.Count && tokens[nextToken].TokenType > (TSqlTokenType)236)
                    nextToken++;
                return true;
            }
            farestError = Math.Max(farestError, nextToken);
            return false;
        }

Same methods

GraphViewParser::ReadToken ( IList tokens, string value, int &nextToken, int &farestError ) : bool
GraphViewParser::ReadToken ( List tokens, AnnotationTokenType type, int &nextToken, string &tokenValue, int &fareastError ) : bool
GraphViewParser::ReadToken ( List tokens, string text, int &nextToken, string &tokenValue, int &fareastError ) : bool