-
公开(公告)号:US20240329952A1
公开(公告)日:2024-10-03
申请号:US18190278
申请日:2023-03-27
Applicant: Microsoft Technology Licensing, LLC
Inventor: Anitta Maria MILLER , Sangeetha MADDERLA , Cody Ray CRANFILL , Joshua Thomas NIELSEN , Lori Ann MURRAY , Jason Lancaster MOCK , Gueorgui Bonov CHKODROV , Dan Alexandru NICOLESCU , Akrem Juneidi BASHA , William Duncan MACKENZIE
IPC: G06F8/41
CPC classification number: G06F8/433
Abstract: Techniques for generating a workflow diagram automatically from code are described herein. The diagram can be generated in real-time with code changes or as a batch-processing operation to generate drawings as documentation. An extent delineator is identified in the source code. Based on the location of that extent delineator, a determination is made that multiple lines of the source code share a relationship with one another. An extent is formed by grouping those lines together. An AST, which is based on the code, is accessed. Multiple AST nodes are identified. These nodes correspond to the extent. A flowchart is generated based on (i) the AST, (ii) the source code, and (iii) the extent delineator. One of the flowchart nodes commonly represents the multiple AST nodes corresponding to the extent. This flowchart node is annotated with text that generally describes that node's logic.