Changeset 238
- Timestamp:
- 02/26/07 23:14:29 (2 years ago)
- Files:
-
- trunk/src/language/d/BaseType.d (added)
- trunk/src/language/d/CodeBlock.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/language/d/CodeBlock.d
r236 r238 11 11 import language.d.Import; 12 12 import language.d.Directory; 13 import language.d.BaseType; 13 14 14 15 import dool.String; … … 208 209 { 209 210 Element[] ret; 211 210 212 getDefinitionElementAll(match, ret, parents, imports, true); 211 213 if (ret.length) { … … 351 353 { 352 354 355 writefln("CodeBlock::getTypeElement:testing %s against %s", match,this.name ? this.name : this.classinfo.name); 356 if (std.string.find(match,'[') > -1) { 357 return new BaseType(this,match); 358 359 } 353 360 354 361 foreach (e;elements) { … … 383 390 } 384 391 if (!cast(Module)this) { 385 return (cast(CodeBlock)this.parent).getTypeElement(match );392 return (cast(CodeBlock)this.parent).getTypeElement(match,imports); 386 393 } 387 394 // at this point we can try loading the imports and seeing if we can find the element type
