Udostępnij za pośrednictwem


SourceLocation Struktura

Definicja

Lokalizacja w pliku 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)
Dziedziczenie
SourceLocation
Implementuje

Konstruktory

SourceLocation(Int32, Int32, Int32)

Inicjuje nowe wystąpienie klasy SourceLocation.

SourceLocation(String, Int32, Int32, Int32)

Inicjuje nowe wystąpienie klasy SourceLocation.

Pola

Undefined

Niezdefiniowany SourceLocationelement .

Zero

Element SourceLocation z wartościami AbsoluteIndex, LineIndexi CharacterIndex zainicjowany na wartość 0.

Właściwości

AbsoluteIndex

Lokalizacja w pliku Razor.

CharacterIndex

Lokalizacja w pliku Razor.

FilePath

Ścieżka pliku.

LineIndex

Pobiera 1-oparty na indeksie wiersza, do których odwołuje się ta lokalizacja źródłowa.

Metody

Advance(SourceLocation, String)

Przechodzi przez SourceLocation długość text.

CompareTo(SourceLocation)

Lokalizacja w pliku Razor.

Equals(Object)

Lokalizacja w pliku Razor.

Equals(SourceLocation)

Lokalizacja w pliku Razor.

GetHashCode()

Lokalizacja w pliku Razor.

ToString()

Lokalizacja w pliku Razor.

Operatory

Addition(SourceLocation, SourceLocation)

Dodaje dwa SourceLocations.

Equality(SourceLocation, SourceLocation)

Określa, czy operandy są równe.

GreaterThan(SourceLocation, SourceLocation)

Określa, czy pierwszy operand jest większy niż drugi operand.

Inequality(SourceLocation, SourceLocation)

Określa, czy operandy nie są równe.

LessThan(SourceLocation, SourceLocation)

Określa, czy pierwszy operand jest mniejszy niż drugi operand.

Subtraction(SourceLocation, SourceLocation)

Odejmuje dwa SourceLocations.

Dotyczy