]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
add interface documentation
authorJürg Billeter <j@bitron.ch>
Thu, 29 Jun 2006 09:58:14 +0000 (09:58 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 29 Jun 2006 09:58:14 +0000 (09:58 +0000)
2006-06-29  Jürg Billeter  <j@bitron.ch>

* vala/valacodenode.vala, vala/valaexpression.vala: add interface
  documentation

svn path=/trunk/; revision=56

vala/ChangeLog
vala/vala/valacodenode.vala
vala/vala/valaexpression.vala

index 2908eb8ae0d59e9712068aca0629782376393803..e549005346855d745abeb5a5fa1e731fd9f9671d 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-29  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valacodenode.vala, vala/valaexpression.vala: add interface
+         documentation
+
 2006-06-28  Jürg Billeter  <j@bitron.ch>
 
        * vala/valasymbolbuilder.vala: add private add_symbol helper method
index 8c44417239782a72e0b9d63d3e3246651beefad7..900a9cb4fe51f479bc86a9e9fdc8f94f28331de5 100644 (file)
 using GLib;
 
 namespace Vala {
+       /**
+        * Represents a part of the parsed source code.
+        *
+        * Code nodes get created by the parser and are used throughout the
+        * whole compilation process.
+        */
        public abstract class CodeNode {
+               /**
+                * Symbol that corresponds to this code node.
+                */
                public Symbol symbol { get; set; }
+               
+               /**
+                * References the location in the source file where this code
+                * node has been written.
+                */
                public SourceReference source_reference { get; set; }
+               
+               /**
+                * Contains all attributes that have been specified for this
+                * code node.
+                */
                public List<Attribute> attributes;
+               
+               /**
+                * Generated CCodeNode that corresponds to this code node.
+                */
                public CCodeNode ccodenode { get; set; }
+               
+               /**
+                * Specifies whether a fatal error has been detected in this
+                * code node.
+                */
                public bool error { get; set; }
-       
+
+               /**
+                * Visits this code node and all children with the specified
+                * CodeVisitor.
+                *
+                * @param visitor the visitor to be called while traversing
+                */
                public abstract void accept (CodeVisitor! visitor);
        }
 }
index 195e8748b97b32da792b5ce109ba83e26a4c71a4..f3dd96fb94579c6f04fa7d5fdef4dc474c233675 100644 (file)
 using GLib;
 
 namespace Vala {
+       /**
+        * Base class for all code nodes that might be used as an expression.
+        */
        public abstract class Expression : CodeNode {
-               /* filled by semantic analyzer, used by semantic analyzer,
-                * memory manager and code generator
+               /**
+                * The static type of this expression.
+                * 
+                * The semantic analyzer computes this value.
                 */
                public TypeReference static_type { get; set; }
                
-               /* filled by semantic analyzer, used by lambda expressions in
-                * semantic analyzer
+               /*
+                * The static type this expression is expected to have.
+                *
+                * The semantic analyzer computes this value, lambda expressions
+                * use it.
                 */
                public TypeReference expected_type { get; set; }
                
+               /**
+                * The symbol this expression refers to.
+                */
                public Symbol symbol_reference { get; set; }
                
-               /* set by memory manager, used by code generator */
+               /**
+                * Specifies that this expression transfers ownership without a
+                * receiver being present.
+                *
+                * The memory manager computes this value, the code generator
+                * uses it.
+                */
                public bool ref_leaked { get; set; }
+               
+               /**
+                * Specifies that this expression is expected to transfer
+                * ownership but doesn't.
+                *
+                * The memory manager computes this value, the code generator
+                * uses it.
+                */
                public bool ref_missing { get; set; }
                
-               /* set and used by code generator */
+               /**
+                * Contains all temporary variables this expression requires
+                * for execution.
+                *
+                * The code generator sets and uses them for memory management.
+                */
                public List<VariableDeclarator> temp_vars;
        }
 }