pub struct Package {
pub id: String,
pub files: FxHashMap<u32, File>,
pub definitions: DenseMap<Symbol, Definition>,
pub unsupported_go_symbols: FxHashMap<EcoString, String>,
pub uninferred_exports: Option<UninferredExports>,
}Fields§
§id: String§files: FxHashMap<u32, File>file ID -> file. Source and declaration files are classified by File::is_d_lis.
definitions: DenseMap<Symbol, Definition>qualified name -> definition
unsupported_go_symbols: FxHashMap<EcoString, String>Go symbol name -> reason Lisette cannot support it, from #[go(skipped, "...")]
uninferred_exports: Option<UninferredExports>Set when an import cycle keeps the package out of inference: nothing registers its files, so its exports are read from syntax.
Implementations§
Source§impl Package
impl Package
pub fn new(id: &str) -> Package
pub fn nominal() -> Package
pub fn is_public(&self, qualified_name: &str) -> bool
pub fn get_file(&self, file_id: u32) -> Option<&File>
pub fn file_ids(&self) -> impl Iterator<Item = u32> + '_
pub fn source_files(&self) -> impl Iterator<Item = &File>
pub fn source_file_entries(&self) -> impl Iterator<Item = (&u32, &File)>
pub fn typedef_files(&self) -> impl Iterator<Item = &File>
pub fn is_typedef(&self, file_id: u32) -> bool
pub fn is_empty_stub(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for Package
impl Freeze for Package
impl Move for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnsafeUnpin for Package
impl UnwindSafe for Package
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more