changeset 616:506ce60760d8

Fixed some error messages.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 09 Jan 2008 17:41:22 +0100
parents a05457530ac2
children 0749f30ef2d0
files trunk/src/dil/Messages.d trunk/src/dil/parser/Parser.d
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/Messages.d	Tue Jan 08 22:15:59 2008 +0100
+++ b/trunk/src/dil/Messages.d	Wed Jan 09 17:41:22 2008 +0100
@@ -113,11 +113,11 @@
   // Parser messages:
   auto ExpectedIdAfterTypeDot = "expected identifier after '(Type).', not '{}'";
   auto ExpectedModuleIdentifier = "expected module identifier, not '{}'";
-  auto IllegalDeclaration = "illegal Declaration found: ";
+  auto IllegalDeclaration = "illegal Declaration found: {}";
   auto ExpectedFunctionName = "expected function name, not '{}'";
   auto ExpectedVariableName = "expected variable name, not '{}'";
   auto ExpectedFunctionBody = "expected function body, not '{}'";
-  auto RedundantLinkageType = "redundant linkage type: ";
+  auto RedundantLinkageType = "redundant linkage type: {}";
   auto ExpectedPragmaIdentifier = "expected pragma identifier, not '{}'";
   auto ExpectedAliasModuleName = "expected alias module name, not '{}'";
   auto ExpectedAliasImportName = "expected alias name, not '{}'";
@@ -130,12 +130,12 @@
   auto ExpectedInterfaceBody = "expected interface body, not '{}'";
   auto ExpectedTemplateName = "expected template name, not '{}'";
   auto ExpectedAnIdentifier = "expected an identifier, not '{}'";
-  auto IllegalStatement = "illegal Statement found: ";
+  auto IllegalStatement = "illegal Statement found: {}";
   auto ExpectedNonEmptyStatement = "didn't expect ';', use {{ } instead";
   auto ExpectedScopeIdentifier = "expected 'exit', 'success' or 'failure', not '{}'";
   auto InvalidScopeIdentifier = "'exit', 'success', 'failure' are valid scope identifiers, but not '{}'";
   auto ExpectedIntegerAfterAlign = "expected an integer after align, not '{}'";
-  auto IllegalAsmInstructino = "illegal AsmInstruction found: ";
+  auto IllegalAsmInstruction = "illegal AsmInstruction found: {}";
   auto ExpectedDeclaratorIdentifier = "expected declarator identifier, not '{}'";
   auto ExpectedTemplateParameters = "expected one or more template parameters, not ')'";
   auto ExpectedTypeOrExpression = "expected a type or and expression, not ')'";
--- a/trunk/src/dil/parser/Parser.d	Tue Jan 08 22:15:59 2008 +0100
+++ b/trunk/src/dil/parser/Parser.d	Wed Jan 09 17:41:22 2008 +0100
@@ -379,7 +379,7 @@
               token.type != T.RBrace &&
               token.type != T.EOF)
       auto text = Token.textSpan(begin, this.prevToken);
-      error(begin, MSG.IllegalDeclaration ~ text);
+      error(begin, MSG.IllegalDeclaration, text);
     }
     decl.setProtection(this.protection);
     decl.setStorageClass(this.storageClass);
@@ -739,7 +739,7 @@
       prev_lt = lt;
     else
       // TODO: create new msg RedundantLinkageType.
-      error(begin, MSG.RedundantLinkageType ~ Token.textSpan(begin, this.prevToken));
+      error(begin, MSG.RedundantLinkageType, Token.textSpan(begin, this.prevToken));
   }
 
   Declaration parseStorageAttribute()
@@ -1799,7 +1799,7 @@
               token.type != T.RBrace &&
               token.type != T.EOF)
       auto text = Token.textSpan(begin, this.prevToken);
-      error(begin, MSG.IllegalStatement ~ text);
+      error(begin, MSG.IllegalStatement, text);
     }
     assert(s !is null);
     set(s, begin);
@@ -2489,7 +2489,7 @@
               token.type != T.RBrace &&
               token.type != T.EOF)
       auto text = Token.textSpan(begin, this.prevToken);
-      error(begin, MSG.IllegalAsmInstructino ~ text);
+      error(begin, MSG.IllegalAsmInstruction, text);
     }
     set(s, begin);
     return s;