]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for bug 8337 - "return" out-parameter must be the first one in outParameter-list.
authorasv <asv@opencascade.com>
Wed, 29 Jun 2005 13:58:06 +0000 (13:58 +0000)
committerasv <asv@opencascade.com>
Wed, 29 Jun 2005 13:58:06 +0000 (13:58 +0000)
src/ModuleGenerator/IDLparser.py

index 77b4b037e58d3687fc5ee0a3f9672a4fca3d185e..3cf31f9b7514afb93498b871c9deb79c4d05e5c2 100644 (file)
@@ -637,15 +637,15 @@ class ModuleCatalogVisitor (idlvisitor.AstVisitor):
 
         self.currentService = self.currentInterface.createService \
                                        (node.identifier())
-
-        for c in node.parameters():
-            c.accept(self)
             
         node.returnType().accept(self)
         if (self.currentType != "void"):
             self.currentService.createOutParameter \
                 ("return", self.currentType)
             
+        for c in node.parameters():
+            c.accept(self)
+
         for i in node.comments():
             self.currentInterface.comments.append(str(i))