# ``Swift/line()``

@Metadata {
    @DocumentationExtension(mergeBehavior: override)
}

Produces the line number on which it appears.

This macro's value can be changed by `#sourceLocation`,
as described in [Line Control Statement][] in [The Swift Programming Language][tspl].

[Line Control Statement]: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/statements#Line-Control-Statement
[tspl]: https://docs.swift.org/swift-book/

