/[classpath]/gjdoc/src/gnu/classpath/tools/gjdoc/MemberDocImpl.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/gjdoc/MemberDocImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by julian, Fri Dec 17 17:54:20 2004 UTC revision 1.11 by julian, Mon Dec 20 21:27:52 2004 UTC
# Line 55  public abstract class MemberDocImpl exte Line 55  public abstract class MemberDocImpl exte
55    
56        int state = STATE_NORMAL;        int state = STATE_NORMAL;
57    
58        String word="";        String word = "";
59        int lastWordStart=-1;        int lastWordStart = startIndex;
60        for (; startIndex<endIndex; ++startIndex) {        for (; startIndex<endIndex; ++startIndex) {
61           if (state==STATE_STARC) {           if (state==STATE_STARC) {
62              if (startIndex<endIndex-1 && source[startIndex]=='*' && source[startIndex+1]=='/') {              if (startIndex<endIndex-1 && source[startIndex]=='*' && source[startIndex+1]=='/') {
# Line 74  public abstract class MemberDocImpl exte Line 74  public abstract class MemberDocImpl exte
74              state=STATE_STARC;              state=STATE_STARC;
75           }           }
76           else if (source[startIndex]=='=' || source[startIndex]=='(' || source[startIndex]==';') {           else if (source[startIndex]=='=' || source[startIndex]=='(' || source[startIndex]==';') {
77              return lastWordStart;              return lastWordStart;
78           }           }
79           else if (Parser.WHITESPACE.indexOf(source[startIndex])>=0) {           else if (Parser.WHITESPACE.indexOf(source[startIndex])>=0) {
80              if (word.length()>0 && !word.endsWith(".")) {              if (word.length()>0 && !word.endsWith(".")) {
# Line 91  public abstract class MemberDocImpl exte Line 91  public abstract class MemberDocImpl exte
91                    //throw new Error("In FieldComponent: cannot understand word '"+word+"' (typeName="+typeName+", name="+name()+")");                    //throw new Error("In FieldComponent: cannot understand word '"+word+"' (typeName="+typeName+", name="+name()+")");
92                 }                 }
93                 word="";                 word="";
94                 lastWordStart=-1;                 lastWordStart=startIndex;
95              }              }
96           }           }
97           else {           else {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26