From 2b4ac5478cba495c2758d816545c087f2e84a48c Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Tue, 4 Jul 2023 02:25:23 -0700 Subject: [PATCH] Move exported under lsp Summary: Functions used by the LSP, so bundle them together. Reviewed By: bobyangyf Differential Revision: D47195362 fbshipit-source-id: 09f0ad911c185ba8937cc74667dc5650fd9a9706 --- starlark/src/analysis/mod.rs | 1 - starlark/src/{analysis => lsp}/exported.rs | 0 starlark/src/lsp/mod.rs | 1 + starlark/src/lsp/symbols.rs | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename starlark/src/{analysis => lsp}/exported.rs (100%) diff --git a/starlark/src/analysis/mod.rs b/starlark/src/analysis/mod.rs index 69c0942a7..29edaf582 100644 --- a/starlark/src/analysis/mod.rs +++ b/starlark/src/analysis/mod.rs @@ -25,7 +25,6 @@ use crate::analysis::types::LintT; use crate::syntax::AstModule; mod dubious; -pub(crate) mod exported; mod find_call_name; mod flow; mod incompatible; diff --git a/starlark/src/analysis/exported.rs b/starlark/src/lsp/exported.rs similarity index 100% rename from starlark/src/analysis/exported.rs rename to starlark/src/lsp/exported.rs diff --git a/starlark/src/lsp/mod.rs b/starlark/src/lsp/mod.rs index af6d4f17c..e220577a7 100644 --- a/starlark/src/lsp/mod.rs +++ b/starlark/src/lsp/mod.rs @@ -20,6 +20,7 @@ mod bind; mod definition; +mod exported; pub mod server; mod symbols; #[cfg(all(test, not(windows)))] diff --git a/starlark/src/lsp/symbols.rs b/starlark/src/lsp/symbols.rs index 8df3aba49..951d30eae 100644 --- a/starlark/src/lsp/symbols.rs +++ b/starlark/src/lsp/symbols.rs @@ -19,9 +19,9 @@ use starlark_map::small_map::SmallMap; -use crate::analysis::exported::SymbolKind; use crate::codemap::CodeMap; use crate::codemap::LineCol; +use crate::lsp::exported::SymbolKind; use crate::syntax::ast::AstAssignIdent; use crate::syntax::ast::AstStmt; use crate::syntax::ast::StmtP;