File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -940,7 +940,7 @@ declaration_base::declaration_base(declaration_base const& that)
940
940
[[nodiscard]] auto declaration::as_type () const & -> type_declaration { return type_declaration (n, (*this )); }
941
941
[[nodiscard]] auto declaration::as_alias () const & -> alias_declaration { return alias_declaration (n, (*this )); }
942
942
943
- [[nodiscard]] auto declaration::get_parent () const & -> declaration { return declaration (n , (*this )); }
943
+ [[nodiscard]] auto declaration::get_parent () const & -> declaration { return declaration ((* cpp2::assert_not_null (n)). parent_declaration , (*this )); }
944
944
945
945
[[nodiscard]] auto declaration::parent_is_function () const & -> bool { return CPP2_UFCS_0 (parent_is_function, (*cpp2::assert_not_null (n))); }
946
946
[[nodiscard]] auto declaration::parent_is_object () const & -> bool { return CPP2_UFCS_0 (parent_is_object, (*cpp2::assert_not_null (n))); }
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ declaration: @polymorphic_base @copyable type =
272
272
as_type : (this) -> type_declaration = type_declaration(n, this);
273
273
as_alias : (this) -> alias_declaration = alias_declaration(n, this);
274
274
275
- get_parent : (this) -> declaration = declaration(n, this);
275
+ get_parent : (this) -> declaration = declaration(n*.parent_declaration , this);
276
276
277
277
parent_is_function : (this) -> bool = n*.parent_is_function();
278
278
parent_is_object : (this) -> bool = n*.parent_is_object();
You can’t perform that action at this time.
0 commit comments