File

Overview

Location

  • Reference: Go.fx
  • Namespace: go.token
  • Platforms: Island

Instance Methods


constructor

 

constructor

 

File()

 

init()

 

Sub New()

constructor (File)

 

constructor(value: File)

 

File(File value)

 

init(_ value: File)

 

Sub New(value As File)

Parameters:

  • value:

AddLine

 

method AddLine(offset: int)

 

void AddLine(int offset)

 

func AddLine(_ offset: int)

 

func AddLine(offset int) void

 

Sub AddLine(offset As int)

Parameters:

  • offset:

AddLineColumnInfo

 

method AddLineColumnInfo(offset: int; filename: string; line: int; column: int)

 

void AddLineColumnInfo(int offset, string filename, int line, int column)

 

func AddLineColumnInfo(_ offset: int, _ filename: string, _ line: int, _ column: int)

 

func AddLineColumnInfo(offset int, filename string, line int, column int) void

 

Sub AddLineColumnInfo(offset As int, filename As string, line As int, column As int)

Parameters:

  • offset:
  • filename:
  • line:
  • column:

AddLineInfo

 

method AddLineInfo(offset: int; filename: string; line: int)

 

void AddLineInfo(int offset, string filename, int line)

 

func AddLineInfo(_ offset: int, _ filename: string, _ line: int)

 

func AddLineInfo(offset int, filename string, line int) void

 

Sub AddLineInfo(offset As int, filename As string, line As int)

Parameters:

  • offset:
  • filename:
  • line:

Base

 

method Base: int

 

int Base()

 

func Base() -> int

 

func Base() int

 

Function Base() As int

Line

 

method Line(p: Pos): int

 

int Line(Pos p)

 

func Line(_ p: Pos) -> int

 

func Line(p Pos) int

 

Function Line(p As Pos) As int

Parameters:

  • p:

LineCount

 

method LineCount: int

 

int LineCount()

 

func LineCount() -> int

 

func LineCount() int

 

Function LineCount() As int

LineStart

 

method LineStart(line: int): Pos

 

Pos LineStart(int line)

 

func LineStart(_ line: int) -> Pos

 

func LineStart(line int) Pos

 

Function LineStart(line As int) As Pos

Parameters:

  • line:

MergeLine

 

method MergeLine(line: int)

 

void MergeLine(int line)

 

func MergeLine(_ line: int)

 

func MergeLine(line int) void

 

Sub MergeLine(line As int)

Parameters:

  • line:

Name

 

method Name: string

 

string Name()

 

func Name() -> string

 

func Name() string

 

Function Name() As string

Offset

 

method Offset(p: Pos): int

 

int Offset(Pos p)

 

func Offset(_ p: Pos) -> int

 

func Offset(p Pos) int

 

Function Offset(p As Pos) As int

Parameters:

  • p:

Pos

 

method Pos(offset: int): Pos

 

Pos Pos(int offset)

 

func Pos(_ offset: int) -> Pos

 

func Pos(offset int) Pos

 

Function Pos(offset As int) As Pos

Parameters:

  • offset:

Position

 

method Position(p: Pos): Position

 

Position Position(Pos p)

 

func Position(_ p: Pos) -> Position

 

func Position(p Pos) Position

 

Function Position(p As Pos) As Position

Parameters:

  • p:

PositionFor

 

method PositionFor(p: Pos; adjusted: bool): Position

 

Position PositionFor(Pos p, bool adjusted)

 

func PositionFor(_ p: Pos, _ adjusted: bool) -> Position

 

func PositionFor(p Pos, adjusted bool) Position

 

Function PositionFor(p As Pos, adjusted As bool) As Position

Parameters:

  • p:
  • adjusted:

SetLines

 

method SetLines(lines: Slice<Int64>): bool

 

bool SetLines(Slice<Int64> lines)

 

func SetLines(_ lines: Slice<Int64>) -> bool

 

func SetLines(lines Slice<Int64>) bool

 

Function SetLines(lines As Slice<Int64>) As bool

Parameters:

  • lines:

SetLinesForContent

 

method SetLinesForContent(content: Slice<Byte>)

 

void SetLinesForContent(Slice<Byte> content)

 

func SetLinesForContent(_ content: Slice<Byte>)

 

func SetLinesForContent(content Slice<Byte>) void

 

Sub SetLinesForContent(content As Slice<Byte>)

Parameters:

  • content:

Size

 

method Size: int

 

int Size()

 

func Size() -> int

 

func Size() int

 

Function Size() As int