• Home
  • Raw
  • Download

Lines Matching refs:ItemKind

15 use super::item_kind::ItemKind;
186 impl AsTemplateParam for ItemKind { implementation
195 ItemKind::Type(ref ty) => ty.as_template_param(ctx, item), in as_template_param()
196 ItemKind::Module(..) | in as_template_param()
197 ItemKind::Function(..) | in as_template_param()
198 ItemKind::Var(..) => None, in as_template_param()
284 ItemKind::Type(ref ty) => { in trace()
294 ItemKind::Function(ref fun) => { in trace()
299 ItemKind::Var(ref var) => { in trace()
302 ItemKind::Module(_) => { in trace()
419 kind: ItemKind,
435 kind: ItemKind, in new() argument
458 let kind = ItemKind::Type(ty); in new_opaque_type()
515 pub fn kind(&self) -> &ItemKind { in kind() argument
520 pub fn kind_mut(&mut self) -> &mut ItemKind { in kind_mut() argument
616 ItemKind::Module(..) => true, in is_module()
642 ItemKind::Type(..) => { in is_blocklisted()
646 ItemKind::Function(..) => { in is_blocklisted()
650 ItemKind::Var(..) | ItemKind::Module(..) => false, in is_blocklisted()
662 ItemKind::Var(..) => true, in is_var()
686 ItemKind::Type(ref ty) => match *ty.kind() { in name_target()
717 if let ItemKind::Type(ref ty) = *self.kind() { in push_disambiguated_name()
735 ItemKind::Function(ref func) => Some(func.name()), in func_name()
745 if let ItemKind::Type(ref ty) = *parent.kind() { in overload_index()
777 ItemKind::Var(ref var) => var.name().to_owned(), in base_name()
778 ItemKind::Module(ref module) => { in base_name()
783 ItemKind::Type(ref ty) => { in base_name()
788 ItemKind::Function(ref fun) => { in base_name()
804 ItemKind::Module(module) => module.name().is_none(), in is_anon()
805 ItemKind::Type(ty) => ty.name().is_none(), in is_anon()
806 ItemKind::Function(_) => false, in is_anon()
807 ItemKind::Var(_) => false, in is_anon()
861 if let ItemKind::Module(ref module) = in real_canonical_name()
945 ItemKind::Module(ref module) => Some(module), in as_module()
954 ItemKind::Module(ref mut module) => Some(module), in as_module_mut()
965 ItemKind::Type(ref type_) => type_, in is_constified_enum_module()
994 ItemKind::Module(..) => true, in is_enabled_for_codegen()
995 ItemKind::Var(_) => cc.vars(), in is_enabled_for_codegen()
996 ItemKind::Type(_) => cc.types(), in is_enabled_for_codegen()
997 ItemKind::Function(ref f) => match f.kind() { in is_enabled_for_codegen()
1228 impl TemplateParameters for ItemKind { implementation
1231 ItemKind::Type(ref ty) => ty.self_template_params(ctx), in self_template_params()
1235 ItemKind::Function(_) | ItemKind::Module(_) | ItemKind::Var(_) => { in self_template_params()
1287 Item::new(id, None, None, module, ItemKind::Type(ty)), in builtin_type()
1324 ItemKind::$what(item), in parse()
1507 ItemKind::Type(Type::new(None, None, kind, is_const)), in from_ty_or_ref_with_id()
1626 ItemKind::Type(item), in from_ty_with_id()
1858 ItemKind::Type(Type::named(name)), in type_param()