Spec-Zone.ru › Pony

SourceLoc

[Source]

Represents a location in a Pony source file, as reported by __loc.

interface val SourceLoc

Public Functions

file

[Source]

Name and path of source file.

fun box file()
: String val

Returns

  • String val

type_name

[Source]

Name of nearest class, actor, primitive, struct, interface, or trait.

fun box type_name()
: String val

Returns

  • String val

method_name

[Source]

Name of containing method.

fun box method_name()
: String val

Returns

  • String val

line

[Source]

Line number within file. Line numbers start at 1.

fun box line()
: USize val

Returns

  • USize val

pos

[Source]

Character position on line. Character positions start at 1.

fun box pos()
: USize val

Returns

  • USize val

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/builtin-SourceLoc

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API