다음을 통해 공유


TSqlParser.Parse Method

Definition

Overloads

Parse(IList<TSqlParserToken>, IList<ParseError>)

Parses the specified tokens into a TSqlFragment.

Parse(TextReader, IList<ParseError>)

The blocking parse method.

Parse(TextReader, IList<ParseError>, Int32, Int32, Int32)

The blocking parse method.

Parse(IList<TSqlParserToken>, IList<ParseError>)

Parses the specified tokens into a TSqlFragment.

public abstract Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment Parse (System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.TSqlParserToken> tokens, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> errors);
abstract member Parse : System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.TSqlParserToken> * IList -> Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
Public MustOverride Function Parse (tokens As IList(Of TSqlParserToken), ByRef errors As IList(Of ParseError)) As TSqlFragment

Parameters

tokens
IList<TSqlParserToken>

The input tokens.

errors
IList<ParseError>

The IList that the parse errors will be added to.

Returns

Applies to

Parse(TextReader, IList<ParseError>)

The blocking parse method.

public Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment Parse (System.IO.TextReader input, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> errors);
member this.Parse : System.IO.TextReader * IList -> Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
Public Function Parse (input As TextReader, ByRef errors As IList(Of ParseError)) As TSqlFragment

Parameters

input
TextReader

The script that will be parsed.

errors
IList<ParseError>

The parse errors.

Returns

The fragment that is created.

Applies to

Parse(TextReader, IList<ParseError>, Int32, Int32, Int32)

The blocking parse method.

public Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment Parse (System.IO.TextReader input, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> errors, int startOffset, int startLine, int startColumn);
member this.Parse : System.IO.TextReader * IList * int * int * int -> Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
Public Function Parse (input As TextReader, ByRef errors As IList(Of ParseError), startOffset As Integer, startLine As Integer, startColumn As Integer) As TSqlFragment

Parameters

input
TextReader

The script that will be parsed.

errors
IList<ParseError>

The parse errors.

startOffset
Int32

The starting offset of input.

startLine
Int32

The starting line number for the input.

startColumn
Int32

The starting column position for the input.

Returns

The fragment that is created.

Applies to