Simplified return code
This commit is contained in:
parent
ef512441cf
commit
bd71a29c04
12 changed files with 66 additions and 77 deletions
24
src/core/Parameter.go
Normal file
24
src/core/Parameter.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue