diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 07:24:50 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 07:24:50 -0400 |
| commit | 111e83166b1932594f51a513507bd9a26555b061 (patch) | |
| tree | 4bbf44a1946cffc5bc886aa89775011805b57dbc /src/server/documentation.odin | |
| parent | 09b873b80d6ce5c270bf9e0d735f857109c98715 (diff) | |
Revert "Merge pull request #857 from BradLewis/feat/foreign-block-attrs"
This reverts commit 09b873b80d6ce5c270bf9e0d735f857109c98715, reversing
changes made to 848d46e939d91c9b5067d2f5b3cc034f20b20612.
Diffstat (limited to 'src/server/documentation.odin')
| -rw-r--r-- | src/server/documentation.odin | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin index cdc2112..3d752eb 100644 --- a/src/server/documentation.odin +++ b/src/server/documentation.odin @@ -471,18 +471,6 @@ write_procedure_symbol_signature :: proc(sb: ^strings.Builder, value: SymbolProc strings.write_string(sb, "proc") if s, ok := value.calling_convention.(string); ok && detailed_signature { fmt.sbprintf(sb, " %s ", s) - } else if len(value.attributes) > 0 { - for attr in value.attributes { - for elem in attr.elems { - if ident, value, ok := unwrap_attr_elem(elem); ok { - if ident.name == "default_calling_convention" { - strings.write_string(sb, " ") - build_string_node(value, sb, false) - strings.write_string(sb, " ") - } - } - } - } } write_proc_param_list_and_return(sb, value) if detailed_signature { @@ -689,27 +677,12 @@ write_symbol_attributes :: proc(sb: ^strings.Builder, symbol: Symbol) { strings.write_string(sb, "@()\n") continue } - if len(attribute.elems) == 1 { - if ident, _, ok := unwrap_attr_elem(attribute.elems[0]); ok { - if ident.name == "default_calling_convention" { - continue - } - } - } strings.write_string(sb, "@(") for elem, i in attribute.elems { - if ident, value, ok := unwrap_attr_elem(elem); ok { - if ident.name == "default_calling_convention" { - continue - } - - if value != nil { - build_string_node(ident, sb, false) - strings.write_string(sb, "=") - build_string_node(value, sb, false) - } - } if directive, ok := elem.derived.(^ast.Field_Value); ok { + build_string_node(directive.field, sb, false) + strings.write_string(sb, "=") + build_string_node(directive.value, sb, false) } else { build_string_node(elem, sb, false) } |