diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-04-15 19:56:20 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-04-15 19:56:20 +0200 |
| commit | 1ff3cccc05724f1a2485edbbace6ac540c4cb485 (patch) | |
| tree | f72ff54ba467041a0c2db247d46efc53eeb37f2c /src/common | |
| parent | b4720f71d63f08ec6a734fb79fb0816756484ac6 (diff) | |
Add proper multi_pointer support and fix range half range op
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/ast.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin index c8398ae..841c519 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -637,6 +637,10 @@ node_equal_node :: proc(a, b: ^ast.Node) -> bool { if n, ok := a.derived.(^Dynamic_Array_Type); ok { return node_equal(n.elem, m.elem) } + case ^ast.Multi_Pointer_Type: + if n, ok := a.derived.(^Multi_Pointer_Type); ok { + return node_equal(n.elem, m.elem) + } case ^Struct_Type: if n, ok := a.derived.(^Struct_Type); ok { ret := node_equal(n.poly_params, m.poly_params) |