<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>locate -- locate source code</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_log.html">next</a> | <a href="___Local__Dictionary.html">previous</a> | <a href="_log.html">forward</a> | <a href="___Local__Dictionary.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>locate -- locate source code</h1> <div class="single"><h2>Description</h2> <div><tt>locate f</tt> -- for a symbol interpreted function <tt>f</tt> returns a sequence <tt>(n,i,c,j,d,k,e)</tt> describing the location of the definition in the source code. The name of the source file is <tt>n</tt> and the code is occupies line <tt>i</tt> column <tt>c</tt> through line <tt>j</tt> column <tt>d</tt>, with the central point of interest located at line <tt>k</tt> column <tt>e</tt>. If the function <tt>f</tt> is compiled, then the location is not available, and <a href="_null.html" title="the unique member of the empty class">null</a> is returned.<p/> If <tt>f</tt> is a sequence, then <a href="_lookup.html" title="look up methods">lookup</a> is applied first, and then the location of the resulting function is provided.<p/> If <tt>f</tt> is <a href="_null.html" title="the unique member of the empty class">null</a>, then <a href="_null.html" title="the unique member of the empty class">null</a> is returned.</div> </div> <div class="waystouse"><h2>Ways to use <tt>locate</tt> :</h2> <ul><li>locate(Function)</li> <li>locate(Nothing)</li> <li>locate(Pseudocode)</li> <li>locate(Sequence)</li> <li>locate(Symbol)</li> </ul> </div> </div> </body> </html>