diff

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiffCommand

func NewDiffCommand() *cobra.Command

Types

type FileFragment

type FileFragment struct {
	Path      string                    `json:"path"`
	Lines     []int                     `json:"lines"`
	Functions []*sibyl2.FunctionContext `json:"functions"`
}

func (*FileFragment) Flatten

func (f *FileFragment) Flatten() *ThinFileFragment

type FunctionWithWeight

type FunctionWithWeight struct {
	*extractor.Function
	ReferenceCount  int `json:"referenceCount"`
	ReferencedCount int `json:"referencedCount"`
}

type ParseResult

type ParseResult struct {
	Fragments []*FileFragment `json:"fragments"`
}

func (*ParseResult) Flatten

func (p *ParseResult) Flatten() *ThinParseResult

type ThinFileFragment

type ThinFileFragment struct {
	Path      string                `json:"path"`
	Lines     []int                 `json:"lines"`
	Functions []*FunctionWithWeight `json:"functions"`
}

type ThinParseResult

type ThinParseResult struct {
	Fragments []*ThinFileFragment `json:"fragments"`
}

Jump to

Keyboard shortcuts

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