Skip to main content

Mojo function

source_location

source_location() -> SourceLocation

Returns the location for where this function is called.

This currently doesn't work when called in a parameter expression.

Returns:

SourceLocation: The location information of the source_location() call.

Was this page helpful?