diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-07-30 19:10:47 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-07-30 19:10:47 +0200 |
| commit | a9381e228bad1fee86a14936f48d70562c96d469 (patch) | |
| tree | 23c1c77eef440e37442b21f64cb245e64727f351 /src/testing | |
| parent | 4a77ef3befcf354e9beb795fca7ce734235c468e (diff) | |
moving the analysis code to it's own analysis package to prepare for reference handling in the indexer.
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin index 6f01229..07bf75d 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -11,6 +11,7 @@ import "core:odin/ast" import "shared:server" import "shared:index" import "shared:common" +import "shared:analysis" Package :: struct { pkg: string, @@ -20,7 +21,7 @@ Package :: struct { Source :: struct { main: string, packages: [] Package, - document: ^server.Document, + document: ^common.Document, collections: map[string]string, config: common.Config, position: common.Position, @@ -30,7 +31,7 @@ Source :: struct { setup :: proc(src: ^Source) { src.main = strings.clone(src.main); - src.document = new(server.Document, context.temp_allocator); + src.document = new(common.Document, context.temp_allocator); src.document.uri = common.create_uri("test/test.odin", context.temp_allocator); src.document.client_owned = true; src.document.text = transmute([]u8)src.main; |