More tree changes

This commit is contained in:
Sasha Koshka 2022-09-27 14:17:03 -04:00
parent edd4b39642
commit c4101dcd33
3 changed files with 31 additions and 23 deletions

View File

@ -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)

View File

@ -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
} }