Context Context Context Context Class

Definition

Represents JScript source code. This class belongs to the compilation and run-time state category.

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

public ref class Context
public class Context
type Context = class
Public Class Context
Inheritance
ContextContextContextContext

Remarks

This class is used mainly by the JSScanner and the JSParser to read source code. For more information, see Create a Language Compiler for the .NET Framework.

Properties

EndColumn EndColumn EndColumn EndColumn

Gets the column number in the line where this code ends. This includes white space at the start of the line.

EndLine EndLine EndLine EndLine

Gets the ending line number of this code.

EndPosition EndPosition EndPosition EndPosition

Gets the position in the code string where this code ends, because all lines of code are stored in a single string.

StartColumn StartColumn StartColumn StartColumn

Gets the column number in the line where this code starts. This includes white space at the start of the line.

StartLine StartLine StartLine StartLine

Gets the line number where this code starts.

StartPosition StartPosition StartPosition StartPosition

Gets the position in the code string where this code starts, because all lines of code are stored in a single string.

Methods

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

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

(Inherited from Object)
GetCode() GetCode() GetCode() GetCode()

Gets the code that the context contains, discarding any white space.

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

Serves as the default hash function.

(Inherited from Object)
GetToken() GetToken() GetToken() GetToken()

Gets an individual unit of code, or a token, that the context contains.

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

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also