package
0.14.1
Repository: https://github.com/bufbuild/protocompile.git
Documentation: pkg.go.dev

# Functions

GenerateSourceInfo generates source code info for the given AST.
WithExtraComments will result in source code info that contains extra comments.
WithExtraOptionLocations will result in source code info that contains extra locations to describe elements inside of a message literal.

# Structs

ArrayLiteralSourceInfo represents source info paths for the child elements of an [*ast.ArrayLiteralNode].
MessageLiteralSourceInfo represents source info paths for the child elements of an [*ast.MessageLiteralNode].
OptionSourceInfo describes the source info path for an option value and contains information about the value's descendants in the AST.

# Interfaces

GenerateOption represents an option for how source code info is generated.
OptionChildrenSourceInfo represents source info paths for child elements of an option value.

# Type aliases

OptionIndex is a mapping of AST nodes that define options to corresponding paths into the containing file descriptor.