Lines Matching refs:scope_decl
3072 dm_context_rel::dm_context_rel(scope_decl* s,
3081 dm_context_rel::dm_context_rel(scope_decl* s)
4683 scope_decl *scope = get_scope();
4782 scope_decl*
4961 if (scope_decl* s = get_scope())
4963 scope_decl::declarations::iterator i;
5238 decl_base::set_scope(scope_decl* scope)
5429 /// Test if a declaration is a @ref scope_decl.
5433 /// @return the a pointer to the @ref scope_decl sub-object of @p d,
5434 /// if d is a @ref scope_decl.
5435 scope_decl*
5437 {return dynamic_cast<scope_decl*>(d);}
5439 /// Test if a declaration is a @ref scope_decl.
5443 /// @return the a pointer to the @ref scope_decl sub-object of @p d,
5444 /// if d is a @ref scope_decl.
5447 {return dynamic_pointer_cast<scope_decl>(d);}
7259 if (scope_decl *scope = (*i)->get_scope())
7333 scope_decl* scope = is_decl(type) ? is_decl(type)->get_scope() : 0;
7365 scope_decl* scope = is_decl(t)->get_scope();
7400 scope_decl* scope =
7416 scope_decl* scope =
7435 scope_decl* scope = is_decl(e)->get_scope();
7468 // <scope_decl stuff>
7488 struct scope_decl::priv
7497 }; // end struct scope_decl::priv
7499 /// Constructor of the @ref scope_decl type.
7505 /// @param locus the source location where the scope_decl is defined.
7508 scope_decl::scope_decl(const environment& env,
7517 /// Constructor of the @ref scope_decl type.
7521 /// @param l the source location where the scope_decl is defined.
7524 scope_decl::scope_decl(const environment& env, location& l)
7532 scope_decl::get_canonical_types()
7537 scope_decl::get_canonical_types() const
7538 {return const_cast<scope_decl*>(this)->get_canonical_types();}
7549 scope_decl::get_sorted_canonical_types() const
7568 /// scope_decl.
7571 /// scope_decl.
7572 const scope_decl::declarations&
7573 scope_decl::get_member_decls() const
7577 /// scope_decl.
7580 /// scope_decl.
7581 scope_decl::declarations&
7582 scope_decl::get_member_decls()
7586 /// @ref scope_decl.
7589 /// scope_decl. The declarations are sorted topologically.
7590 const scope_decl::declarations&
7591 scope_decl::get_sorted_member_decls() const
7613 scope_decl::get_num_anonymous_member_classes() const
7631 scope_decl::get_num_anonymous_member_unions() const
7649 scope_decl::get_num_anonymous_member_enums() const
7665 scope_decl::scopes&
7666 scope_decl::get_member_scopes()
7672 const scope_decl::scopes&
7673 scope_decl::get_member_scopes() const
7680 scope_decl::is_empty() const
7696 scope_decl::add_member_decl(const decl_base_sptr& member)
7705 if (scope_decl_sptr m = dynamic_pointer_cast<scope_decl>(member))
7723 /// Get the member types of this @ref scope_decl.
7727 scope_decl::get_member_types() const
7731 /// scope_decl.
7738 scope_decl::find_member_type(const string& name) const
7748 /// @param t the type to insert in the @ref scope_decl type.
7752 scope_decl::insert_member_type(type_base_sptr t,
7768 scope_decl::add_member_type(type_base_sptr t)
7779 scope_decl::add_member_type(type_base_sptr t, access_specifier a)
7793 scope_decl::remove_member_type(type_base_sptr t)
7807 /// Get the sorted member types of this @ref scope_decl
7812 scope_decl::get_sorted_member_types() const
7839 scope_decl::insert_member_decl(decl_base_sptr member,
7847 if (scope_decl_sptr m = dynamic_pointer_cast<scope_decl>(member))
7869 scope_decl::remove_member_decl(decl_base_sptr member)
7884 scope_decl_sptr scope = dynamic_pointer_cast<scope_decl>(member);
7900 /// Return the hash value for the current instance of scope_decl.
7906 scope_decl::get_hash() const
7908 scope_decl::hash hash_scope;
7912 /// Compares two instances of @ref scope_decl.
7932 equals(const scope_decl& l, const scope_decl& r, change_kind* k)
7945 scope_decl::declarations::const_iterator i, j;
7981 scope_decl::operator==(const decl_base& o) const
7983 const scope_decl* other = dynamic_cast<const scope_decl*>(&o);
8027 scope_decl::find_iterator_for_member(const decl_base* decl,
8062 scope_decl::find_iterator_for_member(const decl_base_sptr decl,
8069 /// @param v the visitor used on the current instance of scope_decl
8075 scope_decl::traverse(ir_node_visitor &v)
8083 for (scope_decl::declarations::const_iterator i =
8094 scope_decl::~scope_decl()
8104 add_decl_to_scope(decl_base_sptr decl, scope_decl* scope)
8133 scope_decl* scope = decl->get_scope();
8149 scope_decl::declarations::iterator before,
8150 scope_decl* scope)
8171 scope_decl::declarations::iterator before,
8184 scope_decl(tu->get_environment(), "", location()),
8202 scope_decl* scope = decl.get_scope();
8240 const scope_decl*
8242 const scope_decl* scope)
8251 const scope_decl* s = dynamic_cast<const scope_decl*>(decl);
8283 const scope_decl*
8285 const scope_decl* scope)
8296 const scope_decl*
8301 // </scope_decl stuff>
8386 build_qualified_name(const scope_decl* scope, const string& name)
8409 build_qualified_name(const scope_decl* scope, const type_base_sptr& type)
8412 // </scope_decl stuff>
8453 scope_decl*
8470 scope_decl*
9667 is_global_scope(const scope_decl& scope)
9677 is_global_scope(const scope_decl* scope)
9686 is_global_scope(const shared_ptr<scope_decl>scope)
9747 scope_decl* scope = decl.get_scope();
11596 for (scope_decl::declarations::const_iterator m =
11604 scope = dynamic_pointer_cast<scope_decl>(*m);
11682 const vector<scope_decl*>& access_path,
11683 const scope_decl* scope)
11685 vector<scope_decl*> a = access_path;
11688 scope_decl* first_scope = 0;
11699 for (scope_decl::declarations::const_iterator i =
11713 for (scope_decl::scopes::const_iterator i =
11747 const scope_decl* scope)
11754 vector<scope_decl*> access_path;
11755 for (scope_decl* s = type_decl->get_scope(); s != 0; s = s->get_scope())
13126 /// maybe_update_types_lookup_map<T>(scope_decl*,
13185 /// maybe_update_types_lookup_map<T>(scope_decl*,
14461 scope_decl *scope = d->get_scope();
15348 scope_decl(env, name, locus)
15373 bool result = equals(static_cast<const scope_decl&>(l),
15374 static_cast<const scope_decl&>(r),
15443 for (scope_decl::declarations::const_iterator i =
15478 // because it is virtually inherited by scope_decl. Note that we
15479 // just implicitely call the default constructor for scope_decl
15488 scope_decl(env, name, locus)
15515 "namespace " + scope_decl::get_pretty_representation(internal,
15530 return scope_decl::operator==(*other);
15578 scope_decl::declarations::const_iterator i;
15994 if (scope_decl* s = get_scope())
15998 scope_decl::declarations::iterator i;
18909 var_decl::set_scope(scope_decl* scope)
21470 scope_decl::add_member_decl(v);
21621 scope_decl::add_member_decl(f);
21739 scope_decl::add_member_decl(m->as_function_tdecl());
21754 scope_decl::add_member_decl(m->as_class_tdecl());
21797 scope_decl::add_member_decl(d);
23071 method_decl::set_scope(scope_decl* scope)
24237 scope_decl* scope = d.get_scope();
25301 scope_decl(env, "", locus),
25330 scope_decl(pattern->get_environment(), pattern->get_name(), locus),
25399 && scope_decl::operator==(o)
25474 scope_decl(env, "", locus),
25500 scope_decl(pattern->get_environment(), pattern->get_name(), locus),
25532 && scope_decl::operator==(o)
26382 ir_node_visitor::visit_begin(scope_decl*)
26386 ir_node_visitor::visit_end(scope_decl*)
26736 abigail::ir::scope_decl* parent = d->get_scope();