code

package
v0.0.0-...-b044383 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedFunction

type ChangedFunction struct {
	Name string
	Path string
}

type CodeDirectory

type CodeDirectory struct {

	// Directory is the directory where the code is stored.
	Path string
	// contains filtered or unexported fields
}

CodeDirectory is the directory where the code is stored.

func NewCodeDirectory

func NewCodeDirectory(path string) *CodeDirectory

NewCodeDirectory creates a new CodeDirectory.

func (*CodeDirectory) GetFileContent

func (c *CodeDirectory) GetFileContent(path string) ([]byte, error)

type FileDiff

type FileDiff struct {
	Path         string
	Patch        []diff.Chunk
	IsBinary     bool
	Status       FileStatus
	PreviousPath string
}

func (*FileDiff) IsRenamed

func (f *FileDiff) IsRenamed() bool

type FileStatus

type FileStatus string
const (
	ADDED    FileStatus = "added"
	MODIFIED FileStatus = "modified"
	REMOVED  FileStatus = "removed"
	RENAMED  FileStatus = "renamed"
)

type Scope

type Scope struct {
	Path      string `json:"path"`
	FuncName  string `json:"func_name"`
	StartLine int    `json:"startline"`
	StartCol  int    `json:"startcol"`
	EndLine   int    `json:"endline"`
	EndCol    int    `json:"endcol"`
}

Jump to

Keyboard shortcuts

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