add interface documentation, use implicit namespace specification
authorJürg Billeter <j@bitron.ch>
Fri, 7 Jul 2006 08:17:47 +0000 (08:17 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 7 Jul 2006 08:17:47 +0000 (08:17 +0000)
2006-07-07  Jürg Billeter  <j@bitron.ch>

* vala/valaconstructor.vala, vala/valacontinuestatement.vala,
  vala/valadeclarationstatement.vala, vala/valadestructor.vala: add
  interface documentation, use implicit namespace specification

svn path=/trunk/; revision=69

vala/ChangeLog
vala/vala/valaconstructor.vala
vala/vala/valacontinuestatement.vala
vala/vala/valadeclarationstatement.vala
vala/vala/valadestructor.vala

index de43c01..fa2daee 100644 (file)
@@ -1,5 +1,11 @@
 2006-07-07  Jürg Billeter  <j@bitron.ch>
 
+       * vala/valaconstructor.vala, vala/valacontinuestatement.vala,
+         vala/valadeclarationstatement.vala, vala/valadestructor.vala: add
+         interface documentation, use implicit namespace specification
+
+2006-07-07  Jürg Billeter  <j@bitron.ch>
+
        * vala/valacodecontext.vala: use continue statements to decrease
          indentation levels
        * vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
index 1fbf94e..6632453 100644 (file)
 
 using GLib;
 
-namespace Vala {
-       public class Constructor : CodeNode {
-               public Statement body { get; construct; }
-               public bool instance = true;
-               
-               public static ref Constructor new (SourceReference source) {
-                       return (new Constructor (source_reference = source));
+/**
+ * Represents a class or instance constructor.
+ */
+public class Vala.Constructor : CodeNode {
+       /**
+        * The body of this constructor.
+        */
+       public Statement body { get; set; }
+       
+       private bool _instance = true;
+       
+       /**
+        * Specifies whether this is an instance or a class constructor.
+        */
+       public bool instance {
+               get {
+                       return _instance;
                }
+               set {
+                       _instance = value;
+               }
+       }
+       
+       /**
+        * Creates a new constructor.
+        *
+        * @param source reference to source code
+        * @return       newly created constructor
+        */
+       public static ref Constructor! new (SourceReference source) {
+               return (new Constructor (source_reference = source));
+       }
+       
+       public override void accept (CodeVisitor! visitor) {
+               visitor.visit_begin_constructor (this);
                
-               public override void accept (CodeVisitor visitor) {
-                       visitor.visit_begin_constructor (this);
-                       
-                       if (body != null) {
-                               body.accept (visitor);
-                       }
-
-                       visitor.visit_end_constructor (this);
+               if (body != null) {
+                       body.accept (visitor);
                }
+
+               visitor.visit_end_constructor (this);
        }
 }
index fa7c845..a39edab 100644 (file)
 
 using GLib;
 
-namespace Vala {
-       public class ContinueStatement : Statement {
-               public static ref ContinueStatement new (SourceReference source) {
-                       return (new ContinueStatement (source_reference = source));
-               }
-               
-               public override void accept (CodeVisitor visitor) {
-                       visitor.visit_continue_statement (this);
-               }
+/**
+ * Represents a continue statement in the source code.
+ */
+public class Vala.ContinueStatement : Statement {
+       /**
+        * Creates a new continue statement.
+        *
+        * @param source reference to source code
+        * @return       newly created continue statement
+        */
+       public static ref ContinueStatement! new (SourceReference source) {
+               return (new ContinueStatement (source_reference = source));
+       }
+       
+       public override void accept (CodeVisitor! visitor) {
+               visitor.visit_continue_statement (this);
        }
 }
index 1339e57..ffcb748 100644 (file)
 
 using GLib;
 
-namespace Vala {
-       public class DeclarationStatement : Statement {
-               public LocalVariableDeclaration declaration { get; construct; }
+/**
+ * Represents a local variable declaration statement in the source code.
+ */
+public class Vala.DeclarationStatement : Statement {
+       /**
+        * The local variable declaration.
+        */
+       public LocalVariableDeclaration! declaration { get; set construct; }
 
-               public static ref DeclarationStatement new (LocalVariableDeclaration decl, SourceReference source) {
-                       return (new DeclarationStatement (declaration = decl, source_reference = source));
-               }
-               
-               public override void accept (CodeVisitor visitor) {
-                       declaration.accept (visitor);
-               
-                       visitor.visit_declaration_statement (this);
-               }
+       /**
+        * Creates a new declaration statement.
+        *
+        * @param decl   local variable declaration
+        * @param source reference to source code
+        * @return       newly created declaration statement
+        */
+       public static ref DeclarationStatement! new (LocalVariableDeclaration! decl, SourceReference source) {
+               return (new DeclarationStatement (declaration = decl, source_reference = source));
+       }
+       
+       public override void accept (CodeVisitor! visitor) {
+               declaration.accept (visitor);
+       
+               visitor.visit_declaration_statement (this);
        }
 }
index 04a590a..dc19e3a 100644 (file)
 
 using GLib;
 
-namespace Vala {
-       public class Destructor : CodeNode {
-               public Statement body { get; construct; }
-               public bool instance = true;
-               
-               public static ref Destructor new (SourceReference source) {
-                       return (new Destructor (source_reference = source));
+/**
+ * Represents a class or instance destructor.
+ */
+public class Vala.Destructor : CodeNode {
+       /**
+        * The body of this constructor.
+        */
+       public Statement body { get; set; }
+       
+       private bool _instance = true;
+       
+       /**
+        * Specifies whether this is an instance or a class destructor.
+        */
+       public bool instance {
+               get {
+                       return _instance;
                }
+               set {
+                       _instance = value;
+               }
+       }
+       
+       /**
+        * Creates a new destructor.
+        *
+        * @param source reference to source code
+        * @return       newly created destructor
+        */
+       public static ref Destructor! new (SourceReference source) {
+               return (new Destructor (source_reference = source));
+       }
+       
+       public override void accept (CodeVisitor! visitor) {
+               visitor.visit_begin_destructor (this);
                
-               public override void accept (CodeVisitor visitor) {
-                       visitor.visit_begin_destructor (this);
-                       
-                       if (body != null) {
-                               body.accept (visitor);
-                       }
-
-                       visitor.visit_end_destructor (this);
+               if (body != null) {
+                       body.accept (visitor);
                }
+
+               visitor.visit_end_destructor (this);
        }
 }