This documentation is archived and is not being maintained.
JSScanner Class
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Scans JScript code searching for individual units of code, or tokens. This class belongs to the scanning and parsing category. For more information about scanning and parsing, see Create a Language Compiler for the .NET Framework.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The JSScanner type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | JSScanner() | Initializes a new instance of the JSScanner class. |
![]() | JSScanner(Context) | Initializes a new instance of the JSScanner class, specifying the source code to scan. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetCurrentLine | Gets the current line number in the code. This is a pointer that moves as the code is scanned. |
![]() | GetCurrentPosition | Gets the current position in the code string. This is a pointer that moves as the code is scanned. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetNextToken | Scans for the next token in the code. |
![]() | GetSourceCode | Gets the source code that is associated with this scanner object. |
![]() | GetStartLinePosition | Gets the position in the code string where the first line of the current code starts. All lines of code are stored in a single string. This is a pointer that moves as the code is scanned. |
![]() | GetStringLiteral | Gets a string that has been scanned and had all its escape sequences replaced. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GotEndOfLine | Indicates whether the end of a line was reached after the scanner scans or peeks for a token. |
![]() ![]() | IsKeyword | Determines whether the specified token is a keyword in the JScript language. |
![]() ![]() | IsOperator | Determines whether the specified token is an operator in the JScript language. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetAuthoringMode | Sets a flag that indicates whether the scanner is operating in authoring mode. |
![]() | SetSource | Sets the source code to scan. |
![]() | SkipMultiLineComment | Skips a comment that spans multiple lines, and advances the pointers that identify the current position in the code. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
