Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bufbuild/protocompile
/ functions
Functions
1,436 in github.com/bufbuild/protocompile
⨍
Functions
1,436
◇
Types & classes
233
↓ 11 callers
Method
setError
(lval *protoSymType, err error)
parser/lexer.go:441
↓ 11 callers
Function
updateNodeIndexWithOptions
(orig, clone *result, origProto, cloneProto M)
parser/clone.go:176
↓ 10 callers
Method
AsProto
AsProto returns the underlying descriptor proto. The concrete type of the proto message depends on the type of this descriptor: Descriptor Type
protoutil/protos.go:75
↓ 10 callers
Method
ByNumber
(n protoreflect.FieldNumber)
linker/descriptors.go:1027
↓ 10 callers
Method
Edition
Edition returns the numeric value of a google.protobuf.Edition enum value that corresponds to the edition of this file. If the file does not use editi
internal/editions/editions.go:138
↓ 10 callers
Method
FieldExtendee
()
ast/field.go:35
↓ 10 callers
Method
FieldLabel
()
ast/field.go:31
↓ 10 callers
Method
FieldTag
()
ast/field.go:34
↓ 10 callers
Function
NewGroupNode
NewGroupNode creates a new *GroupNode. The label and options arguments may be nil but the others must be non-nil. - label: The token corresponding to
ast/field.go:250
↓ 10 callers
Method
TokenInfo
(t Token)
ast/file.go:119
↓ 10 callers
Method
Values
()
linker/descriptors.go:757
↓ 10 callers
Method
getPackage
(pkg protoreflect.FullName, exact bool)
linker/symbols.go:232
↓ 10 callers
Function
qualify
(qualifier, name string)
options/options_test.go:366
↓ 10 callers
Method
resolveOptions
(handler *reporter.Handler, elemType string, elemName protoreflect.FullName, opts []*descriptorpb.Uninterprete
linker/resolve.go:521
↓ 9 callers
Function
ClonePath
(path protoreflect.SourcePath)
internal/util.go:233
↓ 9 callers
Function
Error
Error creates a new ErrorWithPos from the given error and source position.
reporter/errors.go:41
↓ 9 callers
Function
LoadDescriptorSet
(t *testing.T, path string, res linker.Resolver)
internal/prototest/util.go:33
↓ 9 callers
Method
Messages
()
linker/files.go:338
↓ 9 callers
Method
SourceLocations
()
linker/descriptors.go:279
↓ 9 callers
Function
clearKnownExtensionsFromOptions
(t *testing.T, options proto.Message)
protoutil/editions_test.go:637
↓ 9 callers
Function
compileFile
( t *testing.T, filename string, sources *protocompile.SourceResolver, deps ...*descriptorpb.FileDescripto
protoutil/editions_test.go:555
↓ 9 callers
Function
generateSourceCodeInfoForOption
(opts OptionIndex, sci *sourceCodeInfo, n *ast.OptionNode, compact bool, uninterpIndex *int32, path []int32)
sourceinfo/source_code_info.go:191
↓ 9 callers
Function
hasMessage
(fd *descriptorpb.FileDescriptorProto, name string)
parser/parser_test.go:885
↓ 9 callers
Function
interpretElementOptions
( interp *interpreter, fqn string, target *targetType[Elem, OptsStruct, Opts], elem Elem, customOpts bool
options/options.go:560
↓ 9 callers
Function
newTargetType
( t descriptorpb.FieldOptions_OptionTargetType, setUninterpretedOptions func(opts Opts, uninterpreted []*des
options/target_types.go:70
↓ 9 callers
Function
numBuckets
(mapSize int)
internal/benchmarks/measure.go:188
↓ 9 callers
Function
prependRunes
(convert func(*ast.RuneNode) T, runes []*ast.RuneNode, elements []T)
parser/ast.go:96
↓ 9 callers
Function
shallowCopy
(msg M)
options/source_retention_options.go:493
↓ 9 callers
Function
toStringValueNode
(strs []*ast.StringLiteralNode)
parser/ast.go:29
↓ 9 callers
Method
unreadRune
(r rune)
parser/fastscan/lexer.go:101
↓ 9 callers
Function
validateNoFeatures
(res *result, syntax protoreflect.Syntax, scope string, opts []*descriptorpb.UninterpretedOption, handler *rep
parser/validate.go:110
↓ 8 callers
Function
Descriptors
Descriptors walks all descriptors in the given file using a depth-first traversal, calling the given function for each descriptor in the hierarchy. Th
walk/walk.go:53
↓ 8 callers
Method
GetElements
()
ast/options.go:390
↓ 8 callers
Method
HandleError
HandleError handles the given error. If the given err is an ErrorWithPos, it is reported, and this function returns the error returned by the reporter
reporter/reporter.go:121
↓ 8 callers
Method
Has
(s protoreflect.Name)
linker/descriptors.go:580
↓ 8 callers
Method
Lex
(lval *protoSymType)
parser/proto.y.go:950
↓ 8 callers
Method
MapValue
()
linker/descriptors.go:1256
↓ 8 callers
Function
NewArrayLiteralNode
NewArrayLiteralNode creates a new *ArrayLiteralNode. The openBracket and closeBracket args must be non-nil and represent the "[" and "]" runes that su
ast/values.go:363
↓ 8 callers
Method
Package
()
linker/descriptors.go:249
↓ 8 callers
Method
TrailingComments
TrailingComments returns the trailing comment for the element, if any. An element will have a trailing comment only if it is the last token on a line
ast/file_info.go:537
↓ 8 callers
Function
fieldName
(fld protoreflect.FieldDescriptor)
options/options.go:1563
↓ 8 callers
Method
handleError
(err error)
options/options.go:176
↓ 7 callers
Method
ByPath
(p protoreflect.SourcePath)
linker/descriptors.go:382
↓ 7 callers
Method
FieldName
()
ast/field.go:32
↓ 7 callers
Function
FindOption
(res hasOptionNode, handler errorHandler, scope string, opts []*descriptorpb.UninterpretedOption, name string)
internal/options.go:34
↓ 7 callers
Method
GetInputType
()
ast/service.go:106
↓ 7 callers
Method
GetOutputType
()
ast/service.go:107
↓ 7 callers
Function
JSONName
JSONName returns the default JSON name for a field with the given name. This mirrors the algorithm in protoc: https://github.com/protocolbuffers/pro
internal/util.go:29
↓ 7 callers
Function
NewSourceSpan
NewSourceSpan creates a new span that covers the given range.
ast/file_info.go:607
↓ 7 callers
Function
ResolverFromFile
ResolverFromFile returns a Resolver that can resolve any element that is visible to the given file. It will search the given file, its imports, and an
linker/files.go:195
↓ 7 callers
Method
asTerminalNode
()
ast/file_info.go:391
↓ 7 callers
Method
asUninterpretedOption
(node *ast.OptionNode)
parser/result.go:197
↓ 7 callers
Function
descriptorTypeWithArticle
(d protoreflect.Descriptor)
linker/resolve.go:128
↓ 7 callers
Function
generateSourceCodeInfoForField
(opts OptionIndex, sci *sourceCodeInfo, n ast.FieldDeclNode, path []int32)
sourceinfo/source_code_info.go:505
↓ 7 callers
Function
joinNames
(prefix, name string)
walk/walk_test.go:73
↓ 7 callers
Method
newToken
()
parser/lexer.go:363
↓ 6 callers
Function
CheckFiles
(t *testing.T, act protoreflect.FileDescriptor, expSet *descriptorpb.FileDescriptorSet, recursive bool)
internal/prototest/util.go:43
↓ 6 callers
Function
GetEditionDefaults
GetEditionDefaults returns the default feature values for the given edition. It returns nil if the given edition is not known. This only populates kn
internal/editions/editions.go:176
↓ 6 callers
Method
LeadingWhitespace
()
ast/file_info.go:403
↓ 6 callers
Function
NewMessageLiteralNode
NewMessageLiteralNode creates a new *MessageLiteralNode. The openSym and closeSym runes must not be nil and should be "{" and "}" or "<" and ">". Unl
ast/values.go:432
↓ 6 callers
Function
NewRangeNode
NewRangeNode creates a new *RangeNode. The start argument must be non-nil. The to argument represents the "to" keyword. If present (i.e. if it is non-
ast/ranges.go:132
↓ 6 callers
Method
Node
Node returns the AST node from which the given message was created. This can return nil, such as if the given message is not part of the FileDescripto
parser/parser.go:133
↓ 6 callers
Method
SourcePos
(offset int)
ast/file_info.go:349
↓ 6 callers
Method
importPackages
(pkgSpan ast.SourceSpan, pkg protoreflect.FullName, handler *reporter.Handler)
linker/symbols.go:171
↓ 6 callers
Function
isSentinelDescriptor
(d protoreflect.Descriptor)
linker/resolve.go:780
↓ 6 callers
Function
measure
(t *testing.T, v any)
internal/benchmarks/benchmark_test.go:610
↓ 6 callers
Method
measure
(value reflect.Value)
internal/benchmarks/measure.go:120
↓ 6 callers
Method
memoryUsed
()
internal/benchmarks/measure.go:110
↓ 6 callers
Method
newBlockLocWithComments
(n, openBrace ast.Node, path []int32)
sourceinfo/source_code_info.go:687
↓ 6 callers
Function
protoTokname
(c int)
parser/proto.y.go:975
↓ 6 callers
Function
resolveFeature
resolveFeature resolves a feature for the given descriptor. If the given element is in a proto2 or proto3 syntax file, this skips resolution and just
linker/descriptors.go:1865
↓ 6 callers
Function
resolveInFile
(f File, publicImportsOnly bool, checked []string, fn func(File) (T, error))
linker/resolve.go:51
↓ 6 callers
Function
runParseErrorTestCases
(t *testing.T, testCases map[string]parseErrorTestCase, expected string)
parser/parser_test.go:89
↓ 6 callers
Function
setTokenName
(token int, text string)
parser/parser.go:46
↓ 6 callers
Function
testVisitors
The single visitor returned has all functions set to record the method call. The slice of visitors has one element per function, each with exactly one
ast/visitor_test.go:33
↓ 6 callers
Function
updateNodeIndex
(orig, clone *result, origProto, cloneProto M)
parser/clone.go:153
↓ 5 callers
Method
AsItem
AsItem returns the Item that corresponds to t.
ast/file_info.go:387
↓ 5 callers
Method
AsMessage
()
ast/field.go:357
↓ 5 callers
Function
AssertMessagesEqual
(t *testing.T, exp, act proto.Message, description string)
internal/prototest/util.go:80
↓ 5 callers
Function
CanSupportMessageSets
CanSupportMessageSets returns true if the protobuf-go runtime supports serializing messages with the message set wire format.
internal/messageset/messageset.go:33
↓ 5 callers
Function
Clone
Clone returns a copy of the given result. Since descriptor protos may be mutated during linking, this can return a defensive copy so that mutations do
parser/clone.go:41
↓ 5 callers
Method
ContainingOneof
()
linker/descriptors.go:1494
↓ 5 callers
Method
Default
()
linker/descriptors.go:1267
↓ 5 callers
Method
Error
Error returns the handler result. If any errors have been reported then this returns a non-nil error. If the reporter never returned a non-nil error t
reporter/reporter.go:201
↓ 5 callers
Method
Extensions
()
linker/files.go:339
↓ 5 callers
Method
IsClosed
()
linker/descriptors.go:769
↓ 5 callers
Function
IsZeroLocation
IsZeroLocation returns true if the given loc is a zero value (which is returned from queries that have no result).
internal/util.go:125
↓ 5 callers
Method
ItemInfo
(i Item)
ast/file.go:123
↓ 5 callers
Function
NewEmptyDeclNode
NewEmptyDeclNode creates a new *EmptyDeclNode. The one argument must be non-nil.
ast/node.go:121
↓ 5 callers
Function
NewFileNode
NewFileNode creates a new *FileNode. The syntax parameter is optional. If it is absent, it means the file had no syntax declaration. This function pa
ast/file.go:53
↓ 5 callers
Function
NewSignedFloatLiteralNode
NewSignedFloatLiteralNode creates a new *SignedFloatLiteralNode. Both arguments must be non-nil.
ast/values.go:312
↓ 5 callers
Method
Oneofs
()
linker/descriptors.go:525
↓ 5 callers
Method
Parent
Parent returns the parent node of the currently visited node. If the node currently being visited is the root supplied to Walk then nil is returned.
ast/walk.go:219
↓ 5 callers
Method
asUninterpretedOptions
(nodes []*ast.OptionNode)
parser/result.go:186
↓ 5 callers
Method
findOptionNode
( path []int32, element proto.Message, )
options/options.go:995
↓ 5 callers
Method
isDummyFile
()
ast/file_info.go:217
↓ 5 callers
Method
newLocWithoutComments
(n ast.Node, path []int32)
sourceinfo/source_code_info.go:639
↓ 5 callers
Function
newSrcInfo
(path []int32, children sourceinfo.OptionChildrenSourceInfo)
options/options.go:2262
↓ 5 callers
Method
putFieldNode
(f *descriptorpb.FieldDescriptorProto, n ast.FieldDeclNode)
parser/result.go:963
↓ 5 callers
Function
reportSymbolCollision
(span ast.SourceSpan, fqn protoreflect.FullName, additionIsEnumVal bool, existing symbolEntry, handler *report
linker/symbols.go:257
← previous
next →
101–200 of 1,436, ranked by callers