pep8analysis: update and remove old-style attributes
[nit.git] / contrib / pep8analysis / src / parser / parser_prod.nit
index 8f71631..f7fb2f7 100644 (file)
@@ -8,9 +8,7 @@ private import tables
 
 redef class ANode
        # Parent of the node in the AST
-       var _parent: nullable ANode
-       fun parent: nullable ANode do return _parent
-       fun parent=(p: nullable ANode) do _parent = p
+       var parent: nullable ANode is writable
 
        # Remove a child from the AST
        fun remove_child(child: ANode)