Unlock instant, AI-driven research and patent intelligence for your innovation.

Code annotation document generation method and device, electronic equipment and storage medium

An annotation and code technology, applied in the computer field, can solve the problem that code annotation documents take up a lot of development time, and achieve the effect of improving the generation efficiency

Pending Publication Date: 2021-05-25
亿企赢网络科技有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the project is large, the maintenance of code comment documents often takes up more development time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code annotation document generation method and device, electronic equipment and storage medium
  • Code annotation document generation method and device, electronic equipment and storage medium
  • Code annotation document generation method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0051] see below figure 1 , figure 1 It is a flow chart of a method for generating a code annotation document provided by the embodiment of the present application.

[0052] Specific steps can include:

[0053] S101: Receive a comment generation request, and determine an object code file corresponding to the comment generation request;

[0054] Wh...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a code annotation document generation method, and the method comprises the steps: receiving an annotation generation request, and determining a target code file corresponding to the annotation generation request; analyzing the target code file into a Psi tree, and determining a to-be-annotated text according to the Psi tree; and generating annotation contents corresponding to the to-be-annotated text by using an annotation dictionary, and generating an annotation document of the target code file according to the annotation contents. The code annotation document can be automatically generated, and the generation efficiency of the code annotation document is improved. The invention furthermore discloses a code annotation document generation device, electronic equipment and a storage medium, which have the above beneficial effects.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for generating a code annotation document, an electronic device, and a storage medium. Background technique [0002] The code comment document is the comment description of the code content. Through the code comment document, the class, method, parameter, return value, member and other description information can be obtained from the program source code, so as to generate the API interface document corresponding to the source code. Good, complete and detailed code comment documents help developers to understand the code more conveniently, quickly and accurately, so that code readers can know the specific functions and functions of corresponding methods or classes without reading the source code. Code comment documentation can also help API callers to easily write calling code. [0003] In related technologies, code comment documents are completely...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/169G06F8/73
CPCG06F40/169G06F8/73Y02D10/00
Inventor 吴迪凌利虎虞佳祺
Owner 亿企赢网络科技有限公司