-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade dict type into schema type in node_ty_map if expr's exp…
…ected type is schema Signed-off-by: he1pa <[email protected]>
- Loading branch information
Showing
11 changed files
with
243 additions
and
5 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
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
5 changes: 5 additions & 0 deletions
5
kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__nested_test-2.snap
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 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", labels)" | ||
--- | ||
["ab"] |
5 changes: 5 additions & 0 deletions
5
kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__nested_test-3.snap
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 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", labels)" | ||
--- | ||
["ab"] |
5 changes: 5 additions & 0 deletions
5
kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__nested_test-4.snap
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 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", labels)" | ||
--- | ||
["ab"] |
5 changes: 5 additions & 0 deletions
5
kclvm/tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__nested_test.snap
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 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", labels)" | ||
--- | ||
["ab"] |
35 changes: 35 additions & 0 deletions
35
kclvm/tools/src/LSP/src/test_data/completion_test/dot/nested/nested.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,35 @@ | ||
schema N: | ||
ab: int | ||
|
||
schema ListN: | ||
a: [N] | ||
|
||
list_N: ListN = { | ||
a: [{ | ||
|
||
}] | ||
} | ||
|
||
schema DictN: | ||
a: {str:N} | ||
|
||
dictN: DictN = { | ||
a.c = { | ||
|
||
} | ||
} | ||
dictN1: DictN = { | ||
a : { | ||
c: { | ||
|
||
} | ||
} | ||
} | ||
schema ListListN: | ||
a: [[N]] | ||
|
||
listlistN: ListListN = { | ||
a: [[{ | ||
|
||
}]] | ||
} |