Add constructed constructor expression into AST when parsing header
authorMarek Safar <marek.safar@gmail.com>
Wed, 11 Jan 2012 17:51:20 +0000 (17:51 +0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 11 Jan 2012 17:53:03 +0000 (17:53 +0000)
mcs/mcs/cs-parser.jay

index a98a4cf023e4b00e2dbf2892ed6c40c52e1fd232..4834e0bf8250ea599bab56e371f541bf3262f010 100644 (file)
@@ -2079,8 +2079,6 @@ constructor_declaration
                if (doc_support)
                        c.DocComment = ConsumeStoredComment ();
 
-               current_container.AddConstructor (c);
-
                current_local_parameters = null;
                if (doc_support)
                        Lexer.doc_state = XmlCommentState.Allowed;
@@ -2118,6 +2116,7 @@ constructor_declarator
                        }
                }
 
+               current_container.AddConstructor (c);
                lbag.AddMember (c, mod_locations, GetLocation ($5), GetLocation ($7));
                $$ = c;