MCPcopy Create free account

hub / github.com/bufbuild/protocompile / functions

Functions1,436 in github.com/bufbuild/protocompile

↓ 11 callersMethodsetError
(lval *protoSymType, err error)
parser/lexer.go:441
↓ 11 callersFunctionupdateNodeIndexWithOptions
(orig, clone *result, origProto, cloneProto M)
parser/clone.go:176
↓ 10 callersMethodAsProto
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 callersMethodByNumber
(n protoreflect.FieldNumber)
linker/descriptors.go:1027
↓ 10 callersMethodEdition
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 callersMethodFieldExtendee
()
ast/field.go:35
↓ 10 callersMethodFieldLabel
()
ast/field.go:31
↓ 10 callersMethodFieldTag
()
ast/field.go:34
↓ 10 callersFunctionNewGroupNode
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 callersMethodTokenInfo
(t Token)
ast/file.go:119
↓ 10 callersMethodValues
()
linker/descriptors.go:757
↓ 10 callersMethodgetPackage
(pkg protoreflect.FullName, exact bool)
linker/symbols.go:232
↓ 10 callersFunctionqualify
(qualifier, name string)
options/options_test.go:366
↓ 10 callersMethodresolveOptions
(handler *reporter.Handler, elemType string, elemName protoreflect.FullName, opts []*descriptorpb.Uninterprete
linker/resolve.go:521
↓ 9 callersFunctionClonePath
(path protoreflect.SourcePath)
internal/util.go:233
↓ 9 callersFunctionError
Error creates a new ErrorWithPos from the given error and source position.
reporter/errors.go:41
↓ 9 callersFunctionLoadDescriptorSet
(t *testing.T, path string, res linker.Resolver)
internal/prototest/util.go:33
↓ 9 callersMethodMessages
()
linker/files.go:338
↓ 9 callersMethodSourceLocations
()
linker/descriptors.go:279
↓ 9 callersFunctionclearKnownExtensionsFromOptions
(t *testing.T, options proto.Message)
protoutil/editions_test.go:637
↓ 9 callersFunctioncompileFile
( t *testing.T, filename string, sources *protocompile.SourceResolver, deps ...*descriptorpb.FileDescripto
protoutil/editions_test.go:555
↓ 9 callersFunctiongenerateSourceCodeInfoForOption
(opts OptionIndex, sci *sourceCodeInfo, n *ast.OptionNode, compact bool, uninterpIndex *int32, path []int32)
sourceinfo/source_code_info.go:191
↓ 9 callersFunctionhasMessage
(fd *descriptorpb.FileDescriptorProto, name string)
parser/parser_test.go:885
↓ 9 callersFunctioninterpretElementOptions
( interp *interpreter, fqn string, target *targetType[Elem, OptsStruct, Opts], elem Elem, customOpts bool
options/options.go:560
↓ 9 callersFunctionnewTargetType
( t descriptorpb.FieldOptions_OptionTargetType, setUninterpretedOptions func(opts Opts, uninterpreted []*des
options/target_types.go:70
↓ 9 callersFunctionnumBuckets
(mapSize int)
internal/benchmarks/measure.go:188
↓ 9 callersFunctionprependRunes
(convert func(*ast.RuneNode) T, runes []*ast.RuneNode, elements []T)
parser/ast.go:96
↓ 9 callersFunctionshallowCopy
(msg M)
options/source_retention_options.go:493
↓ 9 callersFunctiontoStringValueNode
(strs []*ast.StringLiteralNode)
parser/ast.go:29
↓ 9 callersMethodunreadRune
(r rune)
parser/fastscan/lexer.go:101
↓ 9 callersFunctionvalidateNoFeatures
(res *result, syntax protoreflect.Syntax, scope string, opts []*descriptorpb.UninterpretedOption, handler *rep
parser/validate.go:110
↓ 8 callersFunctionDescriptors
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 callersMethodGetElements
()
ast/options.go:390
↓ 8 callersMethodHandleError
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 callersMethodHas
(s protoreflect.Name)
linker/descriptors.go:580
↓ 8 callersMethodLex
(lval *protoSymType)
parser/proto.y.go:950
↓ 8 callersMethodMapValue
()
linker/descriptors.go:1256
↓ 8 callersFunctionNewArrayLiteralNode
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 callersMethodPackage
()
linker/descriptors.go:249
↓ 8 callersMethodTrailingComments
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 callersFunctionfieldName
(fld protoreflect.FieldDescriptor)
options/options.go:1563
↓ 8 callersMethodhandleError
(err error)
options/options.go:176
↓ 7 callersMethodByPath
(p protoreflect.SourcePath)
linker/descriptors.go:382
↓ 7 callersMethodFieldName
()
ast/field.go:32
↓ 7 callersFunctionFindOption
(res hasOptionNode, handler errorHandler, scope string, opts []*descriptorpb.UninterpretedOption, name string)
internal/options.go:34
↓ 7 callersMethodGetInputType
()
ast/service.go:106
↓ 7 callersMethodGetOutputType
()
ast/service.go:107
↓ 7 callersFunctionJSONName
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 callersFunctionNewSourceSpan
NewSourceSpan creates a new span that covers the given range.
ast/file_info.go:607
↓ 7 callersFunctionResolverFromFile
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 callersMethodasTerminalNode
()
ast/file_info.go:391
↓ 7 callersMethodasUninterpretedOption
(node *ast.OptionNode)
parser/result.go:197
↓ 7 callersFunctiondescriptorTypeWithArticle
(d protoreflect.Descriptor)
linker/resolve.go:128
↓ 7 callersFunctiongenerateSourceCodeInfoForField
(opts OptionIndex, sci *sourceCodeInfo, n ast.FieldDeclNode, path []int32)
sourceinfo/source_code_info.go:505
↓ 7 callersFunctionjoinNames
(prefix, name string)
walk/walk_test.go:73
↓ 7 callersMethodnewToken
()
parser/lexer.go:363
↓ 6 callersFunctionCheckFiles
(t *testing.T, act protoreflect.FileDescriptor, expSet *descriptorpb.FileDescriptorSet, recursive bool)
internal/prototest/util.go:43
↓ 6 callersFunctionGetEditionDefaults
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 callersMethodLeadingWhitespace
()
ast/file_info.go:403
↓ 6 callersFunctionNewMessageLiteralNode
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 callersFunctionNewRangeNode
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 callersMethodNode
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 callersMethodSourcePos
(offset int)
ast/file_info.go:349
↓ 6 callersMethodimportPackages
(pkgSpan ast.SourceSpan, pkg protoreflect.FullName, handler *reporter.Handler)
linker/symbols.go:171
↓ 6 callersFunctionisSentinelDescriptor
(d protoreflect.Descriptor)
linker/resolve.go:780
↓ 6 callersFunctionmeasure
(t *testing.T, v any)
internal/benchmarks/benchmark_test.go:610
↓ 6 callersMethodmeasure
(value reflect.Value)
internal/benchmarks/measure.go:120
↓ 6 callersMethodmemoryUsed
()
internal/benchmarks/measure.go:110
↓ 6 callersMethodnewBlockLocWithComments
(n, openBrace ast.Node, path []int32)
sourceinfo/source_code_info.go:687
↓ 6 callersFunctionprotoTokname
(c int)
parser/proto.y.go:975
↓ 6 callersFunctionresolveFeature
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 callersFunctionresolveInFile
(f File, publicImportsOnly bool, checked []string, fn func(File) (T, error))
linker/resolve.go:51
↓ 6 callersFunctionrunParseErrorTestCases
(t *testing.T, testCases map[string]parseErrorTestCase, expected string)
parser/parser_test.go:89
↓ 6 callersFunctionsetTokenName
(token int, text string)
parser/parser.go:46
↓ 6 callersFunctiontestVisitors
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 callersFunctionupdateNodeIndex
(orig, clone *result, origProto, cloneProto M)
parser/clone.go:153
↓ 5 callersMethodAsItem
AsItem returns the Item that corresponds to t.
ast/file_info.go:387
↓ 5 callersMethodAsMessage
()
ast/field.go:357
↓ 5 callersFunctionAssertMessagesEqual
(t *testing.T, exp, act proto.Message, description string)
internal/prototest/util.go:80
↓ 5 callersFunctionCanSupportMessageSets
CanSupportMessageSets returns true if the protobuf-go runtime supports serializing messages with the message set wire format.
internal/messageset/messageset.go:33
↓ 5 callersFunctionClone
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 callersMethodContainingOneof
()
linker/descriptors.go:1494
↓ 5 callersMethodDefault
()
linker/descriptors.go:1267
↓ 5 callersMethodError
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 callersMethodExtensions
()
linker/files.go:339
↓ 5 callersMethodIsClosed
()
linker/descriptors.go:769
↓ 5 callersFunctionIsZeroLocation
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 callersMethodItemInfo
(i Item)
ast/file.go:123
↓ 5 callersFunctionNewEmptyDeclNode
NewEmptyDeclNode creates a new *EmptyDeclNode. The one argument must be non-nil.
ast/node.go:121
↓ 5 callersFunctionNewFileNode
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 callersFunctionNewSignedFloatLiteralNode
NewSignedFloatLiteralNode creates a new *SignedFloatLiteralNode. Both arguments must be non-nil.
ast/values.go:312
↓ 5 callersMethodOneofs
()
linker/descriptors.go:525
↓ 5 callersMethodParent
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 callersMethodasUninterpretedOptions
(nodes []*ast.OptionNode)
parser/result.go:186
↓ 5 callersMethodfindOptionNode
( path []int32, element proto.Message, )
options/options.go:995
↓ 5 callersMethodisDummyFile
()
ast/file_info.go:217
↓ 5 callersMethodnewLocWithoutComments
(n ast.Node, path []int32)
sourceinfo/source_code_info.go:639
↓ 5 callersFunctionnewSrcInfo
(path []int32, children sourceinfo.OptionChildrenSourceInfo)
options/options.go:2262
↓ 5 callersMethodputFieldNode
(f *descriptorpb.FieldDescriptorProto, n ast.FieldDeclNode)
parser/result.go:963
↓ 5 callersFunctionreportSymbolCollision
(span ast.SourceSpan, fqn protoreflect.FullName, additionIsEnumVal bool, existing symbolEntry, handler *report
linker/symbols.go:257
← previousnext →101–200 of 1,436, ranked by callers