Documentation
¶
Overview ¶
Package structure extracts declarations, lexical tokens, and logical source coordinates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Kind, Name, Receiver, Pointer, ValueType string
Line, EndLine, Level, From, NameFrom, NameTo int
Complete bool
}
Entry is a structural navigation fact. Byte offsets select its declaration and name; line spans are one-based and inclusive.
func (Entry) MarshalJSON ¶
type Source ¶
type Source struct {
Source string
Lines Lines
Format sourcekind.Format
Entries []Entry
Tokens []Token
}
Source is a parsed snapshot. Consumers leave its source facts unchanged.
func ParseOutline ¶
ParseOutline extracts structural facts without collecting semantic selector tokens.
type String ¶
type String string
String serializes the otherwise unrepresentable lone-surrogate names accepted by ECMAScript and JSON without corrupting them into replacement text.
func (String) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.