SourceLocation.fromPosition

Retrieves the source location associated with a given file/line/column in a particular translation unit. TODO consider moving to TranslationUnit instead

struct SourceLocation
static
fromPosition
()

Parameters

tu

translation unit to derive location from.

file
Type: File

a file in tu.

line
Type: uint

text line. Starting at 1.

offset
Type: uint

offset into the line. Starting at 1.

Meta