GraphView.GraphViewParser.ExtractMatchClause C# (CSharp) Method

ExtractMatchClause() private method

private ExtractMatchClause ( ) : void
return void
        private void ExtractMatchClause()
        {
            var farestError = 0;
            var currentToken = 0;
            while (currentToken < _tokens.Count)
            {
                WMatchClause result = null;
                if (ParseMatchClause(_tokens, ref currentToken, ref result, ref farestError))
                {
                    _matchList.Add(result);
                    _matchFlag.Add(false);
                }
                else
                {
                    currentToken++;
                }
            }

            //replace MATCH clause with multiline comment
            foreach (var match in _matchList)
            {
                for (var i = match.FirstTokenIndex; i <= match.LastTokenIndex; ++i)
                {
                    _tokens[i].TokenType = TSqlTokenType.MultilineComment;
                    _tokens[i].Text = "/*__GRAPHVIEW_MATCH_CLAUSE*/";
                }
            }
        }