Simplified return code

This commit is contained in:
Eduard Urbach 2025-02-12 17:34:48 +01:00
parent ef512441cf
commit bd71a29c04
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 66 additions and 77 deletions

24
src/core/Parameter.go Normal file
View file

@ -0,0 +1,24 @@
package core
import (
"git.akyoto.dev/cli/q/src/token"
"git.akyoto.dev/cli/q/src/types"
)
type Parameter struct {
name string
typ types.Type
tokens token.List
}
func NewParameter(tokens token.List) *Parameter {
return &Parameter{tokens: tokens}
}
func (p *Parameter) Name() string {
return p.name
}
func (p *Parameter) Type() types.Type {
return p.typ
}