Skip to content

Commit

Permalink
remove repititions
Browse files Browse the repository at this point in the history
Signed-off-by: shruti2522 <[email protected]>
  • Loading branch information
shruti2522 committed Jun 3, 2024
1 parent 2fea870 commit 315ad83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions kclvm/sema/src/namer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,6 @@ impl<'ctx> Namer<'ctx> {
// add new pkgs to invalidate pkgs
namer.gs.new_or_invalidate_pkgs.insert(name.clone());

// new pkgs or invalidate pkg
if namer.gs.get_packages().get_package_info(name).is_some()
&& !namer.gs.new_or_invalidate_pkgs.contains(name)
{
continue;
}

// add new pkgs to invalidate pkgs
namer.gs.new_or_invalidate_pkgs.insert(name.clone());

{
if modules.is_empty() {
continue;
Expand Down Expand Up @@ -190,7 +180,6 @@ impl<'ctx> Namer<'ctx> {
namer.define_symbols();

// namer.gs
// namer.gs
}

fn init_builtin_symbols(&mut self) {
Expand Down
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/semantic_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use kclvm_sema::core::{
symbol::{KCLSymbol, SymbolKind},
};
use kclvm_sema::ty::TypeKind;
use lsp_types::{SemanticToken, SemanticTokenType, SemanticTokens, SemanticTokensResult};
use lsp_types::{SemanticToken, SemanticTokenType, SmanticTokens, SemanticTokensResult};

pub const LEGEND_TYPE: &[SemanticTokenType] = &[
SemanticTokenType::VARIABLE,
Expand Down

0 comments on commit 315ad83

Please sign in to comment.