diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 08:21:53 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 08:21:53 -0400 |
| commit | 061d866edf89bbc8314c9ea4452a5feae17d445a (patch) | |
| tree | 683893de70e878029cc55e01b02c1acf6b64791c /src | |
| parent | 58b9260ab648539bee0c78b7e53861b40d1d6ce8 (diff) | |
Fix issues due to merge
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/documentation.odin | 6 | ||||
| -rw-r--r-- | src/server/methods.odin | 4 | ||||
| -rw-r--r-- | src/server/signature.odin | 8 | ||||
| -rw-r--r-- | src/server/symbol.odin | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin index 59d813d..17d0204 100644 --- a/src/server/documentation.odin +++ b/src/server/documentation.odin @@ -117,7 +117,7 @@ build_documentation :: proc(ast_context: ^AstContext, symbol: ^Symbol, short_sig return } - symbol.doc = construct_symbol_docs(symbol, allocator = ast_context.allocator) + symbol.doc = construct_symbol_docs(symbol^, allocator = ast_context.allocator) } // Adds signature and docs information for a bit field field @@ -125,10 +125,10 @@ build_bit_field_field_documentation :: proc( symbol: ^Symbol, value: SymbolBitFieldValue, index: int, allocator := context.temp_allocator ) { symbol.signature = get_bit_field_field_signature(value, index, allocator) - symbol.doc = construct_symbol_docs(symbol) + symbol.doc = construct_symbol_docs(symbol^) } -construct_symbol_docs :: proc(symbol: ^Symbol, allocator := context.temp_allocator) -> string { +construct_symbol_docs :: proc(symbol: Symbol, allocator := context.temp_allocator) -> string { sb := strings.builder_make(allocator = allocator) if symbol.doc != "" { strings.write_string(&sb, symbol.doc) diff --git a/src/server/methods.odin b/src/server/methods.odin index a054abb..1826ef6 100644 --- a/src/server/methods.odin +++ b/src/server/methods.odin @@ -128,12 +128,12 @@ append_method_completion :: proc( item := CompletionItem { label = symbol.name, kind = symbol_type_to_completion_kind(symbol.type), - detail = get_short_signature(ast_context, &symbol), + detail = get_short_signature(ast_context, symbol), additionalTextEdits = remove_edit, textEdit = TextEdit{newText = new_text, range = {start = range.end, end = range.end}}, insertTextFormat = .Snippet, InsertTextMode = .adjustIndentation, - documentation = construct_symbol_docs(&symbol), + documentation = construct_symbol_docs(symbol), } append(results, CompletionResult{completion_item = item}) diff --git a/src/server/signature.odin b/src/server/signature.odin index f333b61..f40da31 100644 --- a/src/server/signature.odin +++ b/src/server/signature.odin @@ -134,14 +134,14 @@ get_signature_information :: proc(document: ^Document, position: common.Position parameters[i].label = node_to_string(arg) } - call.doc = construct_symbol_docs(call.doc, call.comment) + call.doc = construct_symbol_docs(call) sb := strings.builder_make(context.temp_allocator) write_procedure_symbol_signature(&sb, value, detailed_signature = false) call.signature = strings.to_string(sb) info := SignatureInformation { label = concatenate_raw_string_information(&ast_context, call.pkg, call.name, call.signature, call.type), - documentation = construct_symbol_docs(call.doc, call.comment), + documentation = construct_symbol_docs(call), parameters = parameters, } append(&signature_information, info) @@ -163,14 +163,14 @@ get_signature_information :: proc(document: ^Document, position: common.Position parameters[i].label = node_to_string(arg) } - symbol.doc = construct_symbol_docs(symbol.doc, symbol.comment) + symbol.doc = construct_symbol_docs(symbol) sb := strings.builder_make(context.temp_allocator) write_procedure_symbol_signature(&sb, value, detailed_signature = false) symbol.signature = strings.to_string(sb) info := SignatureInformation { label = concatenate_raw_string_information(&ast_context, symbol.pkg, symbol.name, symbol.signature, symbol.type), - documentation = construct_symbol_docs(symbol.doc, symbol.comment), + documentation = construct_symbol_docs(symbol), parameters = parameters, } diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 0ead07f..dc6b126 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -787,7 +787,7 @@ construct_bit_field_field_symbol :: proc(symbol: ^Symbol, parent_name: string, v symbol.type = .Field symbol.doc = get_doc(value.docs[index], context.temp_allocator) symbol.comment = get_comment(value.comments[index]) - symbol.doc = construct_symbol_docs(symbol.doc, symbol.comment) + symbol.doc = construct_symbol_docs(symbol^) symbol.signature = get_bit_field_field_signature(value, index) //build_bit_field_field_documentation(symbol, value, index) } |