add codegen for kind() for synatx_by_ref::Syntax