nitg: added explicit super calls with arguments to allow compatibilty without warning...
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 4 Mar 2013 21:19:26 +0000 (16:19 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 4 Mar 2013 21:19:26 +0000 (16:19 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/global_compiler.nit
src/layout_builders.nit
src/separate_compiler.nit

index 344dcd0..dd382b9 100644 (file)
@@ -88,7 +88,7 @@ class GlobalCompiler
 
        init(mainmodule: MModule, modelbuilder: ModelBuilder, runtime_type_analysis: RapidTypeAnalysis)
        do
-               super
+               super(mainmodule, modelbuilder)
                self.header = new_visitor
                self.runtime_type_analysis = runtime_type_analysis
                self.live_primitive_types = new Array[MClassType]
index d53f55f..5882045 100644 (file)
@@ -128,7 +128,7 @@ class PHTypeLayoutBuilder
        private var hasher: PerfectHasher[MType, MType]
 
        init(mmodule: MModule, operator: PHOperator) do
-               super
+               super(mmodule)
                self.hasher = new PerfectHasher[MType, MType](operator)
        end
 
@@ -213,7 +213,7 @@ class PHClassLayoutBuilder
        private var hasher: PerfectHasher[MClass, MClass]
 
        init(mmodule: MModule, operator: PHOperator) do
-               super
+               super(mmodule)
                self.hasher = new PerfectHasher[MClass, MClass](operator)
        end
 
index 55567ef..7b0c269 100644 (file)
@@ -111,7 +111,7 @@ class SeparateCompiler
        protected var attr_layout: nullable PropertyLayout[MAttribute]
 
        init(mainmodule: MModule, mmbuilder: ModelBuilder, runtime_type_analysis: RapidTypeAnalysis) do
-               super
+               super(mainmodule, mmbuilder)
                self.header = new_visitor
                self.runtime_type_analysis = runtime_type_analysis
                self.do_property_coloring