Changeset 231

Show
Ignore:
Timestamp:
02/07/07 00:16:18 (2 years ago)
Author:
Alan Knowles
Message:

fix out of bounds error in parser when typing a new class

Files:

Legend:

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

    r215 r231  
    639639                    continue; 
    640640                case '{': 
     641                    if (!tok.children || !tok.children.length) { 
     642                        continue; 
     643                    } 
    641644                    Element a = new Class(this.parent, name, extends, implements, startTok, tok.children[length-1], lastComment); 
    642645                    auto p = new Parser();