diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-20 15:37:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 15:37:04 -0400 |
| commit | 789113379206b43f5e1988d807ae3a316174aa7e (patch) | |
| tree | 381c9c2668bc936b0e9d3671599b4fd91f20bf02 /src/server/ast.odin | |
| parent | c8060630c01f8f46ae12dcc60b96b77a22f29751 (diff) | |
| parent | b0ba0838c467c43a92563baf84401e10aae23050 (diff) | |
Merge pull request #1034 from BradLewis/fix/simd-hover
Add simd tag to simd array hover information
Diffstat (limited to 'src/server/ast.odin')
| -rw-r--r-- | src/server/ast.odin | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/ast.odin b/src/server/ast.odin index 1ecbb42..91c413f 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -268,6 +268,15 @@ array_is_soa :: proc(array: ast.Array_Type) -> bool { return false } +array_is_simd :: proc(array: ast.Array_Type) -> bool { + if array.tag != nil { + if basic, ok := array.tag.derived.(^ast.Basic_Directive); ok && basic.name == "simd" { + return true + } + } + return false +} + dynamic_array_is_soa :: proc(array: ast.Dynamic_Array_Type) -> bool { if array.tag != nil { if basic, ok := array.tag.derived.(^ast.Basic_Directive); ok && basic.name == "soa" { |