Vixen
02b45cc4
csharp
public readonly record struct LinePosition

A zero-based (line, character) coordinate into source text. Character counts UTF-16 code units from the start of the line.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (2)

  • public int Line

    Zero-based line number.

  • public int Character

    Zero-based UTF-16 code-unit offset within the line.

Methods (7)

  • public LinePosition(int Line, int Character)

    A zero-based (line, character) coordinate into source text. Character counts UTF-16 code units from the start of the line.

  • public static bool operator <(LinePosition left, LinePosition right)

    Orders by Line, then by Character.

  • public static bool operator <=(LinePosition left, LinePosition right)
  • public static bool operator >(LinePosition left, LinePosition right)
  • public static bool operator >=(LinePosition left, LinePosition right)
  • public int CompareTo(LinePosition other)

    Orders by Line, breaking ties with Character.

  • public override string ToString()

    Formats as one-based line,column for human-readable output.

Used by (10)

  • ComponentEmitterVixen.Ui.Markup
  • DiagnosticFormatterVixen.Core.Syntax
  • LinePositionSpanVixen.Core.Syntax
  • RecoveryTestsVixen.Ui.Markup.Tests
  • RedTreeTestsVixen.Core.Syntax.Tests
  • SourceTextVixen.Core.Syntax
  • SourceTextTestsVixen.Core.Syntax.Tests
  • VxmlGeneratorVixen.Ui.Markup.Generators
  • DiagnosticsTestsVixen.Raven.Tests
  • ShaderDocumentVixen.Editor.AssetEditors