mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 03:41:16 -03:00
Functions to store nodes
Prior to this fix, functions stored a string representation of their contents. Switch them to storing a parsed source reference and the tnode of the contents. This is part of an effort to avoid reparsing a function's contents every time it executes.
This commit is contained in:
@@ -227,7 +227,7 @@ static int report_function_metadata(const wchar_t *funcname, bool verbose, io_st
|
||||
path = function_get_definition_file(funcname);
|
||||
if (path) {
|
||||
autoloaded = function_is_autoloaded(funcname) ? L"autoloaded" : L"not-autoloaded";
|
||||
line_number = function_get_definition_offset(funcname);
|
||||
line_number = function_get_definition_lineno(funcname);
|
||||
} else {
|
||||
path = L"stdin";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user