CommandNode.finalWords

Retrieves all child CommandNodes that are of type CommandNodeType.finalWord.

Notes: While similar to CommandResolver.finalWords, this function has one major difference.

It is less efficient, since CommandResolver.finalWords builds and caches its value whenever a sentence is defined, while this function (currently) has to recreate its value each time.

Furthermore, as with CommandResolver.finalWords, the returned array of nodes are simply copies of the actual nodes used and returned by CommandResolver.resolve. So don't expect any changes to be reflected anywhere.

Technically the same could be done here, but I'm lazy, so for now you get extra GC garbage.

struct CommandNode(UserDataT)
CommandNode!UserDataT[]
finalWords
()

Return Value

Type: CommandNode!UserDataT[]

All child final words.

Meta