diff trunk/src/dil/ast/Types.d @ 668:a1f8d8f2db38

Renamed some identifiers.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 17 Jan 2008 19:27:46 +0100
parents 1ac758cd952a
children d8c32113afde
line wrap: on
line diff
--- a/trunk/src/dil/ast/Types.d	Thu Jan 17 00:21:16 2008 +0100
+++ b/trunk/src/dil/ast/Types.d	Thu Jan 17 19:27:46 2008 +0100
@@ -83,6 +83,7 @@
   }
 }
 
+/// char, int, float etc.
 class IntegralType : TypeNode
 {
   this(TOK tok)
@@ -92,6 +93,7 @@
   }
 }
 
+/// Identifier
 class IdentifierType : TypeNode
 {
   Identifier* ident;
@@ -103,6 +105,7 @@
   }
 }
 
+/// Type "." Type
 class QualifiedType : TypeNode
 {
   alias next left;
@@ -114,6 +117,7 @@
   }
 }
 
+/// "." Type
 class ModuleScopeType : TypeNode
 {
   this(TypeNode next)
@@ -168,20 +172,21 @@
   }
 }
 
+/// Dynamic array: T[] or
+/// Static array: T[E] or
+/// Slice array (for tuples): T[E..E] or
+/// Associative array: T[T]
 class ArrayType : TypeNode
 {
   Expression e, e2;
   TypeNode assocType;
 
-  /// Dynamic array: T[]
   this(TypeNode t)
   {
     super(TID.Array, t);
     mixin(set_kind);
   }
 
-  /// Static array: T[E] or
-  /// Slice array (for tuples): T[E..E]
   this(TypeNode t, Expression e, Expression e2)
   {
     addChild(e);
@@ -191,7 +196,6 @@
     this(t);
   }
 
-  /// Associative array: T[T]
   this(TypeNode t, TypeNode assocType)
   {
     addChild(assocType);
@@ -200,33 +204,35 @@
   }
 }
 
+/// ReturnType "function" "(" Parameters? ")"
 class FunctionType : TypeNode
 {
   TypeNode returnType;
-  Parameters parameters;
-  this(TypeNode returnType, Parameters parameters)
+  Parameters params;
+  this(TypeNode returnType, Parameters params)
   {
     super(TID.Function);
     mixin(set_kind);
     addChild(returnType);
-    addChild(parameters);
+    addChild(params);
     this.returnType = returnType;
-    this.parameters = parameters;
+    this.params = params;
   }
 }
 
+/// ReturnType "delegate" "(" Parameters? ")"
 class DelegateType : TypeNode
 {
   TypeNode returnType;
-  Parameters parameters;
-  this(TypeNode returnType, Parameters parameters)
+  Parameters params;
+  this(TypeNode returnType, Parameters params)
   {
     super(TID.Delegate);
     mixin(set_kind);
     addChild(returnType);
-    addChild(parameters);
+    addChild(params);
     this.returnType = returnType;
-    this.parameters = parameters;
+    this.params = params;
   }
 }
 
@@ -241,7 +247,8 @@
   }
 }
 
-class BaseClass : TypeNode
+/// "class" Identifier : BaseClass
+class BaseClassType : TypeNode
 {
   Protection prot;
   this(Protection prot, TypeNode type)