diff trunk/src/dil/semantic/Scope.d @ 683:1ae72234db26

Implemented some methods in SemanticPass1. Renamed Symbol.ident to name. Added a constructor to Symbol. Adapted constructors of classes that inherit from Symbol. Added Alias and OverloadSet Symbol classes. Renamed idents and values to names and inits in VariablesDeclaration.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 21 Jan 2008 17:10:12 +0100
parents e7811328e6c7
children d33895f679eb
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Scope.d	Sat Jan 19 20:35:45 2008 +0100
+++ b/trunk/src/dil/semantic/Scope.d	Mon Jan 21 17:10:12 2008 +0100
@@ -50,15 +50,15 @@
   /// Insert a new variable symbol into this scope.
   void insert(Variable var)
   {
-    auto sym = symbol.lookup(var.ident);
+    auto sym = symbol.lookup(var.name);
     if (sym)
     {
       auto loc = sym.node.begin.getErrorLocation();
       auto locString = Format("{}({},{})", loc.filePath, loc.lineNum, loc.colNum);
-      error(var.node.begin, MSG.VariableConflictsWithDecl, var.ident.str, locString);
+      error(var.node.begin, MSG.VariableConflictsWithDecl, var.name.str, locString);
     }
     else
-      symbol.insert(var, var.ident);
+      symbol.insert(var, var.name);
     // Set the current scope symbol as the parent.
     var.parent = symbol;
   }