JsFunctionSourceLocation Struct
Where a function was defined (see JsObject.GetFunctionSourceLocation).
public readonly struct JsFunctionSourceLocation : IEquatable<JsFunctionSourceLocation>- Implements
Constructors
| Name | Description |
|---|---|
| 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
Namestring- The name of the function ([[InitialName]]), or the empty string.
ScriptOrModuleJsScriptOrModule?- The script or the module that defines the function ([[ScriptOrModule]]), or null (e.g. a function created by the
Functionconstructor). Urlstring?- The URL (or the file name) of the source text of the function, or null.
Positionint- The position (0-based) of the source text of the function in the source text of its script.
Lineint- The line (1-based) of the start of the function.
Columnint- The column (1-based) of the start of the function.
Properties
| Name | Description |
|---|---|
| Column | The column (1-based) of the start of the function. |
| Line | The line (1-based) of the start of the function. |
| Name | The name of the function ([[InitialName]]), or the empty string. |
| Position | The position (0-based) of the source text of the function in the source text of its script. |
| ScriptOrModule | The script or the module that defines the function ([[ScriptOrModule]]), or null (e.g. a function created by the Function constructor). |
| Url | The URL (or the file name) of the source text of the function, or null. |
Position
JsFunctionSourceLocation.csScriptOrModule
JsFunctionSourceLocation.csThe 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
Methods
| Name | Description |
|---|---|
| Deconstruct(string, JsScriptOrModule?, string?, int, int, int) | |
| Equals(JsFunctionSourceLocation) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(string, JsScriptOrModule?, string?, int, int, int)
Equals overloads
Equals(JsFunctionSourceLocation)
public bool Equals(JsFunctionSourceLocation other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| 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.