System.Linq.Dynamic.Scanner.Scan C# (CSharp) Méthode

Scan() public méthode

executes a lookahead of the next token and will advance the scan on the input string
public Scan ( ) : Token
Résultat Token
		public Token Scan(params TokenType[] expectedtokens)
		{
			Token tok = LookAhead(expectedtokens); // temporarely retrieve the lookahead
			_lookAheadToken = null; // reset lookahead token, so scanning will continue
			StartPos = tok.EndPos;
			EndPos = tok.EndPos; // set the tokenizer to the new scan position
			CurrentLine = tok.Line + (tok.Text.Length - tok.Text.Replace("\n", "").Length);
			CurrentFile = tok.File;
			return tok;
		}