diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-19 19:36:42 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-22 18:48:23 -0400 |
| commit | ddd6485f6ea68e445ee893721b2696aa2ab91bc4 (patch) | |
| tree | f90f30517bfca81476f48a8a15cf0dd58d9bc607 /src/server/documentation.odin | |
| parent | 4eda03d0564acbbd577edb54183f4443fbdd0e94 (diff) | |
Add proc directives to hover information
Diffstat (limited to 'src/server/documentation.odin')
| -rw-r--r-- | src/server/documentation.odin | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin index 34a6752..1698d61 100644 --- a/src/server/documentation.odin +++ b/src/server/documentation.odin @@ -497,6 +497,21 @@ write_procedure_symbol_signature :: proc(sb: ^strings.Builder, value: SymbolProc } else if value.diverging { strings.write_string(sb, " -> !") } + for tag in value.tags { + s := "" + switch tag { + case .Optional_Ok: + s = "#optional_ok" + case .Optional_Allocator_Error: + s = "#optional_allocator_error" + case .Bounds_Check: + s = "#bounds_check" + case .No_Bounds_Check: + s = "#no_bounds_check" + } + + fmt.sbprintf(sb, " %s", s) + } } write_struct_hover :: proc(ast_context: ^AstContext, sb: ^strings.Builder, v: SymbolStructValue) { |