You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The search path that was used to locate the module
508
529
pubfnroot(&self) -> &ModuleSearchPath{
509
530
&self.root
510
531
}
511
532
533
+
/// The file containing the source code for the module
512
534
pubfnfile(&self) -> FileId{
513
535
self.file_id
514
536
}
515
537
}
516
538
539
+
/// Given a module name and a list of search paths in which to lookup modules,
540
+
/// attempt to resolve the module name
517
541
fnresolve_name(
518
542
name:&ModuleName,
519
543
search_paths:&[ModuleSearchPath],
@@ -635,7 +659,9 @@ enum PackageKind {
635
659
/// A root package or module. E.g. `foo` in `foo.bar.baz` or just `foo`.
636
660
Root,
637
661
638
-
/// A regular sub-package where the parent contains an `__init__.py`. For example `bar` in `foo.bar` when the `foo` directory contains an `__init__.py`.
662
+
/// A regular sub-package where the parent contains an `__init__.py`.
663
+
///
664
+
/// For example, `bar` in `foo.bar` when the `foo` directory contains an `__init__.py`.
639
665
Regular,
640
666
641
667
/// A sub-package in a namespace package. A namespace package is a package without an `__init__.py`.
0 commit comments