Share via


Scanner.GetNext Method

Returns the next token, internal Lexer state, start position, and end position.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Parser
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Function GetNext ( _
    ByRef state As Integer, _
    <OutAttribute> ByRef start As Integer, _
    <OutAttribute> ByRef end As Integer, _
    <OutAttribute> ByRef isPairMatch As Boolean, _
    <OutAttribute> ByRef isExecAutoParamHelp As Boolean _
) As Integer
'Usage
Dim instance As Scanner
Dim state As Integer
Dim start As Integer
Dim end As Integer
Dim isPairMatch As Boolean
Dim isExecAutoParamHelp As Boolean
Dim returnValue As Integer

returnValue = instance.GetNext(state, _
    start, end, isPairMatch, isExecAutoParamHelp)
public int GetNext(
    ref int state,
    out int start,
    out int end,
    out bool isPairMatch,
    out bool isExecAutoParamHelp
)
public:
int GetNext(
    int% state, 
    [OutAttribute] int% start, 
    [OutAttribute] int% end, 
    [OutAttribute] bool% isPairMatch, 
    [OutAttribute] bool% isExecAutoParamHelp
)
member GetNext : 
        state:int byref * 
        start:int byref * 
        end:int byref * 
        isPairMatch:bool byref * 
        isExecAutoParamHelp:bool byref -> int 
public function GetNext(
    state : int, 
    start : int, 
    end : int, 
    isPairMatch : boolean, 
    isExecAutoParamHelp : boolean
) : int

Parameters

  • start
    Type: System.Int32%
    The start position of the token.
  • isPairMatch
    Type: System.Boolean%
    true if this is a matched token pair; otherwise, false.
  • isExecAutoParamHelp
    Type: System.Boolean%
    true if parameter help is requested by the token; otherwise, false.

Return Value

Type: System.Int32
The next token.