Documentation
¶
Index ¶
- func MapSpanForward(old span.Span, edits []source.Edit) span.Span
- type Session
- func (s *Session) ApplyEdits(edits []source.Edit) (UpdateResult, error)
- func (s Session) Diagnostics() []diag.Diagnostic
- func (s *Session) Parse()
- func (s Session) Profile() profile.Profile
- func (s Session) Revision() source.Revision
- func (s Session) Source() source.Source
- func (s Session) Tree() cst.Tree
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is part of the experimental JSONKit API.
func NewSession ¶
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
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.
Click to show internal directories.
Click to hide internal directories.