摘要 |
An object-oriented apparatus in the memory of a computer system for propagating source code locations into objects in a compiler. The apparatus has three types. The first is a source object type, of which each object identifies a source location and, where inlining has occurred, a list of inlined source locations. The second type is a source mark object type, of which each object identifies a source object to be related to new compiler objects, and whose construction using a source object starts the use of the source object for propagation into new compiler objects, and whose destruction ends the use of the source object for propagation. The third type is a source mapped base type for a compiler object that relates the compiler object to a source object, and whose default construction relates the compiler object to the source object of the most recently constructed source mark object.
|