Documentation
¶
Overview ¶
Package directive parses Go and LLGo source directives without assigning feature-specific semantics to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLinknameArgs ¶ added in v1.0.10
ParseLinknameArgs splits a local symbol from its link target. A single-name go:linkname annotation has no target. Keep target whitespace normalization identical in declaration collection and legacy imports.
Types ¶
type Directive ¶
Directive is one normalized Go or LLGo source directive.
func ParseGroup ¶
func ParseGroup(doc *ast.CommentGroup) []Directive
ParseGroup returns all normalized directives in doc in source order.