_n_visibility = n
n.parent = self
end
- redef fun n_kwattr=(n)
- do
- _n_kwattr = n
- if n != null then
- n.parent = self
- end
- end
redef fun n_kwvar=(n)
do
_n_kwvar = n
- if n != null then
- n.parent = self
- end
+ n.parent = self
end
redef fun n_id=(n)
do
n_writable: nullable AAble,
n_kwredef: nullable TKwredef,
n_visibility: nullable AVisibility,
- n_kwattr: nullable TKwattr,
n_kwvar: nullable TKwvar,
n_id: nullable TAttrid,
n_type: nullable AType,
end
_n_visibility = n_visibility.as(not null)
n_visibility.parent = self
- _n_kwattr = n_kwattr
- if n_kwattr != null then
- n_kwattr.parent = self
- end
- _n_kwvar = n_kwvar
- if n_kwvar != null then
- n_kwvar.parent = self
- end
+ _n_kwvar = n_kwvar.as(not null)
+ n_kwvar.parent = self
_n_id = n_id.as(not null)
n_id.parent = self
_n_type = n_type
end
return
end
- if _n_kwattr == old_child then
- if new_child != null then
- new_child.parent = self
- assert new_child isa TKwattr
- _n_kwattr = new_child
- else
- _n_kwattr = null
- end
- return
- end
if _n_kwvar == old_child then
if new_child != null then
new_child.parent = self
assert new_child isa TKwvar
_n_kwvar = new_child
else
- _n_kwvar = null
+ abort
end
return
end
v.enter_visit(_n_kwredef.as(not null))
end
v.enter_visit(_n_visibility)
- if _n_kwattr != null then
- v.enter_visit(_n_kwattr.as(not null))
- end
- if _n_kwvar != null then
- v.enter_visit(_n_kwvar.as(not null))
- end
+ v.enter_visit(_n_kwvar)
v.enter_visit(_n_id)
if _n_type != null then
v.enter_visit(_n_type.as(not null))
v.enter_visit(_n_kwredef.as(not null))
end
v.enter_visit(_n_visibility)
- if _n_kwattr != null then
- v.enter_visit(_n_kwattr.as(not null))
- end
- if _n_kwvar != null then
- v.enter_visit(_n_kwvar.as(not null))
- end
+ v.enter_visit(_n_kwvar)
v.enter_visit(_n_id)
if _n_type != null then
v.enter_visit(_n_type.as(not null))