More tree changes
This commit is contained in:
parent
edd4b39642
commit
c4101dcd33
@ -169,18 +169,6 @@ func (phrase Phrase) Kind () (kind PhraseKind) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// ArgumentsLength returns the amount of arguments in the phrase.
|
|
||||||
func (phrase Phrase) ArgumentsLength () (length int) {
|
|
||||||
length = len(phrase.arguments)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Argument returns the argument at index.
|
|
||||||
func (phrase Phrase) Argument (index int) (argument Argument) {
|
|
||||||
argument = phrase.arguments[index]
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// ReturneesLength returns the amount of things the phrase returns to.
|
// ReturneesLength returns the amount of things the phrase returns to.
|
||||||
func (phrase Phrase) ReturneesLength () (length int) {
|
func (phrase Phrase) ReturneesLength () (length int) {
|
||||||
length = len(phrase.returnees)
|
length = len(phrase.returnees)
|
||||||
|
|||||||
@ -43,7 +43,7 @@ type typeable struct {
|
|||||||
|
|
||||||
// Type returns the type of the node.
|
// Type returns the type of the node.
|
||||||
func (trait typeable) Type () (what Type) {
|
func (trait typeable) Type () (what Type) {
|
||||||
what = trait.what
|
what = trait.what
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||