public Task<StatementCollection> ParseAsync(OracleTokenReader tokenReader, CancellationToken cancellationToken) { EnsureReaderNotNull(tokenReader); return ParseAsync(tokenReader.GetTokens(true), cancellationToken); }
private static void EnsureReaderNotNull(OracleTokenReader tokenReader) { if (tokenReader == null) { throw new ArgumentNullException(nameof(tokenReader)); } }
public StatementCollection Parse(OracleTokenReader tokenReader) { EnsureReaderNotNull(tokenReader); return Parse(tokenReader.GetTokens(true)); }