Documentation
¶
Overview ¶
Package code is the Stage-1 namespace for code-aware features (context extraction, lenses, actions, explainer). See ../REFACTOR_PLAN.md.
Index ¶
- func ApplyFix(action Action, content string) (string, error)
- func FormatContext(ctx *Context) string
- func FormatExplanation(exp *Explanation) string
- func FormatSuggestions(actions []Action, max int) string
- type Action
- type ActionDetector
- type ActionRule
- type Context
- type ContextExtractor
- type Explainer
- type Explanation
- type ExplanationSection
- type Lens
- type LensGenerator
- type LensProvider
- type Snippet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatContext ¶
func FormatExplanation ¶
func FormatExplanation(exp *Explanation) string
func FormatSuggestions ¶
Types ¶
type Action ¶
type Action = engine.CodeAction
type ActionDetector ¶
type ActionDetector = engine.ActionDetector
func NewActionDetector ¶
func NewActionDetector() *ActionDetector
type ActionRule ¶
type ActionRule = engine.ActionRule
type Context ¶
type Context = engine.CodeContext
type ContextExtractor ¶
type ContextExtractor = engine.ContextExtractor
func NewContextExtractor ¶
func NewContextExtractor(projectDir string, maxTokens int) *ContextExtractor
type Explainer ¶
type Explainer = engine.CodeExplainer
func NewExplainer ¶
func NewExplainer() *Explainer
type Explanation ¶
type Explanation = engine.CodeExplanation
type ExplanationSection ¶
type ExplanationSection = engine.ExplanationSection
type LensGenerator ¶
type LensGenerator = engine.LensGenerator
type LensProvider ¶
type LensProvider = engine.CodeLensProvider
func NewLensProvider ¶
func NewLensProvider() *LensProvider
type Snippet ¶
type Snippet = engine.CodeSnippet
Click to show internal directories.
Click to hide internal directories.