[svn] r6161: nemerle/trunk/ncc/generation/HierarchyEmitter.n

malekith svnadmin at nemerle.org
Wed Mar 22 12:25:07 CET 2006


Log:
Run body typer before saving attributes -- give macros chance to set them.

Author: malekith
Date: Wed Mar 22 12:25:06 2006
New Revision: 6161

Modified:
   nemerle/trunk/ncc/generation/HierarchyEmitter.n

Modified: nemerle/trunk/ncc/generation/HierarchyEmitter.n
==============================================================================
--- nemerle/trunk/ncc/generation/HierarchyEmitter.n	(original)
+++ nemerle/trunk/ncc/generation/HierarchyEmitter.n	Wed Mar 22 12:25:06 2006
@@ -949,6 +949,8 @@
 
     internal override Compile () : void
     {
+      RunBodyTyper ();
+
       unless (modifiers.IsEmpty) {
         def adder =
           if (fun_kind is FunKind.Constructor) 
@@ -971,7 +973,6 @@
         modifiers.SaveCustomAttributes (declaring_type, adder);
       }
       
-      RunBodyTyper ();
       CompileAfterTyping ()
     }
   }



More information about the svn mailing list