Seventh Week
In 7th week, we achieved following goals :
- Generated a type system in eclcc code so that we get accurate types for return type and parameters than those returned by heuristic signature breaking.
- Each Type is represented as type tree.
- To generate type system, we used a switch statement over type code of given type. For simple types, we simple used getECLType() for that type code.
- For complex types, we used their typename as attribute in type tree and recursed over any child type.
- For record type, we used queryOriginalName to get original name if record is previously defined and do not expand that record.
- Else we expand the record using expandRecordDefinition function.
- For function type, we generate its parameters types and return type to get correct type info.
- Type system to used to get return types of function, parameters types, field type in record and any definition that is not a function, scope, type, record or import.
Comments
Post a Comment