mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Remove #opaque types
This commit is contained in:
@@ -630,11 +630,6 @@ Distinct_Type :: struct {
|
||||
type: ^Expr,
|
||||
}
|
||||
|
||||
Opaque_Type :: struct {
|
||||
using node: Expr,
|
||||
type: ^Expr,
|
||||
}
|
||||
|
||||
Poly_Type :: struct {
|
||||
using node: Expr,
|
||||
dollar: tokenizer.Pos,
|
||||
|
||||
@@ -243,8 +243,6 @@ clone_node :: proc(node: ^Node) -> ^Node {
|
||||
r.type = clone(r.type);
|
||||
case Distinct_Type:
|
||||
r.type = clone(r.type);
|
||||
case Opaque_Type:
|
||||
r.type = clone(r.type);
|
||||
case Poly_Type:
|
||||
r.type = auto_cast clone(r.type);
|
||||
r.specialization = clone(r.specialization);
|
||||
|
||||
@@ -339,8 +339,6 @@ walk :: proc(v: ^Visitor, node: ^Node) {
|
||||
walk(v, n.type);
|
||||
case Distinct_Type:
|
||||
walk(v, n.type);
|
||||
case Opaque_Type:
|
||||
walk(v, n.type);
|
||||
case Poly_Type:
|
||||
walk(v, n.type);
|
||||
if n.specialization != nil {
|
||||
|
||||
Reference in New Issue
Block a user