SourceLocation Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A location in a Razor file.
public value class SourceLocation : IComparable<Microsoft::AspNetCore::Razor::SourceLocation>, IEquatable<Microsoft::AspNetCore::Razor::SourceLocation>
public struct SourceLocation : IComparable<Microsoft.AspNetCore.Razor.SourceLocation>, IEquatable<Microsoft.AspNetCore.Razor.SourceLocation>
type SourceLocation = struct
Public Structure SourceLocation
Implements IComparable(Of SourceLocation), IEquatable(Of SourceLocation)
- Inheritance
-
SourceLocation
- Implements
Constructors
SourceLocation(Int32, Int32, Int32) |
Initializes a new instance of SourceLocation. |
SourceLocation(String, Int32, Int32, Int32) |
Initializes a new instance of SourceLocation. |
Fields
Undefined |
An undefined SourceLocation. |
Zero |
A SourceLocation with AbsoluteIndex, LineIndex, and CharacterIndex initialized to 0. |
Properties
AbsoluteIndex | |
CharacterIndex | |
FilePath |
Path of the file. |
LineIndex |
Gets the 1-based index of the line referred to by this Source Location. |
Methods
Advance(SourceLocation, String) |
Advances the SourceLocation by the length of the |
CompareTo(SourceLocation) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
Equals(Object) | Indicates whether this instance and a specified object are equal. |
Equals(SourceLocation) | Indicates whether the current object is equal to another object of the same type. |
GetHashCode() | Returns the hash code for this instance. |
ToString() | Returns the fully qualified type name of this instance. |
Operators
Addition(SourceLocation, SourceLocation) |
Adds two SourceLocations. |
Equality(SourceLocation, SourceLocation) |
Determines whether the operands are equal. |
GreaterThan(SourceLocation, SourceLocation) |
Determines whether the first operand is greater than the second operand. |
Inequality(SourceLocation, SourceLocation) |
Determines whether the operands are not equal. |
LessThan(SourceLocation, SourceLocation) |
Determines whether the first operand is less than the second operand. |
Subtraction(SourceLocation, SourceLocation) |
Subtracts two SourceLocations. |