发明名称 |
Annotating a generator output stream |
摘要 |
A method for automatically and transparently annotating document source code, the method including: receiving an output stream produced by a source code of a generator; wrapping the output stream to produce a copy of the output stream; automatically annotating the copy with source information, wherein the source information maps a relationship between data in the output stream and the source code of the generator; and storing the source information on a memory device. |
申请公布号 |
US9400649(B2) |
申请公布日期 |
2016.07.26 |
申请号 |
US201313910927 |
申请日期 |
2013.06.05 |
申请人 |
International Business Machines Corporation |
发明人 |
Greer Scott B |
分类号 |
G06F17/00;G06F9/44 |
主分类号 |
G06F17/00 |
代理机构 |
|
代理人 |
Holman Jeffrey T. |
主权项 |
1. A method for annotating document source code, the method comprising:
receiving an output stream of target coding language converted from source code input into a generator; wrapping the output stream to produce a copy of the output stream; automatically annotating the copy with source information to create an annotated output document by:
collecting a call stack associated with a code fragment in the output stream;analyzing the call stack by excluding any information that does not emit content in the target coding language; andannotating the copy with the analyzed call stack, wherein the source information maps a relationship between data in the output stream and the source code; and storing the source information on a memory device. |
地址 |
Armonk NY US |