Add dereference to tree

This commit is contained in:
2022-10-11 11:23:50 -04:00
parent 746fda6843
commit 1cd7511ced
2 changed files with 23 additions and 3 deletions

View File

@@ -97,10 +97,8 @@ const (
ArgumentKindList
// {name}
ArgumentKindDereference
// {name 23}
ArgumentKindSubscript
ArgumentKindDereference
// name.name
// name.name.name
@@ -220,6 +218,15 @@ type FaceSection struct {
FaceBehavior
}
// Dereference represents a pointer dereference or array subscript.
type Dereference struct {
locatable
valuable
// if a simple dereference was parsed, this should just be zero.
offset int
}
// PhraseKind determines what semantic role a phrase plays.
type PhraseKind int