line()
Produces the line number on which it appears.
Declaration
@freestanding(expression) macro line<T>() -> T where T : ExpressibleByIntegerLiteralOverview
This macro’s value can be changed by #sourceLocation, as described in Line Control Statement in The Swift Programming Language.