TokenType Enumeration

 

Specifies the token types that can be identified and returned by the language service scanner.

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

public enum TokenType

Member nameDescription
Comment

A comment. A comment is bounded by /* and */, or is preceded by --.

Delimiter

A delimiter.

Error

This is typically used for any token that the parser does not recognize, and should be considered an error in the code that is being parsed.

Identifier

An identifier or name. For example, the name of a variable.

Keyword

A language keyword. This is an identifier that is reserved by the language. For example, CREATE, WITH, TABLE, and so on.

Number

A numeric literal.

SqlCmdCommand

A SQL Server command.

SqlOperator

An operator. For example, +, =, LIKE, and so on.

SqlStoredProcedure

A stored procedure.

SqlString

A Transact-SQL string.

SqlSystemFunction

A system function.

SqlSystemTable

A system table.

Text

General text. This is any text that is not identified as a specified token type.

Return to top
Show: