Switch to new construction syntax
authorJürg Billeter <j@bitron.ch>
Sat, 3 Mar 2007 16:12:34 +0000 (16:12 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sat, 3 Mar 2007 16:12:34 +0000 (16:12 +0000)
2007-03-03  Jürg Billeter  <j@bitron.ch>

* Switch to new construction syntax

svn path=/trunk/; revision=211

111 files changed:
vala/ChangeLog
vala/ccode/valaccodeassignment.vala
vala/ccode/valaccodebinaryexpression.vala
vala/ccode/valaccodecasestatement.vala
vala/ccode/valaccodecastexpression.vala
vala/ccode/valaccodecomment.vala
vala/ccode/valaccodeconditionalexpression.vala
vala/ccode/valaccodeconstant.vala
vala/ccode/valaccodedeclaration.vala
vala/ccode/valaccodedostatement.vala
vala/ccode/valaccodeelementaccess.vala
vala/ccode/valaccodeenum.vala
vala/ccode/valaccodeexpressionstatement.vala
vala/ccode/valaccodeformalparameter.vala
vala/ccode/valaccodeforstatement.vala
vala/ccode/valaccodefunction.vala
vala/ccode/valaccodefunctioncall.vala
vala/ccode/valaccodefunctiondeclarator.vala
vala/ccode/valaccodeidentifier.vala
vala/ccode/valaccodeifstatement.vala
vala/ccode/valaccodeincludedirective.vala
vala/ccode/valaccodelinedirective.vala
vala/ccode/valaccodemacroreplacement.vala
vala/ccode/valaccodememberaccess.vala
vala/ccode/valaccodeoncesection.vala
vala/ccode/valaccodeparenthesizedexpression.vala
vala/ccode/valaccodereturnstatement.vala
vala/ccode/valaccodestruct.vala
vala/ccode/valaccodeswitchstatement.vala
vala/ccode/valaccodetypedefinition.vala
vala/ccode/valaccodeunaryexpression.vala
vala/ccode/valaccodevariabledeclarator.vala
vala/ccode/valaccodewhilestatement.vala
vala/ccode/valaccodewriter.vala
vala/vala/valaarray.vala
vala/vala/valaarraycreationexpression.vala
vala/vala/valaarraylengthfield.vala
vala/vala/valaarrayresizemethod.vala
vala/vala/valaassignment.vala
vala/vala/valaattribute.vala
vala/vala/valabaseaccess.vala
vala/vala/valabinaryexpression.vala
vala/vala/valablock.vala
vala/vala/valabooleanliteral.vala
vala/vala/valabreakstatement.vala
vala/vala/valacallback.vala
vala/vala/valacastexpression.vala
vala/vala/valacharacterliteral.vala
vala/vala/valaclass.vala
vala/vala/valaclassregisterfunction.vala
vala/vala/valacodegenerator.vala
vala/vala/valaconditionalexpression.vala
vala/vala/valaconstant.vala
vala/vala/valaconstructor.vala
vala/vala/valacontinuestatement.vala
vala/vala/valadeclarationstatement.vala
vala/vala/valadestructor.vala
vala/vala/valadostatement.vala
vala/vala/valaelementaccess.vala
vala/vala/valaemptystatement.vala
vala/vala/valaenum.vala
vala/vala/valaenumvalue.vala
vala/vala/valaexpressionstatement.vala
vala/vala/valafield.vala
vala/vala/valaflags.vala
vala/vala/valaflagsvalue.vala
vala/vala/valaforeachstatement.vala
vala/vala/valaformalparameter.vala
vala/vala/valaforstatement.vala
vala/vala/valaifstatement.vala
vala/vala/valainitializerlist.vala
vala/vala/valainstancecast.vala
vala/vala/valaintegerliteral.vala
vala/vala/valainterface.vala
vala/vala/valainterfaceregisterfunction.vala
vala/vala/valainvocationexpression.vala
vala/vala/valalambdaexpression.vala
vala/vala/valaliteralexpression.vala
vala/vala/valalocalvariabledeclaration.vala
vala/vala/valalockstatement.vala
vala/vala/valamemberaccess.vala
vala/vala/valamethod.vala
vala/vala/valanamedargument.vala
vala/vala/valanamespace.vala
vala/vala/valanamespacereference.vala
vala/vala/valanullliteral.vala
vala/vala/valaobjectcreationexpression.vala
vala/vala/valaparenthesizedexpression.vala
vala/vala/valapostfixexpression.vala
vala/vala/valaproperty.vala
vala/vala/valapropertyaccessor.vala
vala/vala/valarealliteral.vala
vala/vala/valareturnstatement.vala
vala/vala/valasemanticanalyzer.vala
vala/vala/valasignal.vala
vala/vala/valasourcefile.vala
vala/vala/valasourcereference.vala
vala/vala/valastringliteral.vala
vala/vala/valastruct.vala
vala/vala/valaswitchlabel.vala
vala/vala/valaswitchsection.vala
vala/vala/valaswitchstatement.vala
vala/vala/valasymbol.vala
vala/vala/valatypecheck.vala
vala/vala/valatypeofexpression.vala
vala/vala/valatypeparameter.vala
vala/vala/valatypereference.vala
vala/vala/valaunaryexpression.vala
vala/vala/valavariabledeclarator.vala
vala/vala/valawhilestatement.vala
vala/vapi/glib-2.0.vala

index 63e96d7..60d8e86 100644 (file)
@@ -1,5 +1,9 @@
 2007-03-03  Jürg Billeter  <j@bitron.ch>
 
+       * Switch to new construction syntax
+
+2007-03-03  Jürg Billeter  <j@bitron.ch>
+
        * vala/parser.y: support new construction syntax
        * vala/valainterfacewriter.vala: write interface with new construction
          syntax
index 1871812..c831f4a 100644 (file)
@@ -41,7 +41,7 @@ public class Vala.CCodeAssignment : CCodeExpression {
         */
        public CCodeExpression right { get; construct; }
        
-       public construct (CCodeExpression l, CCodeExpression r, CCodeAssignmentOperator op = CCodeAssignmentOperator.SIMPLE) {
+       public CCodeAssignment (CCodeExpression l, CCodeExpression r, CCodeAssignmentOperator op = CCodeAssignmentOperator.SIMPLE) {
                left = l;
                operator = op;
                right = r;
index 4326e9d..a6ee854 100644 (file)
@@ -41,7 +41,7 @@ public class Vala.CCodeBinaryExpression : CCodeExpression {
         */
        public CCodeExpression! right { get; set construct; }
        
-       public construct (CCodeBinaryOperator op, CCodeExpression! l, CCodeExpression! r) {
+       public CCodeBinaryExpression (CCodeBinaryOperator op, CCodeExpression! l, CCodeExpression! r) {
                operator = op;
                left = l;
                right = r;
index 0019b45..4cbee4b 100644 (file)
@@ -33,7 +33,7 @@ public class Vala.CCodeCaseStatement : CCodeStatement {
        
        private List<CCodeStatement> statements;
        
-       public construct (CCodeExpression! expr) {
+       public CCodeCaseStatement (CCodeExpression! expr) {
                expression = expr;
        }
        
index 00b630a..e027de8 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeCastExpression : CCodeExpression {
         */
        public string! type_name { get; set construct; }
        
-       public construct (CCodeExpression! expr, string! type) {
+       public CCodeCastExpression (CCodeExpression! expr, string! type) {
                inner = expr;
                type_name = type;
        }
index 6abcd59..b8b0d86 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeComment : CCodeNode {
         */
        public string! text { get; set construct; }
        
-       public construct (string! _text) {
+       public CCodeComment (string! _text) {
                text = _text;
        }
        
index d7cef73..614f5b9 100644 (file)
@@ -41,7 +41,7 @@ public class Vala.CCodeConditionalExpression : CCodeExpression {
         */
        public CCodeExpression! false_expression { get; set construct; }
        
-       public construct (CCodeExpression! cond, CCodeExpression! true_expr, CCodeExpression! false_expr) {
+       public CCodeConditionalExpression (CCodeExpression! cond, CCodeExpression! true_expr, CCodeExpression! false_expr) {
                condition = cond;
                true_expression = true_expr;
                false_expression = false_expr;
index 11048c6..e1a4052 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeConstant : CCodeExpression {
         */
        public string! name { get; set construct; }
        
-       public construct (string! _name) {
+       public CCodeConstant (string! _name) {
                name = _name;
        }
        
index ec185fa..8112a0c 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.CCodeDeclaration : CCodeStatement {
        
        private List<CCodeDeclarator> declarators;
        
-       public construct (string! _type_name) {
+       public CCodeDeclaration (string! _type_name) {
                type_name = _type_name;
        }
        
index b0bc335..4dd2dc1 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeDoStatement : CCodeStatement {
         */
        public CCodeExpression! condition { get; set construct; }
        
-       public construct (CCodeStatement stmt, CCodeExpression! cond) {
+       public CCodeDoStatement (CCodeStatement stmt, CCodeExpression! cond) {
                body = stmt;
                condition = cond;
        }
index 92e871c..38e442a 100644 (file)
@@ -39,7 +39,7 @@ public class Vala.CCodeElementAccess : CCodeExpression {
         */
        public CCodeExpression! index { get; set construct; }
        
-       public construct (CCodeExpression! cont, CCodeExpression! i) {
+       public CCodeElementAccess (CCodeExpression! cont, CCodeExpression! i) {
                container = cont;
                index = i;
        }
index 467ba7e..80b7e78 100644 (file)
@@ -33,7 +33,7 @@ public class Vala.CCodeEnum : CCodeNode {
        
        private List<string> values;
        
-       public construct (string n = null) {
+       public CCodeEnum (string n = null) {
                name = n;
        }
        
index f21fd60..e247a94 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeExpressionStatement : CCodeStatement {
         */
        public CCodeExpression! expression { get; set construct; }
        
-       public construct (CCodeExpression expr) {
+       public CCodeExpressionStatement (CCodeExpression expr) {
                expression = expr;
        }
 
index 5613892..870c9b1 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeFormalParameter : CCodeNode {
         */
        public string! type_name { get; set construct; }
        
-       public construct (string! n, string! type) {
+       public CCodeFormalParameter (string! n, string! type) {
                name = n;
                type_name = type;
        }
index 19a2566..c8ea4e2 100644 (file)
@@ -39,7 +39,7 @@ public class Vala.CCodeForStatement : CCodeStatement {
        private List<CCodeExpression> initializer;
        private List<CCodeExpression> iterator;
        
-       public construct (CCodeExpression! cond, CCodeStatement stmt = null) {
+       public CCodeForStatement (CCodeExpression! cond, CCodeStatement stmt = null) {
                condition = cond;
                body = stmt;
        }
index 599dd61..9b86fa6 100644 (file)
@@ -48,7 +48,7 @@ public class Vala.CCodeFunction : CCodeNode {
 
        private List<CCodeFormalParameter> parameters;
        
-       public construct (string! _name, string! _return_type) {
+       public CCodeFunction (string! _name, string! _return_type) {
                name = _name;
                return_type = _return_type;
        }
index 46332f3..03c7788 100644 (file)
@@ -33,7 +33,7 @@ public class Vala.CCodeFunctionCall : CCodeExpression {
        
        private List<CCodeExpression> arguments;
        
-       public construct (CCodeExpression _call = null) {
+       public CCodeFunctionCall (CCodeExpression _call = null) {
                call = _call;
        }
        
index 1533f8b..cc6ef2e 100644 (file)
@@ -33,7 +33,7 @@ public class Vala.CCodeFunctionDeclarator : CCodeDeclarator {
        
        private List<CCodeFormalParameter> parameters;
        
-       public construct (string! n) {
+       public CCodeFunctionDeclarator (string! n) {
                name = n;
        }
        
index 0390742..495cba4 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeIdentifier : CCodeExpression {
         */
        public string! name { get; set construct; }
        
-       public construct (string! _name) {
+       public CCodeIdentifier (string! _name) {
                name = _name;
        }
        
index 22de9a0..426c590 100644 (file)
@@ -41,7 +41,7 @@ public class Vala.CCodeIfStatement : CCodeStatement {
         */
        public CCodeStatement false_statement { get; set construct; }
        
-       public construct (CCodeExpression! cond, CCodeStatement! true_stmt, CCodeStatement false_stmt = null) {
+       public CCodeIfStatement (CCodeExpression! cond, CCodeStatement! true_stmt, CCodeStatement false_stmt = null) {
                condition = cond;
                true_statement = true_stmt;
                false_statement = false_stmt;
index 2289674..fc25996 100644 (file)
@@ -37,7 +37,7 @@ public class Vala.CCodeIncludeDirective : CCodeNode {
         */
        public bool local { get; set; }
        
-       public construct (string! _filename, bool _local = false) {
+       public CCodeIncludeDirective (string! _filename, bool _local = false) {
                filename = _filename;
                local = _local;
        }
index b563c27..c9d4cb3 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeLineDirective : CCodeNode {
         */
        public int line { get; set; }
        
-       public construct (string! _filename, int _line) {
+       public CCodeLineDirective (string! _filename, int _line) {
                filename = _filename;
                line = _line;
        }
index acdae2e..f6fdb2a 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeMacroReplacement : CCodeNode {
         */
        public string! replacement { get; set construct; }
        
-       public construct (string! n, string! replace) {
+       public CCodeMacroReplacement (string! n, string! replace) {
                name = n;
                replacement = replace;
        }
index bdd919a..9f45f92 100644 (file)
@@ -41,13 +41,13 @@ public class Vala.CCodeMemberAccess : CCodeExpression {
         */
        public bool is_pointer { get; set; }
        
-       public construct (CCodeExpression! container, string! member, bool pointer = false) {
+       public CCodeMemberAccess (CCodeExpression! container, string! member, bool pointer = false) {
                inner = container;
                member_name = member;
                is_pointer = pointer;
        }
        
-       public construct pointer (CCodeExpression! container, string! member) {
+       public CCodeMemberAccess.pointer (CCodeExpression! container, string! member) {
                inner = container;
                member_name = member;
                is_pointer = true;
index b130f23..831e025 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeOnceSection : CCodeFragment {
         */
        public string! define { get; set construct; }
        
-       public construct (string! def) {
+       public CCodeOnceSection (string! def) {
                define = def;
        }
        
index c51a49a..8458d82 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeParenthesizedExpression : CCodeExpression {
         */
        public CCodeExpression! inner { get; set construct; }
        
-       public construct (CCodeExpression! expr) {
+       public CCodeParenthesizedExpression (CCodeExpression! expr) {
                inner = expr;
        }
        
index 97d43fd..192953d 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.CCodeReturnStatement : CCodeStatement {
         */
        public CCodeExpression return_expression { get; set; }
        
-       public construct (CCodeExpression expr = null) {
+       public CCodeReturnStatement (CCodeExpression expr = null) {
                return_expression = expr;
        }
        
index 8c8d2e5..e11d67e 100644 (file)
@@ -33,7 +33,7 @@ public class Vala.CCodeStruct : CCodeNode {
        
        private List<CCodeDeclaration> declarations;
        
-       public construct (string! n) {
+       public CCodeStruct (string! n) {
                name = n;
        }
        
index fe4b929..fb4b49b 100644 (file)
@@ -33,7 +33,7 @@ public class Vala.CCodeSwitchStatement : CCodeStatement {
        
        private List<CCodeCaseStatement> case_statements;
        
-       public construct (CCodeExpression! expr) {
+       public CCodeSwitchStatement (CCodeExpression! expr) {
                expression = expr;
        }
        
index 2fe569b..5ef085b 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeTypeDefinition : CCodeNode {
         */
        public CCodeDeclarator declarator { get; set; }
        
-       public construct (string type, CCodeDeclarator decl) {
+       public CCodeTypeDefinition (string type, CCodeDeclarator decl) {
                type_name = type;
                declarator = decl;
        }
index 12665c4..8e139e3 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeUnaryExpression : CCodeExpression {
         */
        public CCodeExpression! inner { get; set construct; }
        
-       public construct (CCodeUnaryOperator op, CCodeExpression! expr) {
+       public CCodeUnaryExpression (CCodeUnaryOperator op, CCodeExpression! expr) {
                operator = op;
                inner = expr;
        }
index 1653a0d..5a3fc2d 100644 (file)
@@ -36,11 +36,11 @@ public class Vala.CCodeVariableDeclarator : CCodeDeclarator {
         */
        public CCodeExpression initializer { get; set; }
        
-       public construct (string! _name) {
+       public CCodeVariableDeclarator (string! _name) {
                name = _name;
        }
        
-       public construct with_initializer (string! _name, CCodeExpression init) {
+       public CCodeVariableDeclarator.with_initializer (string! _name, CCodeExpression init) {
                name = _name;
                initializer = init;
        }
index d4ac64a..658b771 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.CCodeWhileStatement : CCodeStatement {
         */
        public CCodeStatement body { get; set; }
        
-       public construct (CCodeExpression! cond, CCodeStatement stmt = null) {
+       public CCodeWhileStatement (CCodeExpression! cond, CCodeStatement stmt = null) {
                condition = cond;
                body = stmt;
        }
index e52ea90..89b18cc 100644 (file)
@@ -65,7 +65,7 @@ public class Vala.CCodeWriter {
        /* at begin of line */
        private bool _bol = true;
        
-       public construct (string! _filename) {
+       public CCodeWriter (string! _filename) {
                filename = _filename;
        }
        
index b46c8c3..1c3c203 100644 (file)
@@ -49,7 +49,7 @@ public class Vala.Array : DataType {
        
        private ArrayResizeMethod resize_method;
        
-       public construct (DataType! _element_type, int _rank, SourceReference! _source_reference) {
+       public Array (DataType! _element_type, int _rank, SourceReference! _source_reference) {
                rank = _rank;
                element_type = _element_type;
                source_reference = _source_reference;
@@ -59,7 +59,7 @@ public class Vala.Array : DataType {
                }
        }
        
-       public construct with_type_parameter (TypeParameter! _element_type_parameter, int _rank, SourceReference! _source_reference) {
+       public Array.with_type_parameter (TypeParameter! _element_type_parameter, int _rank, SourceReference! _source_reference) {
                rank = _rank;
                element_type_parameter = _element_type_parameter;
                source_reference = _source_reference;
@@ -69,7 +69,7 @@ public class Vala.Array : DataType {
                }
        }
 
-       Array () {
+       construct {
                /* FIXME: this implementation reveals compiler bugs 
                string commas = "";
                int i = rank - 1;
index efbf2b0..376e03f 100644 (file)
@@ -60,7 +60,7 @@ public class Vala.ArrayCreationExpression : Expression {
                return sizes.copy ();
        }
        
-       public construct (TypeReference _element_type, int _rank, InitializerList _initializer, SourceReference source) {
+       public ArrayCreationExpression (TypeReference _element_type, int _rank, InitializerList _initializer, SourceReference source) {
                element_type = _element_type;
                rank = _rank;
                initializer_list = _initializer;
index 37e3161..5e332c7 100644 (file)
@@ -26,7 +26,7 @@ using GLib;
  * Represents the Array.length field.
  */
 public class Vala.ArrayLengthField : Field {
-       ArrayLengthField () {
+       construct {
                access = MemberAccessibility.PUBLIC;
 
                var root_symbol = source_reference.file.context.get_root ();
@@ -38,7 +38,7 @@ public class Vala.ArrayLengthField : Field {
         *
         * @return newly created field
         */
-       public construct (SourceReference! source) {
+       public ArrayLengthField (SourceReference! source) {
                name = "length";
                type_reference = new TypeReference ();
                source_reference = source;
index fe0915c..d2a5bf5 100644 (file)
@@ -26,7 +26,7 @@ using GLib;
  * Represents the Array.resize method.
  */
 public class Vala.ArrayResizeMethod : Method {
-       ArrayResizeMethod () {
+       construct {
                access = MemberAccessibility.PUBLIC;
 
                set_cname ("g_renew");
@@ -45,7 +45,7 @@ public class Vala.ArrayResizeMethod : Method {
         *
         * @return newly created method
         */
-       public construct (SourceReference! _source_reference) {
+       public ArrayResizeMethod (SourceReference! _source_reference) {
                name = "resize";
                return_type = new TypeReference ();
                source_reference = _source_reference;
index 8b7a2a3..09076a2 100644 (file)
@@ -71,7 +71,7 @@ public class Vala.Assignment : Expression {
         * @param source reference to source code
         * @return newly created assignment
         */
-       public construct (Expression! _left, Expression! _right, AssignmentOperator _op = AssignmentOperator.SIMPLE, SourceReference _source = null) {
+       public Assignment (Expression! _left, Expression! _right, AssignmentOperator _op = AssignmentOperator.SIMPLE, SourceReference _source = null) {
                left = _left;
                operator = _op;
                right = _right;
index 4734468..2978afd 100644 (file)
@@ -43,7 +43,7 @@ public class Vala.Attribute : CodeNode {
         * @param source reference to source code
         * @return newly created attribute
         */
-       public construct (string! _name, SourceReference source) {
+       public Attribute (string! _name, SourceReference source) {
                name = _name;
                source_reference = source;
        }
index 5ef8bd8..3530e89 100644 (file)
@@ -32,7 +32,7 @@ public class Vala.BaseAccess : Expression {
         * @param source reference to source code
         * @return       newly created base access expression
         */
-       public construct (SourceReference source = null) {
+       public BaseAccess (SourceReference source = null) {
                source_reference = source;
        }
        
index ef84a64..e7853c9 100644 (file)
@@ -71,7 +71,7 @@ public class Vala.BinaryExpression : Expression {
         * @param source reference to source code
         * @return       newly created binary expression
         */
-       public construct (BinaryOperator op, Expression! _left, Expression! _right, SourceReference source = null) {
+       public BinaryExpression (BinaryOperator op, Expression! _left, Expression! _right, SourceReference source = null) {
                operator = op;
                left = _left;
                right = _right;
index 84a7845..f25da4b 100644 (file)
@@ -40,7 +40,7 @@ public class Vala.Block : Statement {
         *
         * @param source reference to source code
         */
-       public construct (SourceReference source = null) {
+       public Block (SourceReference source = null) {
                source_reference = source;
        }
        
index 711867b..9d10994 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.BooleanLiteral : Literal {
         * @param source reference to source code
         * @return       newly created boolean literal
         */
-       public construct (bool b, SourceReference source) {
+       public BooleanLiteral (bool b, SourceReference source) {
                value = b;
                source_reference = source;
        }
index 3897e3b..25f91b8 100644 (file)
@@ -32,7 +32,7 @@ public class Vala.BreakStatement : Statement {
         * @param source reference to source code
         * @return       newly created break statement
         */
-       public construct (SourceReference source) {
+       public BreakStatement (SourceReference source) {
                source_reference = source;
        }
        
index feafc65..2242e83 100644 (file)
@@ -51,7 +51,7 @@ public class Vala.Callback : DataType {
         * @param source      reference to source code
         * @return            newly created callback
         */
-       public construct (string _name, TypeReference _return_type, SourceReference source = null) {
+       public Callback (string _name, TypeReference _return_type, SourceReference source = null) {
                name = _name;
                return_type = _return_type;
                source_reference = source;
index 50f3682..8900ed9 100644 (file)
@@ -53,7 +53,7 @@ public class Vala.CastExpression : Expression {
         * @param type  target type
         * @return      newly created cast expression
         */
-       public construct (Expression! _inner, TypeReference! type, SourceReference source) {
+       public CastExpression (Expression! _inner, TypeReference! type, SourceReference source) {
                inner = _inner;
                type_reference = type;
                source_reference = source;
index 015599a..e05fea6 100644 (file)
@@ -51,7 +51,7 @@ public class Vala.CharacterLiteral : Literal {
         * @param source reference to source code
         * @return       newly created character literal
         */
-       public construct (string! c, SourceReference source) {
+       public CharacterLiteral (string! c, SourceReference source) {
                value = c;
                source_reference = source;
 
index c4e56cf..e65fd7a 100644 (file)
@@ -84,7 +84,7 @@ public class Vala.Class : DataType {
         * @param source reference to source code
         * @return       newly created class
         */
-       public construct (string! _name, SourceReference source = null) {
+       public Class (string! _name, SourceReference source = null) {
                name = _name;
                source_reference = source;
        }
index ca3424c..0b29300 100644 (file)
@@ -37,7 +37,7 @@ public class Vala.ClassRegisterFunction : TypeRegisterFunction {
         * @param cl a class
         * @return   newly created class register function
         */
-       public construct (Class! cl) {
+       public ClassRegisterFunction (Class! cl) {
                class_reference = cl;
        }
        
index 6188b4d..da80b3d 100644 (file)
@@ -90,7 +90,7 @@ public class Vala.CodeGenerator : CodeVisitor {
        DataType slist_type;
        TypeReference mutex_type;
        
-       public construct (bool manage_memory = true) {
+       public CodeGenerator (bool manage_memory = true) {
                memory_management = manage_memory;
                
                predefined_marshal_list = new HashTable (str_hash, str_equal);
index 69d9c48..92590df 100644 (file)
@@ -49,7 +49,7 @@ public class Vala.ConditionalExpression : Expression {
         * @param false_expr expression to be evaluated if condition is false
         * @return           newly created conditional expression
         */
-       public construct (Expression! cond, Expression! true_expr, Expression! false_expr, SourceReference source) {
+       public ConditionalExpression (Expression! cond, Expression! true_expr, Expression! false_expr, SourceReference source) {
                condition = cond;
                true_expression = true_expr;
                false_expression = false_expr;
index 868b11a..88a9b40 100644 (file)
@@ -62,7 +62,7 @@ public class Vala.Constant : Member, Lockable {
         * @param source reference to source code
         * @return       newly created constant
         */
-       public construct (string! _name, TypeReference! type, Expression init, SourceReference source) {
+       public Constant (string! _name, TypeReference! type, Expression init, SourceReference source) {
                name = _name;
                type_reference = type;
                initializer = init;
index 4c6c750..21c164a 100644 (file)
@@ -51,7 +51,7 @@ public class Vala.Constructor : CodeNode {
         * @param source reference to source code
         * @return       newly created constructor
         */
-       public construct (SourceReference source) {
+       public Constructor (SourceReference source) {
                source_reference = source;
        }
        
index 6ba6eee..da0f0d5 100644 (file)
@@ -32,7 +32,7 @@ public class Vala.ContinueStatement : Statement {
         * @param source reference to source code
         * @return       newly created continue statement
         */
-       public construct (SourceReference source) {
+       public ContinueStatement (SourceReference source) {
                source_reference = source;
        }
        
index 067d5bf..44b5172 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.DeclarationStatement : Statement {
         * @param source reference to source code
         * @return       newly created declaration statement
         */
-       public construct (LocalVariableDeclaration! decl, SourceReference source) {
+       public DeclarationStatement (LocalVariableDeclaration! decl, SourceReference source) {
                declaration = decl;
                source_reference = source;
        }
index 9547714..726639f 100644 (file)
@@ -51,7 +51,7 @@ public class Vala.Destructor : CodeNode {
         * @param source reference to source code
         * @return       newly created destructor
         */
-       public construct (SourceReference source) {
+       public Destructor (SourceReference source) {
                source_reference = source;
        }
        
index fafbfd8..92ea9e9 100644 (file)
@@ -54,7 +54,7 @@ public class Vala.DoStatement : Statement {
         * @param source reference to source code
         * @return       newly created do statement
         */
-       public construct (Statement! _body, Expression! cond, SourceReference source) {
+       public DoStatement (Statement! _body, Expression! cond, SourceReference source) {
                body = _body;
                condition = cond;
                source_reference = source;
index f483bba..6b2825a 100644 (file)
@@ -44,7 +44,7 @@ public class Vala.ElementAccess : Expression {
                return indices.copy ();
        }
        
-       public construct (Expression _container, SourceReference source) {
+       public ElementAccess (Expression _container, SourceReference source) {
                container = _container;
                source_reference = source;
        }
index e35d86b..9dd75fe 100644 (file)
@@ -32,7 +32,7 @@ public class Vala.EmptyStatement : Statement {
         * @param source reference to source code
         * @return       newly created empty statement
         */
-       public construct (SourceReference source) {
+       public EmptyStatement (SourceReference source) {
                source_reference = source;
        }
        
index c994df2..67acaa2 100644 (file)
@@ -37,7 +37,7 @@ public class Vala.Enum : DataType {
         * @param source reference to source code
         * @return       newly created enum
         */
-       public construct (string! _name, SourceReference source = null) {
+       public Enum (string! _name, SourceReference source = null) {
                name = _name;
                source_reference = source;
        }
index 60ce091..740983e 100644 (file)
@@ -44,7 +44,7 @@ public class Vala.EnumValue : CodeNode {
         * @param name enum value name
         * @return     newly created enum value
         */
-       public construct (string! _name) {
+       public EnumValue (string! _name) {
                name = _name;
        }
 
@@ -55,7 +55,7 @@ public class Vala.EnumValue : CodeNode {
         * @param value numerical representation
         * @return      newly created enum value
         */
-       public construct with_value (string! _name, Expression _value) {
+       public EnumValue.with_value (string! _name, Expression _value) {
                name = _name;
                value = _value;
        }
index 8084670..472ec19 100644 (file)
@@ -49,7 +49,7 @@ public class Vala.ExpressionStatement : Statement {
         * @param source reference to source code
         * @return       newly created expression statement
         */
-       public construct (Expression! expr, SourceReference source = null) {
+       public ExpressionStatement (Expression! expr, SourceReference source = null) {
                expression = expr;
                source_reference = source;
        }
index ad82882..50168bf 100644 (file)
@@ -82,7 +82,7 @@ public class Vala.Field : Member, Invokable, Lockable {
         * @param source reference to source code
         * @return       newly created field
         */
-       public construct (string! _name, TypeReference! type, Expression init, SourceReference source) {
+       public Field (string! _name, TypeReference! type, Expression init, SourceReference source) {
                name = _name;
                type_reference = type;
                initializer = init;
index 940e345..8fb12e6 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.Flags : DataType {
         * @param source reference to source code
         * @return       newly created flags
         */
-       public construct (string! _name, SourceReference source) {
+       public Flags (string! _name, SourceReference source) {
                name = _name;
                source_reference = source;
        }
index 117c44d..232bc32 100644 (file)
@@ -44,7 +44,7 @@ public class Vala.FlagsValue : CodeNode {
         * @param name  flags value name
         * @return      newly created flags value
         */
-       public construct (string! _name) {
+       public FlagsValue (string! _name) {
                name = _name;
        }
 
@@ -56,7 +56,7 @@ public class Vala.FlagsValue : CodeNode {
         * @param value numerical representation
         * @return      newly created flags value
         */
-       public construct with_value (string! _name, Expression _value) {
+       public FlagsValue.with_value (string! _name, Expression _value) {
                name = _name;
                value = _value;
        }
index 926ee96..f4ec9a9 100644 (file)
@@ -71,7 +71,7 @@ public class Vala.ForeachStatement : Statement {
         * @param source reference to source code
         * @return       newly created foreach statement
         */
-       public construct (TypeReference! type, string! id, Expression! col, Statement _body, SourceReference source) {
+       public ForeachStatement (TypeReference! type, string! id, Expression! col, Statement _body, SourceReference source) {
                type_reference = type;
                variable_name = id;
                collection = col;
index 0842a2b..9bdf96e 100644 (file)
@@ -62,7 +62,7 @@ public class Vala.FormalParameter : CodeNode, Invokable {
         * @param source reference to source code
         * @return       newly created formal parameter
         */
-       public construct (string! _name, TypeReference type, SourceReference source = null) {
+       public FormalParameter (string! _name, TypeReference type, SourceReference source = null) {
                name = _name;
                type_reference = type;
                source_reference = source;
@@ -72,7 +72,7 @@ public class Vala.FormalParameter : CodeNode, Invokable {
         * Creates a new ellipsis parameter representing an indefinite number of
         * parameters.
         */
-       public construct with_ellipsis (SourceReference source = null) {
+       public FormalParameter.with_ellipsis (SourceReference source = null) {
                ellipsis = true;
                source_reference = source;
        }
index 9657843..69d56f3 100644 (file)
@@ -57,7 +57,7 @@ public class Vala.ForStatement : Statement {
         * @param source reference to source code
         * @return       newly created for statement
         */
-       public construct (Expression cond, Statement _body, SourceReference source) {
+       public ForStatement (Expression cond, Statement _body, SourceReference source) {
                condition = cond;
                body = _body;
                source_reference = source;
index 68f9248..2912db8 100644 (file)
@@ -59,7 +59,7 @@ public class Vala.IfStatement : Statement {
         * @param false_stmt statement to be evaluated if condition is false
         * @return           newly created if statement
         */
-       public construct (Expression! cond, Block! true_stmt, Block false_stmt, SourceReference source) {
+       public IfStatement (Expression! cond, Block! true_stmt, Block false_stmt, SourceReference source) {
                condition = cond;
                true_statement = true_stmt;
                false_statement = false_stmt;
index c82f94c..b20528b 100644 (file)
@@ -52,7 +52,7 @@ public class Vala.InitializerList : Expression {
         * @param source reference to source code
         * @return       newly created initializer list
         */
-       public construct (SourceReference source) {
+       public InitializerList (SourceReference source) {
                source_reference = source;
        }
        
index 7d1ec9b..f154ce9 100644 (file)
@@ -43,12 +43,12 @@ public class Vala.InstanceCast : CCodeFunctionCall {
         * @param type the target type
         * @return     newly created instance cast expression
         */
-       public construct (CCodeExpression! expr, DataType! type) {
+       public InstanceCast (CCodeExpression! expr, DataType! type) {
                inner = expr;
                type_reference = type;
        }
        
-       InstanceCast () {
+       construct {
                call = new CCodeIdentifier (type_reference.get_upper_case_cname (null));
                add_argument ((CCodeExpression) inner);
        }
index 99ddfd2..671381f 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.IntegerLiteral : Literal {
         * @param source reference to source code
         * @return       newly created integer literal
         */
-       public construct (string! i, SourceReference source = null) {
+       public IntegerLiteral (string! i, SourceReference source = null) {
                value = i;
                source_reference = source;
        }
index 71f0875..10079a0 100644 (file)
@@ -46,7 +46,7 @@ public class Vala.Interface : DataType {
         * @param source reference to source code
         * @return       newly created interface
         */
-       public construct (string! _name, SourceReference source = null) {
+       public Interface (string! _name, SourceReference source = null) {
                name = _name;
                source_reference = source;
        }
index f78dfe5..2c9de10 100644 (file)
@@ -31,7 +31,7 @@ public class Vala.InterfaceRegisterFunction : TypeRegisterFunction {
         */
        public Interface! interface_reference { get; set construct; }
        
-       public construct (Interface! iface) {
+       public InterfaceRegisterFunction (Interface! iface) {
                interface_reference = iface;
        }
        
index f88e33a..fafa375 100644 (file)
@@ -50,7 +50,7 @@ public class Vala.InvocationExpression : Expression {
         * @param source reference to source code
         * @return       newly created invocation expression
         */
-       public construct (Expression! _call, SourceReference source = null) {
+       public InvocationExpression (Expression! _call, SourceReference source = null) {
                call = _call;
                source_reference = source;
        }
index 587627e..03dbae6 100644 (file)
@@ -53,7 +53,7 @@ public class Vala.LambdaExpression : Expression {
         * @param source reference to source code
         * @return       newly created lambda expression
         */
-       public construct (Expression! body, SourceReference source) {
+       public LambdaExpression (Expression! body, SourceReference source) {
                expression_body = body;
                source_reference = source;
        }
@@ -65,7 +65,7 @@ public class Vala.LambdaExpression : Expression {
         * @param source reference to source code
         * @return       newly created lambda expression
         */
-       public construct with_statement_body (Block! body, SourceReference source) {
+       public LambdaExpression.with_statement_body (Block! body, SourceReference source) {
                statement_body = body;
                source_reference = source;
        }
index 0d8f935..af96424 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.LiteralExpression : Expression {
         * @param source  reference to source code
         * @return        newly created literal expression
         */
-       public construct (Literal! _literal, SourceReference source = null) {
+       public LiteralExpression (Literal! _literal, SourceReference source = null) {
                literal = _literal;
                source_reference = source;
        }
index 0f3bd31..acf9427 100644 (file)
@@ -40,7 +40,7 @@ public class Vala.LocalVariableDeclaration : CodeNode {
         * @param source reference to source code
         * @return       newly created local variable declaration
         */
-       public construct (TypeReference type, SourceReference source) {
+       public LocalVariableDeclaration (TypeReference type, SourceReference source) {
                type_reference = type;
                source_reference = source;
        }
@@ -53,7 +53,7 @@ public class Vala.LocalVariableDeclaration : CodeNode {
         * @param source reference to source code
         * @return       newly created local variable declaration
         */
-       public construct var_type (SourceReference source) {
+       public LocalVariableDeclaration.var_type (SourceReference source) {
                source_reference = source;
        }
        
index 2fc537a..775725e 100644 (file)
@@ -36,7 +36,7 @@ public class Vala.LockStatement : Statement {
         */
        public Statement! body { get; set construct; }
        
-       public construct (Expression _resource, Statement _body, SourceReference source) {
+       public LockStatement (Expression _resource, Statement _body, SourceReference source) {
                resource = _resource;
                body = _body;
                source_reference = source;
index 5de2b59..30aff0a 100644 (file)
@@ -57,13 +57,13 @@ public class Vala.MemberAccess : Expression {
         * @param source reference to source code
         * @return       newly created member access expression
         */
-       public construct (Expression _inner, string! member, SourceReference source = null) {
+       public MemberAccess (Expression _inner, string! member, SourceReference source = null) {
                inner = _inner;
                member_name = member;
                source_reference = source;
        }
 
-       public construct simple (string! member, SourceReference source = null) {
+       public MemberAccess.simple (string! member, SourceReference source = null) {
                member_name = member;
                source_reference = source;
        }
index 3cb8d59..c2ffdb7 100644 (file)
@@ -153,7 +153,7 @@ public class Vala.Method : Member, Invokable {
         * @param source      reference to source code
         * @return            newly created method
         */
-       public construct (string _name, TypeReference _return_type, SourceReference source = null) {
+       public Method (string _name, TypeReference _return_type, SourceReference source = null) {
                name = _name;
                return_type = _return_type;
                source_reference = source;
index ad9118b..cb7012d 100644 (file)
@@ -45,7 +45,7 @@ public class Vala.NamedArgument : CodeNode {
         * @param source reference to source code
         * @return       newly created named argument
         */
-       public construct (string! _name, Expression! arg, SourceReference source) {
+       public NamedArgument (string! _name, Expression! arg, SourceReference source) {
                name = _name;
                argument = arg;
                source_reference = source;
index bba4513..76fc7e3 100644 (file)
@@ -53,7 +53,7 @@ public class Vala.Namespace : CodeNode {
         * @param source reference to source code
         * @return       newly created namespace
         */
-       public construct (string _name, SourceReference source = null) {
+       public Namespace (string _name, SourceReference source = null) {
                name = _name;
                source_reference = source;
        }
index 572f05a..6b78b81 100644 (file)
@@ -43,7 +43,7 @@ public class Vala.NamespaceReference : CodeNode {
         * @param source reference to source code
         * @return       newly created namespace reference
         */
-       public construct (string! _name, SourceReference source) {
+       public NamespaceReference (string! _name, SourceReference source) {
                name = _name;
                source_reference = source;
        }
index e0180f1..0356d01 100644 (file)
@@ -32,7 +32,7 @@ public class Vala.NullLiteral : Literal {
         * @param source reference to source code
         * @return       newly created null literal
         */
-       public construct (SourceReference source = null) {
+       public NullLiteral (SourceReference source = null) {
                source_reference = source;
        }
        
index ee75b38..589ec8f 100644 (file)
@@ -52,7 +52,7 @@ public class Vala.ObjectCreationExpression : Expression {
         * @param source reference to source code
         * @return       newly created object creation expression
         */
-       public construct (MemberAccess! name, SourceReference source) {
+       public ObjectCreationExpression (MemberAccess! name, SourceReference source) {
                member_name = name;
                source_reference = source;
        }
index 7743ab2..e266626 100644 (file)
@@ -48,7 +48,7 @@ public class Vala.ParenthesizedExpression : Expression {
         * @param source reference to source code
         * @return       newly created parenthesized expression
         */
-       public construct (Expression! _inner, SourceReference source) {
+       public ParenthesizedExpression (Expression! _inner, SourceReference source) {
                inner = _inner;
                source_reference = source;
        }
index c41afef..66ecbb7 100644 (file)
@@ -44,7 +44,7 @@ public class Vala.PostfixExpression : Expression {
         * @param source reference to source code
         * @return newly created postfix expression
         */
-       public construct (Expression! _inner, bool inc, SourceReference source) {
+       public PostfixExpression (Expression! _inner, bool inc, SourceReference source) {
                inner = _inner;
                increment = inc;
                source_reference = source;
index da3fe98..4d1c759 100644 (file)
@@ -83,7 +83,7 @@ public class Vala.Property : Member, Lockable {
         * @param source       reference to source code
         * @return             newly created property
         */
-       public construct (string! _name, TypeReference! type, PropertyAccessor _get_accessor, PropertyAccessor _set_accessor, SourceReference source) {
+       public Property (string! _name, TypeReference! type, PropertyAccessor _get_accessor, PropertyAccessor _set_accessor, SourceReference source) {
                name = _name;
                type_reference = type;
                get_accessor = _get_accessor;
index 457aa2e..3177aa5 100644 (file)
@@ -62,7 +62,7 @@ public class Vala.PropertyAccessor : CodeNode {
         * @param source       reference to source code
         * @return             newly created property accessor
         */
-       public construct (bool _readable, bool _writable, bool _construction, Statement _body, SourceReference source) {
+       public PropertyAccessor (bool _readable, bool _writable, bool _construction, Statement _body, SourceReference source) {
                readable = _readable;
                writable = _writable;
                construction = _construction;
index bb10b12..a85cf20 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.RealLiteral : Literal {
         * @param source reference to source code
         * @return       newly created real literal
         */
-       public construct (string r, SourceReference source) {
+       public RealLiteral (string r, SourceReference source) {
                value = r;
                source_reference = source;
        }
index d80d353..52e7b08 100644 (file)
@@ -50,7 +50,7 @@ public class Vala.ReturnStatement : Statement {
         * @param source reference to source code
         * @return       newly created return statement
         */
-       public construct (Expression result = null, SourceReference source = null) {
+       public ReturnStatement (Expression result = null, SourceReference source = null) {
                return_expression = result;
                source_reference = source;
        }
index 3a7d1f5..df0e79a 100644 (file)
@@ -50,7 +50,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
 
        private int next_lambda_id = 0;
        
-       public construct (bool manage_memory = true) {
+       public SemanticAnalyzer (bool manage_memory = true) {
                memory_management = manage_memory;
        }
        
index 93c4564..fc836e0 100644 (file)
@@ -62,7 +62,7 @@ public class Vala.Signal : Member, Invokable, Lockable {
         * @param source      reference to source code
         * @return            newly created signal
         */
-       public construct (string! _name, TypeReference! _return_type, SourceReference source) {
+       public Signal (string! _name, TypeReference! _return_type, SourceReference source) {
                name = _name;
                return_type = _return_type;
                source_reference = source;
index 4c4170e..733ba48 100644 (file)
@@ -92,13 +92,13 @@ public class Vala.SourceFile {
         * @param pkg      true if this is a VAPI package file
         * @return         newly created source file
         */
-       public construct (CodeContext! _context, string! _filename, bool _pkg =  false) {
+       public SourceFile (CodeContext! _context, string! _filename, bool _pkg =  false) {
                context = _context;
                filename = _filename;
                pkg = _pkg;
        }
        
-       SourceFile () {
+       construct {
                global_namespace = new Namespace (null, new SourceReference (this));
        }
        
index a65257b..8bc2f2d 100644 (file)
@@ -64,7 +64,7 @@ public class Vala.SourceReference {
         * @param last_column  last column number
         * @return             newly created source reference
         */
-       public construct (SourceFile _file, int _first_line = 0, int _first_column = 0, int _last_line = 0, int _last_column = 0) {
+       public SourceReference (SourceFile _file, int _first_line = 0, int _first_column = 0, int _last_line = 0, int _last_column = 0) {
                file = _file;
                first_line = _first_line;
                first_column = _first_column;
@@ -83,7 +83,7 @@ public class Vala.SourceReference {
         * @param comment      code comment
         * @return             newly created source reference
         */
-       public construct with_comment (SourceFile _file, int _first_line, int _first_column, int _last_line, int _last_column, string _comment) {
+       public SourceReference.with_comment (SourceFile _file, int _first_line, int _first_column, int _last_line, int _last_column, string _comment) {
                file = _file;
                first_line = _first_line;
                first_column = _first_column;
index 68588e9..8248591 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.StringLiteral : Literal {
         * @param source reference to source code
         * @return       newly created string literal
         */
-       public construct (string s, SourceReference source) {
+       public StringLiteral (string s, SourceReference source) {
                value = s;
                source_reference = source;
        }
index 07f7bdb..3c0dfb7 100644 (file)
@@ -60,7 +60,7 @@ public class Vala.Struct : DataType {
         * @param source reference to source code
         * @return       newly created struct
         */
-       public construct (string! _name, SourceReference source = null) {
+       public Struct (string! _name, SourceReference source = null) {
                name = _name;
                source_reference = source;
        }
index 8a0141f..6a2e5f9 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.SwitchLabel : CodeNode {
         * @param source reference to source code
         * @return       newly created switch case label
         */
-       public construct (Expression expr, SourceReference source = null) {
+       public SwitchLabel (Expression expr, SourceReference source = null) {
                expression = expr;
                source_reference = source;
        }
@@ -49,7 +49,7 @@ public class Vala.SwitchLabel : CodeNode {
         * @param source reference to source code
         * @return       newly created switch default label
         */
-       public construct with_default (SourceReference source = null) {
+       public SwitchLabel.with_default (SourceReference source = null) {
                source_reference = source;
        }
        
index b14f9fa..0bb6fa7 100644 (file)
@@ -35,7 +35,7 @@ public class Vala.SwitchSection : CodeNode {
         * @param source reference to source code
         * @return       newly created switch section
         */
-       public construct (SourceReference source) {
+       public SwitchSection (SourceReference source) {
                source_reference = source;
        }
        
index 3c0a341..cf7edc6 100644 (file)
@@ -49,7 +49,7 @@ public class Vala.SwitchStatement : Statement {
         * @param source reference to source code
         * @return       newly created switch statement
         */
-       public construct (Expression! expr, SourceReference source) {
+       public SwitchStatement (Expression! expr, SourceReference source) {
                expression = expr;
                source_reference = source;
        }
index 6d06366..d93eff7 100644 (file)
@@ -59,11 +59,11 @@ public class Vala.Symbol {
         * @param node the corresponding code node
         * @return     newly created symbol
         */
-       public construct (CodeNode _node = null)  {
+       public Symbol (CodeNode _node = null)  {
                node = _node;
        }
        
-       Symbol () {
+       construct {
                active = true;
        }
        
index 558f9b9..bb9f605 100644 (file)
@@ -44,7 +44,7 @@ public class Vala.TypeCheck : Expression {
         * @param source reference to source code
         * @return       newly created type check expression
         */     
-       public construct (Expression! expr, TypeReference! type, SourceReference source) {
+       public TypeCheck (Expression! expr, TypeReference! type, SourceReference source) {
                expression = expr;
                type_reference = type;
                source_reference = source;
index 7151000..9589a54 100644 (file)
@@ -38,7 +38,7 @@ public class Vala.TypeofExpression : Expression {
         * @param source reference to source code
         * @return       newly created typeof expression
         */
-       public construct (TypeReference! type, SourceReference source) {
+       public TypeofExpression (TypeReference! type, SourceReference source) {
                type_reference = type;
                source_reference = source;
        }
index 83dc39e..46d1f35 100644 (file)
@@ -47,7 +47,7 @@ public class Vala.TypeParameter : CodeNode {
         * @param source reference to source code
         * @return       newly created generic type parameter
         */     
-       public construct (string! _name, SourceReference source) {
+       public TypeParameter (string! _name, SourceReference source) {
                name = _name;
                source_reference = source;
        }
index fba60fd..8264f2b 100644 (file)
@@ -103,7 +103,7 @@ public class Vala.TypeReference : CodeNode {
 
        private List<TypeReference> type_argument_list;
        
-       public construct () {
+       public TypeReference () {
        }
 
        /**
@@ -114,7 +114,7 @@ public class Vala.TypeReference : CodeNode {
         * @param source    reference to source code
         * @return          newly created type reference
         */
-       public construct from_name (string ns, string! type, SourceReference source = null) {
+       public TypeReference.from_name (string ns, string! type, SourceReference source = null) {
                namespace_name = ns;
                type_name = type;
                source_reference = source;
index 01daa6f..2ecf8a2 100644 (file)
@@ -56,7 +56,7 @@ public class Vala.UnaryExpression : Expression {
         * @param source reference to source code
         * @return       newly created binary expression
         */
-       public construct (UnaryOperator op, Expression! _inner, SourceReference source) {
+       public UnaryExpression (UnaryOperator op, Expression! _inner, SourceReference source) {
                operator = op;
                inner = _inner;
                source_reference = source;
index 945c2d0..a0a134c 100644 (file)
@@ -61,7 +61,7 @@ public class Vala.VariableDeclarator : CodeNode, Invokable {
         * @param source reference to source code
         * @return       newly created variable declarator
         */
-       public construct (string! _name, Expression init = null, SourceReference source = null) {
+       public VariableDeclarator (string! _name, Expression init = null, SourceReference source = null) {
                name = _name;
                initializer = init;
                source_reference = source;
index eee5776..ea22ea8 100644 (file)
@@ -54,7 +54,7 @@ public class Vala.WhileStatement : Statement {
         * @param source reference to source code
         * @return       newly created while statement
         */
-       public construct (Expression! cond, Statement! _body, SourceReference source) {
+       public WhileStatement (Expression! cond, Statement! _body, SourceReference source) {
                condition = cond;
                body = _body;
                source_reference = source;
index 1cd1fec..a2d4df8 100644 (file)
@@ -321,7 +321,7 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_main_loop_ref", free_function = "g_main_loop_unref")]
        public struct MainLoop {
-               public construct (MainContext context, bool is_running);
+               public MainLoop (MainContext context, bool is_running);
                public void run ();
                public void quit ();
                public bool is_running ();
@@ -338,7 +338,7 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_main_context_ref", free_function = "g_main_context_unref")]
        public struct MainContext {
-               public construct ();
+               public MainContext ();
                public static MainContext @default ();
                public bool iteration (bool may_block);
                public bool pending ();
@@ -366,7 +366,7 @@ namespace GLib {
        public callback int PollFunc (PollFD[] ufds, uint nfsd, int timeout_);
        
        public struct TimeoutSource : Source {
-               public construct (uint interval);
+               public TimeoutSource (uint interval);
        }
 
        public struct Timeout {
@@ -376,7 +376,7 @@ namespace GLib {
        
        [ReferenceType ()]
        public struct IdleSource : Source {
-               public construct ();
+               public IdleSource ();
        }
 
        public struct Idle {
@@ -392,7 +392,7 @@ namespace GLib {
        
        [ReferenceType ()]
        public struct ChildWatchSource : Source {
-               public construct (Pid pid, int status, pointer data);
+               public ChildWatchSource (Pid pid, int status, pointer data);
        }
        
        public struct ChildWatch {
@@ -408,7 +408,7 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_source_ref", free_function = "g_source_unref")]
        public struct Source {
-               public construct (SourceFuncs source_funcs);
+               public Source (SourceFuncs source_funcs);
                public void set_funcs (SourceFuncs funcs);
                public uint attach (MainContext context);
                public void destroy ();
@@ -491,7 +491,7 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_mutex_free")]
        public struct Mutex {
-               public construct ();
+               public Mutex ();
                public void @lock ();
                public bool try_lock ();
                public void unlock ();
@@ -499,7 +499,7 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_cond_free")]
        public struct Cond {
-               public construct ();
+               public Cond ();
                public void @signal ();
                public void broadcast ();
                public void wait (Mutex mutex);
@@ -510,7 +510,7 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_thread_pool_free")]
        public struct ThreadPool {
-               public construct (Func func, pointer user_data, int max_threads, bool exclusive, out Error error);
+               public ThreadPool (Func func, pointer user_data, int max_threads, bool exclusive, out Error error);
                public void push (pointer data, out Error error);
                public void set_max_threads (int max_threads, out Error error);
                public int get_max_threads ();
@@ -529,7 +529,7 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_async_queue_ref", free_function = "g_async_queue_unref")]
        public struct AsyncQueue {
-               public construct ();
+               public AsyncQueue ();
                public void push (pointer data);
                public void push_sorted (pointer data, CompareDataFunc func, pointer user_data);
                public pointer pop ();
@@ -586,7 +586,7 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_io_channel_ref", free_function = "g_io_channel_unref")]
        public struct IOChannel {
-               public construct file (string! filename, string! mode, out Error error);
+               public IOChannel file (string! filename, string! mode, out Error error);
                public IOStatus read_chars (string! buf, ulong count, ref ulong bytes_read, out Error error);
                public IOStatus read_unichar (ref unichar thechar, out Error error);
                public IOStatus read_line (out string str_return, ref ulong length, ref ulong terminator_pos, out Error error);
@@ -707,10 +707,10 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_rand_copy", free_function = "g_rand_free")]
        public struct Rand {
-               public construct with_seed (uint32 seed);
+               public Rand.with_seed (uint32 seed);
                [NoArrayLength ()]
-               public construct with_seed_array (uint32[] seed, uint seed_length);
-               public construct ();
+               public Rand.with_seed_array (uint32[] seed, uint seed_length);
+               public Rand ();
                public void set_seed (uint32 seed);
                [NoArrayLength ()]
                public void set_seed_array (uint32[] seed, uint seed_length);
@@ -874,7 +874,7 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_mapped_file_free")]
        public struct MappedFile {
-               public construct (string filename, bool writable, out Error error);
+               public MappedFile (string filename, bool writable, out Error error);
                public void free ();
                public long get_length ();
                public char[] get_contents ();
@@ -898,7 +898,7 @@ namespace GLib {
 
        [ReferenceType (free_function = "g_option_context_free")]
        public struct OptionContext {
-               public construct (string parameter_string);
+               public OptionContext (string parameter_string);
                public bool parse (out string[] argv, out Error error);
                public void set_help_enabled (bool help_enabled);
                [NoArrayLength ()]
@@ -950,7 +950,7 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_markup_parse_context_free")]
        public struct MarkupParseContext {
-               public construct (MarkupParser parser, MarkupParseFlags _flags, pointer user_data, DestroyNotify user_data_dnotify);
+               public MarkupParseContext (MarkupParser parser, MarkupParseFlags _flags, pointer user_data, DestroyNotify user_data_dnotify);
                public bool parse (string text, long text_len, out Error error);
        }
        
@@ -978,7 +978,7 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_key_file_free")]
        public struct KeyFile {
-               public construct ();
+               public KeyFile ();
                public void set_list_separator (char separator);
                public bool load_from_file (string! file, KeyFileFlags @flags, out Error error);
                public bool load_from_data (string! data, ulong length, KeyFileFlags @flags, out Error error);
@@ -1130,7 +1130,7 @@ namespace GLib {
                public List<G> tail;
                public uint length;
        
-               public construct ();
+               public Queue ();
                
                public bool is_empty ();
                public uint get_length ();
@@ -1160,8 +1160,8 @@ namespace GLib {
        
        [ReferenceType (dup_function = "g_hash_table_ref", free_function = "g_hash_table_unref")]
        public struct HashTable<K,V> {
-               public construct (HashFunc hash_func, EqualFunc key_equal_func);
-               public construct full (HashFunc hash_func, EqualFunc key_equal_func, DestroyNotify key_destroy_func, DestroyNotify value_destroy_func);
+               public HashTable (HashFunc hash_func, EqualFunc key_equal_func);
+               public HashTable.full (HashFunc hash_func, EqualFunc key_equal_func, DestroyNotify key_destroy_func, DestroyNotify value_destroy_func);
                public void insert (ref K key, ref V value);
                public void replace (ref K key, ref V value);
                public V lookup (K key);
@@ -1193,9 +1193,9 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_string_free")]
        public struct String {
-               public construct (string init = "");
+               public String (string init = "");
                [CCode (cname = "g_string_sized_new")]
-               public construct sized (ulong dfl_size);
+               public String.sized (ulong dfl_size);
                public String assign (string! rval);
                public String append (string! val);
                public String append_c (char c);
@@ -1230,9 +1230,9 @@ namespace GLib {
        
        [ReferenceType ()]
        public struct Array<G> {
-               public construct (bool zero_terminated, bool clear, uint element_size);
+               public Array (bool zero_terminated, bool clear, uint element_size);
                [CCode (cname = "g_array_sized_new")]
-               public construct sized (bool zero_terminated, bool clear, uint element_size, uint reserved_size);
+               public Array.sized (bool zero_terminated, bool clear, uint element_size, uint reserved_size);
                [ReturnsModifiedPointer ()]
                public void append_val (G value);
                [ReturnsModifiedPointer ()]
@@ -1272,9 +1272,9 @@ namespace GLib {
        
        [ReferenceType (free_function = "g_tree_destroy")]
        public struct Tree<K,V> {
-               public construct (CompareFunc key_compare_func);
-               public construct with_data (CompareFunc key_compare_func, pointer key_compare_data);
-               public construct full (CompareFunc key_compare_func, pointer key_compare_data, DestroyNotify key_destroy_func, DestroyNotify value_destroy_func);
+               public Tree (CompareFunc key_compare_func);
+               public Tree.with_data (CompareFunc key_compare_func, pointer key_compare_data);
+               public Tree.full (CompareFunc key_compare_func, pointer key_compare_data, DestroyNotify key_destroy_func, DestroyNotify value_destroy_func);
                public void insert (K key, V value);
                public void replace (K key, V value);
                public int nnodes ();