def get_struct_member_vardecl(struct_type, member_name, declvisitor=None):
    """Return the type for the member @member_name, of the struct type defined by
    @struct_type."""
    for vardecllist in struct_type.children:
        assert vardecllist.type == "VarDeclList"
        for vardecl in vardecllist.children:
            assert vardecl.type == "VarDecl"
            ident = vardecl.identifier
            assert ident.type == "Identifier"
            ident_name = ident.children[0]
            if ident_name == member_name:
                return vardecl
                #return vardecllist.vartype
    return None