Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentInfo ¶
type CommentInfo struct {
Text string `json:"text"`
LineNumber int `json:"line_number"`
FilePath string `json:"file_path"`
CommentType CommentType `json:"comment_type"`
IsDocstring bool `json:"is_docstring"`
Metadata map[string]string `json:"metadata,omitempty"`
}
CommentInfo holds information about a single comment in source code.
func (*CommentInfo) NormalizedText ¶
func (c *CommentInfo) NormalizedText() string
NormalizedText returns the comment text stripped of whitespace and lowercased.
type CommentType ¶
type CommentType string
CommentType represents the type of comment.
const ( CommentTypeLine CommentType = "line" CommentTypeBlock CommentType = "block" CommentTypeDocstring CommentType = "docstring" )
Click to show internal directories.
Click to hide internal directories.