models

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 1 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL