function createAssignmentList(nodes) {
    return nodes.map(getTopAssignment).filter(Boolean)
}
Gets top assignment nodes of the given node list.

@param {ASTNode[]} nodes - The node list to get.
@returns {ASTNode[]} Gotten top assignment nodes.