File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ """
2+ CodeTracking can be thought of as an extension of InteractiveUtils, and pairs well with Revise.jl.
3+
4+ - `code_string`, `@code_string`: fetch the source code (as a string) for a method definition
5+ - `code_expr`, `@code_expr`: fetch the expression for a method definition
6+ - `definition`: a lower-level variant of the above
7+ - `pkgfiles`: return information about the source files that define a package
8+ - `whereis`: Return location information about methods (with Revise, it updates as you edit files)
9+ - `signatures_at`: return the signatures of all methods whose definition spans the specified location
10+ """
111module CodeTracking
212
313using Base: PkgId
@@ -159,7 +169,7 @@ function signatures_at(filename::AbstractString, line::Integer)
159169 end
160170 end
161171 end
162- error( " $filename not found in internal data, perhaps the package is not loaded (or not loaded with `includet`)" )
172+ throw(ArgumentError( " $filename not found in internal data, perhaps the package is not loaded (or not loaded with `includet`)" ) )
163173end
164174
165175"""
You can’t perform that action at this time.
0 commit comments