Changeset 18 for trunk/Compiler/Analyze/UAnalyzerPascal.pas
- Timestamp:
- Nov 9, 2010, 8:10:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Analyze/UAnalyzerPascal.pas
r17 r18 1198 1198 UseName := NextToken; 1199 1199 if NextTokenType = ttIdentifier then begin 1200 UseType := TypeList.Parent.Types.Search(UseName);1200 TTypeArray(Result).IndexType := TypeList.Parent.Types.Search(UseName); 1201 1201 if not Assigned(TTypeArray(Result).IndexType) then 1202 1202 ErrorMessage(SUndefinedType, [UseName], -1) else … … 1204 1204 end else 1205 1205 if NextTokenType = ttConstantNumber then begin 1206 UseType := ParseTypeSubRange(TypeList, Name);1207 if not Assigned( UseType) then begin1206 TTypeArray(Result).IndexType := ParseTypeSubRange(TypeList, Name); 1207 if not Assigned(TTypeArray(Result).IndexType) then begin 1208 1208 ErrorMessage(SInvalidConstruction, [], -1); 1209 1209 end;
Note:
See TracChangeset
for help on using the changeset viewer.