Changeset 236
- Timestamp:
- 02/14/07 21:36:44 (2 years ago)
- Files:
-
- trunk/src/language/d/CodeBlock.d (modified) (5 diffs)
- trunk/src/language/d/Parser.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/language/d/CodeBlock.d
r189 r236 45 45 { 46 46 this.startTok = tok; 47 this.endTok = tok.children[length-1];47 this.endTok = (tok.children && tok.children.length > 0) ? tok.children[length-1] : tok; 48 48 } 49 49 … … 102 102 { 103 103 // assume without '.' 104 writefln("getAutoCompleteList called on %s ",this.name);104 writefln("getAutoCompleteList called on %s:%s", this.classinfo.name,this.name); 105 105 if (cast(Method)this && cast(Class)this.parent && (start.length < 5)) { 106 106 if ( (!start.length) || (start == "this"[0..start.length])) { … … 114 114 // this will recurse for us.. 115 115 Class pc = cast(Class)this; 116 writefln("trying to find parent definition: %s", pc.extends); 116 117 // who do we ask for the Element Type: - the object's defined module? 117 118 Class newpc = cast(Class) pc.getTypeElement(pc.extends); … … 128 129 writefln("getAutoCompleteList:: foreach on %d elements", elements.length); 129 130 foreach (e;elements) { 131 writefln("testing %s", e.classinfo.name); 130 132 if (cast(Definition)e) { 131 133 //writefln("testing %s against %s", start,(cast(Definition)e).name); … … 178 180 } 179 181 } 180 181 182 183 // enum ... 182 184 183 185 184 } trunk/src/language/d/Parser.d
r231 r236 340 340 341 341 parseClass(tokensUpto('{') , token, lastComment); 342 nextToken();342 //nextToken(); 343 343 //nextToken(); 344 344 resetStmt(); … … 621 621 char[][] implements; 622 622 623 //writefln("got classtokens %s" , tokensToString(classtoks));623 //writefln("got classtokens %s" , tokensToString(classtoks)); 624 624 foreach(tok; classtoks) { 625 625 //writefln("reading token %s", tok.str);
