Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api without compiler #7

Merged
merged 4 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
741 changes: 23 additions & 718 deletions kclvm/Cargo.lock

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions kclvm/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ once_cell = "1.5.2"
prost-wkt = {path = "../third-party/prost-wkt", version = "0.4.1"}
prost-wkt-types = {path = "../third-party/prost-wkt/wkt-types", version = "0.4.1"}

kclvm-runner = {path = "../runner"}
kclvm-config = {path = "../config"}
kclvm-driver = {path = "../driver"}
kclvm-error = {path = "../error"}
Expand All @@ -31,9 +30,7 @@ kclvm-sema = {path = "../sema"}
kclvm-ast = {path = "../ast"}
kclvm-ast-pretty = {path = "../ast_pretty"}
kclvm-runtime = {path = "../runtime"}
kclvm-tools = {path = "../tools" }
kclvm-query = {path = "../query"}
kcl-language-server = {path = "../tools/src/LSP"}

[dev-dependencies]
criterion = "0.4.0"
Expand Down
12 changes: 6 additions & 6 deletions kclvm/api/src/service/into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ use kclvm_error::Diagnostic;
use kclvm_loader::{ScopeInfo, SymbolInfo};
use kclvm_sema::core::{scope::ScopeRef, symbol::SymbolRef};

pub(crate) trait IntoLoadSettingsFiles {
pub trait IntoLoadSettingsFiles {
/// Convert self into the LoadSettingsFiles structure.
fn into_load_settings_files(self, files: &[String]) -> LoadSettingsFilesResult;
}

pub(crate) trait IntoError {
pub trait IntoError {
fn into_error(self) -> Error;
}

pub(crate) trait IntoSymbolIndex {
pub trait IntoSymbolIndex {
fn into_symbol_index(self) -> SymbolIndex;
}

pub(crate) trait IntoSymbol {
pub trait IntoSymbol {
fn into_symbol(self) -> Symbol;
}

pub(crate) trait IntoScope {
pub trait IntoScope {
fn into_scope(self) -> Scope;
}

pub(crate) trait IntoScopeIndex {
pub trait IntoScopeIndex {
fn into_scope_index(self) -> ScopeIndex;
}

Expand Down
4 changes: 2 additions & 2 deletions kclvm/api/src/service/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod capi;
pub(crate) mod into;
pub mod into;
pub mod jsonrpc;
pub mod service_impl;
pub(crate) mod ty;
pub mod ty;
pub(crate) mod util;

pub use service_impl::KclvmServiceImpl;
Loading
Loading