-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add api to get all schema under path (#1754)
feat: add new api to get all schema under path Signed-off-by: he1pa <18012015693@163.com>
- Loading branch information
Showing
13 changed files
with
146 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
kclvm/query/src/test_data/get_schema_ty_under_path/aaa/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "aaa" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
bbb = { path = "../bbb" } | ||
helloworld = "0.0.1" |
5 changes: 5 additions & 0 deletions
5
kclvm/query/src/test_data/get_schema_ty_under_path/aaa/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import bbb | ||
|
||
a = bbb.B { | ||
name: "b instance in a" | ||
} |
3 changes: 3 additions & 0 deletions
3
kclvm/query/src/test_data/get_schema_ty_under_path/aaa/sub/sub.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
schema Sub: | ||
name: str | ||
|
5 changes: 5 additions & 0 deletions
5
kclvm/query/src/test_data/get_schema_ty_under_path/bbb/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[package] | ||
name = "bbb" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
4 changes: 4 additions & 0 deletions
4
kclvm/query/src/test_data/get_schema_ty_under_path/bbb/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
schema Base: | ||
n: str | ||
schema B(Base): | ||
name: str |
2 changes: 2 additions & 0 deletions
2
kclvm/query/src/test_data/get_schema_ty_under_path/helloworld_0.0.1/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## Introduction | ||
This is a kcl package named helloworld. |
5 changes: 5 additions & 0 deletions
5
kclvm/query/src/test_data/get_schema_ty_under_path/helloworld_0.0.1/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[package] | ||
name = "helloworld" | ||
edition = "0.0.1" | ||
version = "0.0.1" | ||
|
3 changes: 3 additions & 0 deletions
3
kclvm/query/src/test_data/get_schema_ty_under_path/helloworld_0.0.1/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The_first_kcl_program = 'Hello World!' | ||
schema Hello: | ||
name: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters