Merge: Refactor FFI, the framework is now based on MModules
[nit.git] / src / common_ffi / ffi_base.nit
index c51ea66..3b53826 100644 (file)
@@ -41,7 +41,7 @@ class FFILanguageAssignationPhase
 
        redef fun process_npropdef(npropdef)
        do
-               if npropdef isa AExternPropdef then
+               if npropdef isa AMethPropdef then
                        var code_block = npropdef.n_extern_code_block
                        if code_block != null then
                                verify_foreign_code_on_node( code_block )
@@ -111,8 +111,8 @@ class FFILanguage
        fun compile_module_block(block: AExternCodeBlock, ecc: CCompilationUnit, mmodule: MModule) is abstract
 
        # Generate wrapper code for this extern method
-       fun compile_extern_method(block: AExternCodeBlock, m: AExternPropdef,
-               ecc: CCompilationUnit, mmodule: MModule) is abstract
+       fun compile_extern_method(block: AExternCodeBlock, m: AMethPropdef,
+               ecc: CCompilationUnit, nmodule: MModule) is abstract
 
        # Generate wrapper code for this extern class
        fun compile_extern_class(block: AExternCodeBlock, m: AClassdef,