diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-08-20 13:13:26 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-08-20 13:13:26 +0200 |
| commit | f6f2eb760d4b11630dc0719c8893383bed20cd9a (patch) | |
| tree | f3738e1fa057671d182a7161f9ff02ffa7b56020 /src/server/caches.odin | |
| parent | 8e8360dba88feb0334a222e9f990250cf65f32bf (diff) | |
Finally make the move to use odinfmt in ols.
Diffstat (limited to 'src/server/caches.odin')
| -rw-r--r-- | src/server/caches.odin | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/server/caches.odin b/src/server/caches.odin index 80128f4..55091fd 100644 --- a/src/server/caches.odin +++ b/src/server/caches.odin @@ -17,7 +17,9 @@ FileResolveCache :: struct { file_resolve_cache: FileResolveCache -resolve_entire_file_cached :: proc(document: ^Document) -> map[uintptr]SymbolAndNode{ +resolve_entire_file_cached :: proc( + document: ^Document, +) -> map[uintptr]SymbolAndNode { if document.uri.uri not_in file_resolve_cache.files { file_resolve_cache.files[document.uri.uri] = FileResolve { symbols = resolve_entire_file( @@ -27,9 +29,9 @@ resolve_entire_file_cached :: proc(document: ^Document) -> map[uintptr]SymbolAnd common.scratch_allocator(document.allocator), ), } - } + } - return file_resolve_cache.files[document.uri.uri].symbols; + return file_resolve_cache.files[document.uri.uri].symbols } BuildCache :: struct { @@ -40,4 +42,4 @@ PackageCacheInfo :: struct { timestamp: time.Time, } -build_cache: BuildCache
\ No newline at end of file +build_cache: BuildCache |