Changeset 238

Show
Ignore:
Timestamp:
02/26/07 23:14:29 (2 years ago)
Author:
Alan Knowles
Message:

start adding basetype properties/methods

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/language/d/CodeBlock.d

    r236 r238  
    1111import language.d.Import; 
    1212import language.d.Directory; 
     13import language.d.BaseType; 
    1314 
    1415import dool.String; 
     
    208209    { 
    209210        Element[] ret; 
     211         
    210212        getDefinitionElementAll(match, ret, parents, imports,  true); 
    211213        if (ret.length) { 
     
    351353    { 
    352354         
     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        } 
    353360         
    354361        foreach (e;elements) { 
     
    383390        } 
    384391        if (!cast(Module)this) { 
    385             return (cast(CodeBlock)this.parent).getTypeElement(match); 
     392            return (cast(CodeBlock)this.parent).getTypeElement(match,imports); 
    386393        } 
    387394        // at this point we can try loading the imports and seeing if we can find the element type