JSScanner JSScanner JSScanner JSScanner Class

Definition

Scans JScript code searching for individual units of code, or tokens. This class belongs to the scanning and parsing category.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class JSScanner sealed
public sealed class JSScanner
type JSScanner = class
Public NotInheritable Class JSScanner
Inheritance
JSScannerJSScannerJSScannerJSScanner

Constructors

JSScanner() JSScanner() JSScanner() JSScanner()

Initializes a new instance of the JSScanner class.

JSScanner(Context) JSScanner(Context) JSScanner(Context) JSScanner(Context)

Initializes a new instance of the JSScanner class, specifying the source code to scan.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCurrentLine() GetCurrentLine() GetCurrentLine() GetCurrentLine()

Gets the current line number in the code. This is a pointer that moves as the code is scanned.

GetCurrentPosition(Boolean) GetCurrentPosition(Boolean) GetCurrentPosition(Boolean) GetCurrentPosition(Boolean)

Gets the current position in the code string. This is a pointer that moves as the code is scanned.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNextToken() GetNextToken() GetNextToken() GetNextToken()

Scans for the next token in the code.

GetSourceCode() GetSourceCode() GetSourceCode() GetSourceCode()

Gets the source code that is associated with this scanner object.

GetStartLinePosition() GetStartLinePosition() GetStartLinePosition() 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() GetStringLiteral() GetStringLiteral() GetStringLiteral()

Gets a string that has been scanned and had all its escape sequences replaced.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GotEndOfLine() GotEndOfLine() GotEndOfLine() GotEndOfLine()

Indicates whether the end of a line was reached after the scanner scans or peeks for a token.

IsKeyword(JSToken) IsKeyword(JSToken) IsKeyword(JSToken) IsKeyword(JSToken)

Determines whether the specified token is a keyword in the JScript language.

IsOperator(JSToken) IsOperator(JSToken) IsOperator(JSToken) IsOperator(JSToken)

Determines whether the specified token is an operator in the JScript language.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetAuthoringMode(Boolean) SetAuthoringMode(Boolean) SetAuthoringMode(Boolean) SetAuthoringMode(Boolean)

Sets a flag that indicates whether the scanner is operating in authoring mode.

SetSource(Context) SetSource(Context) SetSource(Context) SetSource(Context)

Sets the source code to scan.

SkipMultiLineComment() SkipMultiLineComment() SkipMultiLineComment() SkipMultiLineComment()

Skips a comment that spans multiple lines, and advances the pointers that identify the current position in the code.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also