comparison dmd/Module.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents 9fe59705c82d
children ef02e2e203c2
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
391 } 391 }
392 392
393 return m; 393 return m;
394 } 394 }
395 395
396 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 396 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
397 { 397 {
398 assert(false); 398 assert(false);
399 } 399 }
400 400
401 string kind() 401 override string kind()
402 { 402 {
403 return "module"; 403 return "module";
404 } 404 }
405 405
406 void setDocfile() // set docfile member 406 void setDocfile() // set docfile member
794 sc = sc.pop(); 794 sc = sc.pop();
795 sc.pop(); 795 sc.pop();
796 semanticRun = semanticstarted; 796 semanticRun = semanticstarted;
797 } 797 }
798 798
799 void inlineScan() // scan for functions to inline 799 override void inlineScan() // scan for functions to inline
800 { 800 {
801 int i; 801 int i;
802 802
803 if (semanticstarted >= 4) 803 if (semanticstarted >= 4)
804 return; 804 return;
1152 bool needModuleInfo() 1152 bool needModuleInfo()
1153 { 1153 {
1154 return needmoduleinfo || global.params.cov; 1154 return needmoduleinfo || global.params.cov;
1155 } 1155 }
1156 1156
1157 Dsymbol search(Loc loc, Identifier ident, int flags) 1157 override Dsymbol search(Loc loc, Identifier ident, int flags)
1158 { 1158 {
1159 /* Since modules can be circularly referenced, 1159 /* Since modules can be circularly referenced,
1160 * need to stop infinite recursive searches. 1160 * need to stop infinite recursive searches.
1161 */ 1161 */
1162 1162
1388 } 1388 }
1389 1389
1390 /************************************* 1390 /*************************************
1391 * Create the "ModuleInfo" symbol 1391 * Create the "ModuleInfo" symbol
1392 */ 1392 */
1393 Symbol* toSymbol() 1393 override Symbol* toSymbol()
1394 { 1394 {
1395 if (!csym) 1395 if (!csym)
1396 { 1396 {
1397 Symbol* s; 1397 Symbol* s;
1398 static Classsym* scc; 1398 static Classsym* scc;
1577 ////////////////////////////////////////////// 1577 //////////////////////////////////////////////
1578 1578
1579 obj_moduleinfo(msym); 1579 obj_moduleinfo(msym);
1580 } 1580 }
1581 1581
1582 Module isModule() { return this; } 1582 override Module isModule() { return this; }
1583 } 1583 }