Changeset 19246
- Timestamp:
- 11/20/08 19:43:57 (7 weeks ago)
- Location:
- trunk/src/plugins/org.eclipse.jdt.core
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
r18591 r19246 94 94 protected boolean _calloutSeen = false; 95 95 protected boolean _callinSeen = false; 96 97 // after a '.' even 'team' can be an identifier: 98 private int _dotSeen = 0; // 0: no, 1: previos, 2: this token 96 99 97 100 // only within a joinpoint query '#' is a special token! … … 1163 1166 } 1164 1167 public int getNextToken() throws InvalidInputException { 1168 //{ObjectTeams: support '.' 'team': 1169 if (this._dotSeen > 0) 1170 this._dotSeen--; // "aging" 1171 // SH} 1165 1172 this.wasAcr = false; 1166 1173 if (this.diet) { … … 1286 1293 this.currentPosition = temp2; 1287 1294 return TokenNameDOT_DOT; 1288 } 1295 } 1296 this._dotSeen = 2; // now 1289 1297 //SH} 1290 1298 this.currentPosition = temp; … … 1292 1300 } 1293 1301 } else { 1302 //{ObjectTeams: record the one '.': 1303 this._dotSeen = 2; // now 1304 // SH} 1294 1305 this.currentPosition = temp; 1295 1306 return TokenNameDOT; … … 4025 4036 return TokenNametrue; 4026 4037 else 4027 //{ObjectTeams: check for team keyword (always checked , if seen set isOTsource4038 //{ObjectTeams: check for team keyword (always checked except after '.' -- if seen set isOTsource) 4028 4039 if ((data[index] == 'e') 4029 4040 && (data[++index] == 'a') 4030 && (data[++index] == 'm')) 4041 && (data[++index] == 'm') 4042 && (this._isOTSource || this._dotSeen == 0)) 4031 4043 { 4032 4044 _teamKeywordSeen = true; -
trunk/src/plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/PublicScanner.java
r18591 r19246 82 82 protected boolean _calloutSeen = false; 83 83 protected boolean _callinSeen = false; 84 85 // after a '.' even 'team' can be an identifier: 86 private int _dotSeen = 0; // 0: no, 1: previos, 2: this token 84 87 85 88 // only within a joinpoint query '#' is a special token! … … 1151 1154 } 1152 1155 public int getNextToken() throws InvalidInputException { 1156 //{ObjectTeams: support '.' 'team': 1157 if (this._dotSeen > 0) 1158 this._dotSeen--; // "aging" 1159 // SH} 1153 1160 this.wasAcr = false; 1154 1161 if (this.diet) { … … 1274 1281 this.currentPosition = temp2; 1275 1282 return TokenNameDOT_DOT; 1276 } 1283 } 1284 this._dotSeen = 2; // now 1277 1285 //SH} 1278 1286 this.currentPosition = temp; … … 1280 1288 } 1281 1289 } else { 1290 //{ObjectTeams: record the one '.': 1291 this._dotSeen = 2; // now 1292 // SH} 1282 1293 this.currentPosition = temp; 1283 1294 return TokenNameDOT; … … 3633 3644 return TokenNametrue; 3634 3645 else 3635 //{ObjectTeams: check for team keyword (always checked , if seen set isOTsource3646 //{ObjectTeams: check for team keyword (always checked except after '.' -- if seen set isOTsource) 3636 3647 if ((data[index] == 'e') 3637 3648 && (data[++index] == 'a') 3638 && (data[++index] == 'm')) 3649 && (data[++index] == 'm') 3650 && (this._isOTSource || this._dotSeen == 0)) 3639 3651 { 3640 3652 _teamKeywordSeen = true;
all news
RSS feed