# HG changeset patch # User Aziz K?ksal # Date 1197904208 -3600 # Node ID 50e64bab9c7a701dcd663e93ad09a12c10faf943 # Parent 315aeb3f7a9bf728540d4ae052d4bfdbaca90d74 Renamed InformationManager to InfoManager. diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/Converter.d --- a/trunk/src/dil/Converter.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/Converter.d Mon Dec 17 16:10:08 2007 +0100 @@ -14,9 +14,9 @@ struct Converter { char[] filePath; /// For error messages. - InformationManager infoMan; + InfoManager infoMan; - static Converter opCall(char[] filePath, InformationManager infoMan) + static Converter opCall(char[] filePath, InfoManager infoMan) { Converter conv; conv.filePath = filePath; diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/File.d --- a/trunk/src/dil/File.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/File.d Mon Dec 17 16:10:08 2007 +0100 @@ -17,7 +17,7 @@ return data2UTF8(cast(ubyte[]) (new File(filePath)).read()); } -char[] loadFile(char[] filePath, InformationManager infoMan) +char[] loadFile(char[] filePath, InfoManager infoMan) { auto converter = Converter(filePath, infoMan); return converter.data2UTF8(cast(ubyte[]) (new File(filePath)).read()); diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/Information.d --- a/trunk/src/dil/Information.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/Information.d Mon Dec 17 16:10:08 2007 +0100 @@ -14,7 +14,7 @@ } -class InformationManager +class InfoManager { Information[] info; diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/Lexer.d --- a/trunk/src/dil/Lexer.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/Lexer.d Mon Dec 17 16:10:08 2007 +0100 @@ -35,7 +35,7 @@ char* end; /// Points one character past the end of the source text. // Members used for error messages: - InformationManager infoMan; + InfoManager infoMan; LexerError[] errors; /// Always points to the beginning of the current line. char* lineBegin; @@ -51,7 +51,7 @@ text = the UTF-8 source code. filePath = the path to the source code; used for error messages. +/ - this(string text, string filePath, InformationManager infoMan = null) + this(string text, string filePath, InfoManager infoMan = null) { this.filePath = this.errorPath = filePath; this.infoMan = infoMan; diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/Module.d --- a/trunk/src/dil/Module.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/Module.d Mon Dec 17 16:10:08 2007 +0100 @@ -33,7 +33,7 @@ Module[] modules; - InformationManager infoMan; + InfoManager infoMan; this(string filePath, bool isLightweight = false) { @@ -41,7 +41,7 @@ this.isLightweight = isLightweight; } - this(string filePath, InformationManager infoMan) + this(string filePath, InfoManager infoMan) { this(filePath, false); this.infoMan = infoMan; diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/Parser.d --- a/trunk/src/dil/Parser.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/Parser.d Mon Dec 17 16:10:08 2007 +0100 @@ -27,7 +27,7 @@ Token* token; /// Current non-whitespace token. Token* prevToken; /// Previous non-whitespace token. - InformationManager infoMan; + InfoManager infoMan; ParserError[] errors; ImportDeclaration[] imports; /// ImportDeclarations in the source text. @@ -46,7 +46,7 @@ text = the UTF-8 source code. filePath = the path to the source code; used for error messages. +/ - this(char[] srcText, string filePath, InformationManager infoMan = null) + this(char[] srcText, string filePath, InfoManager infoMan = null) { this.infoMan = infoMan; lx = new Lexer(srcText, filePath, infoMan); diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/dil/Scope.d --- a/trunk/src/dil/Scope.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/dil/Scope.d Mon Dec 17 16:10:08 2007 +0100 @@ -10,7 +10,7 @@ class Scope { Scope parent; /// The surrounding scope. - InformationManager infoMan; /// Collects errors reported during the semantic phase. + InfoManager infoMan; /// Collects errors reported during the semantic phase. this() { diff -r 315aeb3f7a9b -r 50e64bab9c7a trunk/src/main.d --- a/trunk/src/main.d Mon Dec 17 13:23:52 2007 +0100 +++ b/trunk/src/main.d Mon Dec 17 16:10:08 2007 +0100 @@ -39,7 +39,7 @@ if (args.length < 2) return printHelp("compile"); - auto infoMan = new InformationManager(); + auto infoMan = new InfoManager(); auto filePaths = args[2..$]; foreach (filePath; filePaths) {