Merge: Kill oldstyle attributes
authorJean Privat <jean@pryen.org>
Thu, 4 Sep 2014 00:20:40 +0000 (20:20 -0400)
committerJean Privat <jean@pryen.org>
Thu, 4 Sep 2014 00:20:40 +0000 (20:20 -0400)
Remove remaining usage of old style attributes declarations `var _foo`.

Also remove the annotation `old_style_init` in the parser.

Pull-Request: #712
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

1  2 
src/astvalidation.nit

diff --combined src/astvalidation.nit
@@@ -15,6 -15,7 +15,6 @@@
  # Check the consitency of AST
  module astvalidation
  
 -private import typing
  intrude import parser
  import astbuilder
  
@@@ -51,7 -52,7 +51,7 @@@ redef class ANod
                end
                v.seen.add(self)
  
-               if _location == null then
+               if not isset _location then
                        #debug "LOCATION: unlocated node {v.path.join(", ")}"
                        _location = self.parent.location
                end