package
2.0.0+incompatible
Repository: https://github.com/phpstudyer/protoreflect.git
Documentation: pkg.go.dev

# Packages

Package ast defines types for modeling the AST (Abstract Syntax Tree) for the protocol buffers source language.

# Functions

FileContentsFromMap returns a FileAccessor that uses the given map of file contents.
ResolveFilenames tries to resolve fileNames into paths that are relative to directories in the given importPaths.

# Variables

ErrInvalidSource is a sentinel error that is returned by calls to Parser.ParseFiles and Parser.ParseFilesButDoNotLink in the event that syntax or link errors are encountered, but the parser's configured ErrorReporter always returns nil.
ErrLookupImportAndProtoSet is the error returned if both LookupImport and LookupImportProto are set.
ErrNoSyntax is a sentinel error that may be passed to a warning reporter.

# Structs

ErrorWithSourcePos is an error about a proto source file that includes information about the location in the file that caused the error.
Parser parses proto source into descriptors.

# Interfaces

ErrorWithPos is an error about a proto source file that includes information about the location in the file that caused the error.

# Type aliases

ErrorReporter is responsible for reporting the given error.
FileAccessor is an abstraction for opening proto source files.
SourcePos is the same as ast.SourcePos.
WarningReporter is responsible for reporting the given warning.