JsFunctionSourceLocation Struct

Where a function was defined (see JsObject.GetFunctionSourceLocation).

public readonly struct JsFunctionSourceLocation : IEquatable<JsFunctionSourceLocation>
Implements

Constructors

NameDescription
JsFunctionSourceLocation(string, JsScriptOrModule?, string?, int, int, int)Where a function was defined (see JsObject.GetFunctionSourceLocation).

JsFunctionSourceLocation(string, JsScriptOrModule?, string?, int, int, int)

Where a function was defined (see JsObject.GetFunctionSourceLocation).

public JsFunctionSourceLocation(string Name, JsScriptOrModule? ScriptOrModule, string? Url, int Position, int Line, int Column)

Parameters

Name string
The name of the function ([[InitialName]]), or the empty string.
ScriptOrModule JsScriptOrModule?
The script or the module that defines the function ([[ScriptOrModule]]), or null (e.g. a function created by the Function constructor).
Url string?
The URL (or the file name) of the source text of the function, or null.
Position int
The position (0-based) of the source text of the function in the source text of its script.
Line int
The line (1-based) of the start of the function.
Column int
The column (1-based) of the start of the function.

Properties

NameDescription
ColumnThe column (1-based) of the start of the function.
LineThe line (1-based) of the start of the function.
NameThe name of the function ([[InitialName]]), or the empty string.
PositionThe position (0-based) of the source text of the function in the source text of its script.
ScriptOrModuleThe script or the module that defines the function ([[ScriptOrModule]]), or null (e.g. a function created by the Function constructor).
UrlThe URL (or the file name) of the source text of the function, or null.

The column (1-based) of the start of the function.

public int Column { get; init; }

Property value

int

The line (1-based) of the start of the function.

public int Line { get; init; }

Property value

int

The name of the function ([[InitialName]]), or the empty string.

public string Name { get; init; }

Property value

string

The position (0-based) of the source text of the function in the source text of its script.

public int Position { get; init; }

Property value

int

The script or the module that defines the function ([[ScriptOrModule]]), or null (e.g. a function created by the Function constructor).

public JsScriptOrModule? ScriptOrModule { get; init; }

Property value

JsScriptOrModule?

The URL (or the file name) of the source text of the function, or null.

public string? Url { get; init; }

Property value

string?

Methods

NameDescription
Deconstruct(string, JsScriptOrModule?, string?, int, int, int)
Equals(JsFunctionSourceLocation)
Equals(object)
GetHashCode()
ToString()

Deconstruct(string, JsScriptOrModule?, string?, int, int, int)

public void Deconstruct(out string Name, out JsScriptOrModule? ScriptOrModule, out string? Url, out int Position, out int Line, out int Column)

Parameters

Name string
ScriptOrModule JsScriptOrModule?
Url string?
Position int
Line int
Column int

No documentation is available.

Equals overloads

Equals(JsFunctionSourceLocation)

public bool Equals(JsFunctionSourceLocation other)
Parameters
other JsFunctionSourceLocation
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(JsFunctionSourceLocation, JsFunctionSourceLocation)
operator !=(JsFunctionSourceLocation, JsFunctionSourceLocation)

operator ==(JsFunctionSourceLocation, JsFunctionSourceLocation)

public static bool operator ==(JsFunctionSourceLocation left, JsFunctionSourceLocation right)

No documentation is available.

operator !=(JsFunctionSourceLocation, JsFunctionSourceLocation)

public static bool operator !=(JsFunctionSourceLocation left, JsFunctionSourceLocation right)

No documentation is available.