Export (0) Print
Expand All

LineScanner Class

Scans Transact-SQL statements searching for individual units of code (tokens).


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

public class LineScanner

The LineScanner type exposes the following members.

Public methodLineScannerInitializes a new instance of the LineScanner class by using a default ParseOptions object.

Public propertyBatchSeparatorGets or sets the string that is used to separate a single script into multiple batches.
Public propertyIsSqlCmdModeEnabledGets or sets a value that indicates whether the scanner is enabled for Transact-SQL.

Public methodStatic memberDefineTokenCreates a token definition and adds it to the array of token definitions.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPopulateDefinitonFills the TokenInfo object with the token definition.
Public methodScanTokenAndProvideInfoAboutItParses the next language token from the current line and returns information about it.
Public methodSetSourceSets the line to be parsed.
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft