Skip to content

Commit f7cd923

Browse files
committed
v.util: shorten the doc comments for qualify_import and qualify_module .
1 parent 9e10ffa commit f7cd923

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎vlib/v/util/module.v‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ fn trace_qualify(callfn string, mod string, file_path string, kind_res string, r
1616
// 2022-01-30 TODO: this seems to always just return `mod` itself, for modules inside the V main folder.
1717
// 2022-01-30 It does also return `mod` itself, for stuff installed in ~/.vmodules like `vls` but for
1818
// 2022-01-30 other reasons (see res 2 below).
19+
20+
// qualify_import is used by V's parser, to find the full module name of import statements.
21+
// Do not use it.
1922
pub fn qualify_import(pref_ &pref.Preferences, mod string, file_path string) string {
2023
// comments are from workdir: /v/vls
2124
mut mod_paths := pref_.lookup_path.clone()
@@ -51,6 +54,8 @@ pub fn qualify_import(pref_ &pref.Preferences, mod string, file_path string) str
5154
// 2022-01-30 qualify_module - used by V's parser to find the full module name
5255
// 2022-01-30 i.e. when parsing `module textscanner`, inside vlib/strings/textscanner/textscanner.v
5356
// 2022-01-30 it will return `strings.textscanner`
57+
58+
// qualify_module - used by V's parser to find the full module name. Do not use it.
5459
pub fn qualify_module(pref_ &pref.Preferences, mod string, file_path string) string {
5560
if mod == 'main' {
5661
trace_qualify(@FN, mod, file_path, 'module_res 1', mod, 'main')

0 commit comments

Comments
 (0)