Changeset 236

Show
Ignore:
Timestamp:
02/14/07 21:36:44 (2 years ago)
Author:
Alan Knowles
Message:

remove a bit of debugging code, fix 2 classes in same file - second class got ignored

Files:

Legend:

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

    r189 r236  
    4545    { 
    4646        this.startTok = tok; 
    47         this.endTok = tok.children[length-1]
     47        this.endTok = (tok.children && tok.children.length > 0) ? tok.children[length-1] : tok
    4848    } 
    4949     
     
    102102    { 
    103103        // assume without '.' 
    104         writefln("getAutoCompleteList called on %s", this.name); 
     104        writefln("getAutoCompleteList called on %s:%s", this.classinfo.name,this.name); 
    105105        if (cast(Method)this && cast(Class)this.parent && (start.length < 5)) { 
    106106            if ( (!start.length) || (start == "this"[0..start.length])) { 
     
    114114            // this will recurse for us.. 
    115115            Class pc = cast(Class)this; 
     116            writefln("trying to find parent definition: %s", pc.extends); 
    116117                // who do we ask for the Element Type: - the object's defined module? 
    117118            Class newpc = cast(Class) pc.getTypeElement(pc.extends); 
     
    128129        writefln("getAutoCompleteList:: foreach on %d elements", elements.length); 
    129130        foreach (e;elements) { 
     131            writefln("testing %s", e.classinfo.name); 
    130132            if (cast(Definition)e) { 
    131133                //writefln("testing %s against %s", start,(cast(Definition)e).name); 
     
    178180                } 
    179181            } 
    180              
    181               
    182              
    183             // enum ... 
     182                
    184183             
    185184        } 
  • trunk/src/language/d/Parser.d

    r231 r236  
    340340                      
    341341                    parseClass(tokensUpto('{') , token, lastComment);  
    342                     nextToken(); 
     342                    //nextToken(); 
    343343                    //nextToken(); 
    344344                    resetStmt(); 
     
    621621        char[][] implements; 
    622622         
    623         //writefln("got classtokens %s" , tokensToString(classtoks)); 
     623        //writefln("got classtokens %s" , tokensToString(classtoks)); 
    624624        foreach(tok; classtoks) { 
    625625            //writefln("reading token %s", tok.str);