src/swipl-devel/packages/xpce/man/refmanual/md/source_location.md

class source_location {#class-source_location}

A source_location denotes a location in a sourcefile. They are created by the compiler and used by this manual tool to find the sources for classes and methods.

If possible, the filename must be absolute, so the sources can be found regardless of the current directory.

A value @nil for the line_no implies the line number is not known. The Prolog defined class compiler uses the predicate source_location/2 to find out about the location from which the last term presented to term_expansion/2 was read. The line-numbers for system defined classes are determined via the EMACS tag-file TAGS in the PCE source directory.

@see method-source

Get methods {#class-source_location-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.