Skip to content

Commit

Permalink
Add a comment to new sema function
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Jul 5, 2021
1 parent 306bd27 commit 571b295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
Cargo.lock
/target
**/*.rs.bk
.DS_Store
.idea
1 change: 1 addition & 0 deletions src/sema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub const SOLANA_BUCKET_SIZE: u64 = 251;
pub const SOLANA_FIRST_OFFSET: u64 = 16;
pub const SOLANA_SPARSE_ARRAY_SIZE: u64 = 1024;

/// Performs semantic analysis and checks for unused variables
pub fn sema(file: ResolvedFile, cache: &mut FileCache, ns: &mut ast::Namespace) {
perform_sema(file, cache, ns);
check_unused_namespace_variables(ns);
Expand Down

0 comments on commit 571b295

Please sign in to comment.