File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
crates/emmylua_code_analysis/src/semantic/visibility Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,17 @@ pub fn check_export_visibility(
21
21
type_index. get_file_using_namespace ( & semantic_model. get_file_id ( ) )
22
22
{
23
23
for using_namespace in using_namespaces {
24
- if using_namespace == module_namespace {
24
+ if using_namespace == module_namespace
25
+ || using_namespace. starts_with ( & format ! ( "{}." , module_namespace) )
26
+ {
25
27
return Some ( true ) ;
26
28
}
27
29
}
28
30
}
29
- if type_index. get_file_namespace ( & semantic_model. get_file_id ( ) ) ? == module_namespace {
31
+ let file_namespace = type_index. get_file_namespace ( & semantic_model. get_file_id ( ) ) ?;
32
+ if file_namespace == module_namespace
33
+ || file_namespace. starts_with ( & format ! ( "{}." , module_namespace) )
34
+ {
30
35
return Some ( true ) ;
31
36
}
32
37
}
You can’t perform that action at this time.
0 commit comments