How to get last node on tree-sitter grammar

How do I get the last node in a tree-sitter grammar?

I tested with
'node > identifier:last-child()' : 'my.class'
But looks like atom only supports :nth-child