Implemented Value interface

This commit is contained in:
Eduard Urbach 2025-02-28 12:15:19 +01:00
parent fbcadae268
commit 9cfca57111
Signed by: eduard
GPG key ID: 49226B848C78F6C8
36 changed files with 194 additions and 153 deletions

View file

@ -15,7 +15,7 @@ type Scope struct {
// AddVariable adds a new variable to the current scope.
func (s *Scope) AddVariable(variable *Variable) {
s.Variables = append(s.Variables, variable)
s.Use(variable.Register)
s.Use(variable.Value.Register)
}
// VariableByName returns the variable with the given name or `nil` if it doesn't exist.