Skip to content

Commit

Permalink
update std::jule::sema
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 2, 2023
1 parent d432899 commit 298acdf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/standard-library/std-jule-sema.md
Original file line number Diff line number Diff line change
Expand Up @@ -1317,13 +1317,36 @@ Reports whether variable is type inferred.
## Traits
```
trait Lookup {
// Find imported package.
// Returns nil reference if did not found any match.
fn find_package(mut self, ident: str): &ImportInfo
// Select imported package.
// Returns nil reference if did not found any match.
fn select_package(mut self, selector: fn(&ImportInfo): bool): &ImportInfo
// Find variable by identifier and cpp-linked state.
// Returns nil reference if did not found any match.
fn find_var(mut self, ident: str, cpp_linked: bool): &Var
// Find type alias by identifier and cpp-linked state.
// Returns nil reference if did not found any match.
fn find_type_alias(mut self, ident: str, cpp_linked: bool): &TypeAlias
// Find structure by identifier and cpp-linked state.
// Returns nil reference if did not found any match.
fn find_struct(mut self, ident: str, cpp_linked: bool): &Struct
// Find function by identifier and cpp-linked state.
// Returns nil reference if did not found any match.
fn find_fn(mut self, ident: str, cpp_linked: bool): &Fn
// Find trait by identifier.
// Returns nil reference if did not found any match.
fn find_trait(mut self, ident: str): &Trait
// Find enum by identifier.
// Returns nil reference if did not found any match.
fn find_enum(mut self, ident: str): &Enum
}
```
Expand Down

0 comments on commit 298acdf

Please sign in to comment.