Values are now properly referred to as arguments
This commit is contained in:
parent
48325e224b
commit
1ed612b3d1
@ -60,28 +60,28 @@ func (node permissionable) Permission () (permission types.Permission) {
|
|||||||
|
|
||||||
// valuable allows a node to have an argument value.
|
// valuable allows a node to have an argument value.
|
||||||
type valuable struct {
|
type valuable struct {
|
||||||
value Argument
|
argument Argument
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value returns the value argument of the node.
|
// Argument returns the value argument of the node.
|
||||||
func (node valuable) Value () (value Argument) {
|
func (node valuable) Argument () (argument Argument) {
|
||||||
value = node.value
|
argument = node.argument
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// multiValuable allows a node to have several argument values.
|
// multiValuable allows a node to have several argument values.
|
||||||
type multiValuable struct {
|
type multiValuable struct {
|
||||||
values []Argument
|
arguments []Argument
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value returns the value at index.
|
// Argument returns the argument at index.
|
||||||
func (node multiValuable) Value (index int) (value Argument) {
|
func (node multiValuable) Argument (index int) (argument Argument) {
|
||||||
value = node.values[index]
|
argument = node.arguments[index]
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Length returns the amount of values in the mode.
|
// Length returns the amount of arguments in the mode.
|
||||||
func (node multiValuable) Length () (length int) {
|
func (node multiValuable) Length () (length int) {
|
||||||
length = len(node.values)
|
length = len(node.arguments)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user