Contents

line()

Produces the line number on which it appears.

Declaration

@freestanding(expression) macro line<T>() -> T where T : ExpressibleByIntegerLiteral

Overview

This macro’s value can be changed by #sourceLocation, as described in Line Control Statement in The Swift Programming Language.

See Also

Getting Source Location Information