SourceLocation Struktura

Definice

Umístění v souboru Razor.

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)
Dědičnost
SourceLocation
Implementuje

Konstruktory

SourceLocation(Int32, Int32, Int32)

Inicializuje novou instanci SourceLocation .

SourceLocation(String, Int32, Int32, Int32)

Inicializuje novou instanci SourceLocation .

Pole

Undefined

Nedefinovaný SourceLocation .

Zero

A SourceLocation s AbsoluteIndex , LineIndex a CharacterIndex inicializovaný na 0.

Vlastnosti

AbsoluteIndex
CharacterIndex
FilePath

Cesta k souboru

LineIndex

Načte index řádku na řádku, na který odkazuje toto zdrojové umístění.

Metody

Advance(SourceLocation, String)

Posune se o SourceLocation délku text .

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.

Operátory

Addition(SourceLocation, SourceLocation)

Přidá dvě SourceLocation s.

Equality(SourceLocation, SourceLocation)

Určuje, zda jsou operandy stejné.

GreaterThan(SourceLocation, SourceLocation)

Určuje, zda je první operand větší než druhý operand.

Inequality(SourceLocation, SourceLocation)

Určuje, zda se operandy neshodují.

LessThan(SourceLocation, SourceLocation)

Určuje, zda je první operand menší než druhý operand.

Subtraction(SourceLocation, SourceLocation)

Odečte dvě SourceLocation s.

Platí pro