- readable var _n_kwredef: nullable TKwredef = null
- readable var _n_visibility: AVisibility
- readable var _n_kwvar: TKwvar
- readable var _n_id: nullable TAttrid
- readable var _n_id2: nullable TId
- readable var _n_type: nullable AType = null
- readable var _n_readable: nullable AAble = null
- readable var _n_writable: nullable AAble = null
- readable var _n_expr: nullable AExpr = null
- redef fun hot_location
- do
- if n_id != null then return n_id.location else return n_id2.location
- end
-end
-abstract class AMethPropdef
- super APropdef
- readable var _n_kwredef: nullable TKwredef = null
- readable var _n_visibility: nullable AVisibility
- readable var _n_methid: nullable AMethid = null
- readable var _n_signature: nullable ASignature
- redef fun hot_location
- do
- if n_methid != null then
- return n_methid.location
- else
- return location
- end
- end
-end
-class ADeferredMethPropdef
- super AMethPropdef
- readable var _n_kwmeth: TKwmeth
-end
-class AInternMethPropdef
- super AMethPropdef
- readable var _n_kwmeth: TKwmeth
-end
-abstract class AExternPropdef
- super AMethPropdef
- readable var _n_extern: nullable TString = null
- readable var _n_extern_calls: nullable AExternCalls = null
- readable var _n_extern_code_block: nullable AExternCodeBlock = null
-end
-class AExternMethPropdef
- super AExternPropdef
- readable var _n_kwmeth: TKwmeth
-end
-class AConcreteMethPropdef
- super AMethPropdef
- readable var _n_kwmeth: nullable TKwmeth
- readable var _n_block: nullable AExpr = null
-end
-abstract class AInitPropdef
- super AMethPropdef
-end
-class AConcreteInitPropdef
- super AConcreteMethPropdef
- super AInitPropdef
- readable var _n_kwinit: TKwinit
- redef fun hot_location do return n_kwinit.location
+ var n_kwvar: TKwvar is writable, noinit
+
+ # The identifier for a new-style attribute (null if old-style)
+ var n_id2: TId is writable, noinit
+
+ var n_type: nullable AType = null is writable
+
+ # The initial value, if any
+ var n_expr: nullable AExpr = null is writable
+ redef fun hot_location
+ do
+ return n_id2.location
+ end