Show
Ignore:
Timestamp:
06/29/09 07:26:59 (15 months ago)
Author:
mb0 <mb0@…>
Children:
1060b358e6c4605ad49cda48695fd5e5de4a39b3
Parents:
5c182b6e475d5851c54cdb2117f25af21723b62a
git-committer:
mb0 <mb0@…> (06/29/09 07:26:59)
Message:

minor changes (whitespaces, formatting, ..)

  • as3 errors are not stable enough to be persisted
  • added eclipse ui prefs to ignore problems in generated ast package
  • moved templates and includes to org.axdt.as3.imp.parser.inc package/folder
  • moved helper ast into lex helper
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • org.axdt.as3/src/org/axdt/as3/imp/parser/AS3LexHelper.java

    r5c182b6 r8a0050b  
    231231                return errorAction == parser.parse(new int[] { token1, token2 }, 0); 
    232232        } 
     233        public static abstract class HelperAst { 
     234                public final int start; 
     235                public final int end; 
     236 
     237                public HelperAst(HelperAst ast) { 
     238                        this(ast.start, ast.end); 
     239                } 
     240 
     241                public HelperAst(int start, int end) { 
     242                        this.start = start; 
     243                        this.end = end; 
     244                } 
     245 
     246                public boolean equals(Object obj) { 
     247                        if (null == obj) return false; 
     248                        if (this == obj) return true; 
     249                        if (obj.getClass().equals(this.getClass())){ 
     250                                HelperAst other = (HelperAst) obj; 
     251                                return start == other.start 
     252                                        && end == other.end; 
     253                        } 
     254                        return super.equals(obj); 
     255                } 
     256 
     257                public String toString() { 
     258                        return "helper ast: "+start+":"+end; 
     259                } 
     260        } 
    233261 
    234262}