llcppg/ast:value reference

This commit is contained in:
luoliwoshang
2024-08-20 12:02:12 +08:00
parent 7eeca21a05
commit e3fefdebe1

View File

@@ -159,11 +159,18 @@ func (*PointerType) exprNode() {}
// ------------------------------------------------ // ------------------------------------------------
// X& // X&
type ReferenceType struct { type LvalueRefType struct {
X Expr X Expr
} }
func (*ReferenceType) exprNode() {} func (*LvalueRefType) exprNode() {}
// X&&
type RvalueRefType struct {
X Expr
}
func (*RvalueRefType) exprNode() {}
// ------------------------------------------------ // ------------------------------------------------