incr

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapSpanForward

func MapSpanForward(old span.Span, edits []source.Edit) span.Span

MapSpanForward projects an old-coordinate span into new coordinates after edits. Overlaps are widened conservatively.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session is part of the experimental JSONKit API.

func NewSession

func NewSession(src source.Source, p profile.Profile) Session

NewSession is part of the experimental JSONKit API.

func (*Session) ApplyEdits

func (s *Session) ApplyEdits(edits []source.Edit) (UpdateResult, error)

func (Session) Diagnostics

func (s Session) Diagnostics() []diag.Diagnostic

func (*Session) Parse

func (s *Session) Parse()

func (Session) Profile

func (s Session) Profile() profile.Profile

func (Session) Revision

func (s Session) Revision() source.Revision

func (Session) Source

func (s Session) Source() source.Source

func (Session) Tree

func (s Session) Tree() cst.Tree

type UpdateResult

type UpdateResult struct {
	Tree        cst.Tree
	Diagnostics []diag.Diagnostic

	Reused   int
	Reparsed int

	Region span.Span
}

UpdateResult is part of the experimental JSONKit API.

Jump to

Keyboard shortcuts

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