MCPcopy Create free account

hub / github.com/bufbuild/protocompile / functions

Functions1,436 in github.com/bufbuild/protocompile

↓ 1 callersMethodVisitUintLiteralNode
VisitUintLiteralNode is invoked when visiting a *UintLiteralNode in the AST.
ast/walk.go:323
↓ 1 callersMethodWarning
Warning is called when the given warnings is encountered and needs to be reported to the calling program. Despite the argument being an error type, a
reporter/reporter.go:54
↓ 1 callersFunctionWithAfter
WithAfter returns a WalkOption that will cause the given function to be invoked after a node (as well as any descendants) is visited during a walk ope
ast/walk.go:60
↓ 1 callersFunctionWithBefore
WithBefore returns a WalkOption that will cause the given function to be invoked before a node is visited during a walk operation. If this hook return
ast/walk.go:45
↓ 1 callersFunctionWithExtraComments
WithExtraComments will result in source code info that contains extra comments. By default, comments are only generated for full declarations. Inline
sourceinfo/source_code_info.go:116
↓ 1 callersFunctionWithExtraOptionLocations
WithExtraOptionLocations will result in source code info that contains extra locations to describe elements inside of a message literal. By default, o
sourceinfo/source_code_info.go:127
↓ 1 callersFunctionWithOverrideDescriptorProto
WithOverrideDescriptorProto returns an option that indicates that the given file should be consulted when looking up a definition for an option type.
options/options.go:90
↓ 1 callersFunctionWriteEscapedBytes
(buf *bytes.Buffer, b []byte)
internal/util.go:90
↓ 1 callersFunctionactualDescriptor
actualDescriptor returns the actual field descriptor referenced by msg that corresponds to the given ext (i.e. same number). It returns nil if msg has
internal/editions/editions.go:375
↓ 1 callersFunctionadaptFeatureSet
(msg *descriptorpb.FeatureSet, field protoreflect.FieldDescriptor)
internal/editions/editions.go:261
↓ 1 callersFunctionaddDepsToResolver
(resolver protocompile.Resolver, deps ...*descriptorpb.FileDescriptorProto)
protoutil/editions_test.go:592
↓ 1 callersMethodaddExtension
(extendee protoreflect.FullName, tag protoreflect.FieldNumber, span ast.SourceSpan, handler *reporter.Handler)
linker/symbols.go:559
↓ 1 callersFunctionaddFileDescriptorsToMap
(files []F, allFiles map[string]*descriptorpb.FileDescriptorProto)
linker/linker_test.go:4523
↓ 1 callersFunctionallowedProto3Extendee
(n string)
linker/resolve.go:296
↓ 1 callersMethodapply
(*sourceCodeInfo)
sourceinfo/source_code_info.go:108
↓ 1 callersMethodasAST
(name string, r SearchResult)
compiler.go:673
↓ 1 callersMethodasEnumReservedRange
(rng *ast.RangeNode, handler *reporter.Handler)
parser/result.go:512
↓ 1 callersMethodasEnumValue
(ev *ast.EnumValueNode, handler *reporter.Handler)
parser/result.go:448
↓ 1 callersMethodasExtensionRanges
(node *ast.ExtensionRangeNode, maxTag int32, handler *reporter.Handler)
parser/result.go:430
↓ 1 callersMethodasFile
(ctx context.Context, name string, r SearchResult)
compiler.go:412
↓ 1 callersMethodasMapDescriptors
(mapField *ast.MapFieldNode, syntax protoreflect.Syntax, maxTag int32, handler *reporter.Handler, depth int)
parser/result.go:397
↓ 1 callersMethodasMessageReservedRange
(rng *ast.RangeNode, maxTag int32, handler *reporter.Handler)
parser/result.go:712
↓ 1 callersMethodasMethodDescriptor
(node *ast.RPCNode)
parser/result.go:462
↓ 1 callersMethodasParseResult
(name string, r SearchResult)
compiler.go:642
↓ 1 callersMethodasServiceDescriptor
(svc *ast.ServiceNode)
parser/result.go:748
↓ 1 callersFunctionasSourceLocations
(srcInfoProtos []*descriptorpb.SourceCodeInfo_Location)
linker/descriptors.go:293
↓ 1 callersMethodasUninterpretedOptionName
(parts []*ast.FieldReferenceNode)
parser/result.go:253
↓ 1 callersFunctionbuildUninterpretedMapForFile
(fd *descriptorpb.FileDescriptorProto, opts map[string]interface{})
options/options_test.go:276
↓ 1 callersFunctionbuildUninterpretedMapForMessage
(qual string, md *descriptorpb.DescriptorProto, opts map[string]interface{})
options/options_test.go:296
↓ 1 callersFunctioncheckAttributes
(t *testing.T, exp, actual container, path string)
linker/descriptors_ext_test.go:120
↓ 1 callersFunctioncheckAttributesInEnums
(t *testing.T, exp, actual protoreflect.EnumDescriptors, where string)
linker/descriptors_ext_test.go:232
↓ 1 callersFunctioncheckAttributesInOneofs
(t *testing.T, exp, actual protoreflect.OneofDescriptors, where string)
linker/descriptors_ext_test.go:219
↓ 1 callersMethodcheckFieldUsagesInMessage
checkFieldUsagesInMessage verifies that all fields present in the given message can be used for the given target type. When an AST is present, we vali
options/options.go:1427
↓ 1 callersMethodcheckFileLocked
(f protoreflect.FileDescriptor, handler *reporter.Handler)
linker/symbols.go:285
↓ 1 callersFunctioncheckFiles
(t *testing.T, act protoreflect.FileDescriptor, expSet *descriptorpb.FileDescriptorSet, recursive bool, checke
internal/prototest/util.go:48
↓ 1 callersMethodcheckForDependencyCycle
(res *result, sequence []string, span ast.SourceSpan, checked map[string]struct{})
compiler.go:530
↓ 1 callersMethodcheckResultLocked
(r *result, handler *reporter.Handler)
linker/symbols.go:479
↓ 1 callersFunctioncompile
(t *testing.T, input map[string]string)
linker/linker_test.go:3984
↓ 1 callersMethodcomplete
(f linker.File)
compiler.go:230
↓ 1 callersFunctioncomputeSourceLocIndex
(locs []protoreflect.SourceLocation)
linker/descriptors.go:283
↓ 1 callersFunctionconvertToProtoreflectDescriptors
(files linker.Files)
linker/linker_test.go:4512
↓ 1 callersMethodcountElements
(file *descriptorpb.FileDescriptorProto)
linker/pool.go:105
↓ 1 callersMethodcountElementsInMessages
(msgs []*descriptorpb.DescriptorProto)
linker/pool.go:115
↓ 1 callersMethodcreateDescendants
()
linker/resolve.go:155
↓ 1 callersMethodcreateEnumDescriptor
(ret *enumDescriptor, ed *descriptorpb.EnumDescriptorProto, parent protoreflect.Descriptor, index int, fqn str
linker/descriptors.go:697
↓ 1 callersFunctioncreateEnumRanges
(rangeProtos []*descriptorpb.EnumDescriptorProto_EnumReservedRange)
linker/descriptors.go:779
↓ 1 callersMethodcreateEnumValueDescriptor
(ret *enValDescriptor, ed *descriptorpb.EnumValueDescriptorProto, parent *enumDescriptor, index int, fqn strin
linker/descriptors.go:860
↓ 1 callersMethodcreateEnumValues
(prefix string, parent *enumDescriptor, enValProtos []*descriptorpb.EnumValueDescriptorProto, pool *allocPool)
linker/descriptors.go:812
↓ 1 callersMethodcreateExtTypeDescriptor
(ret *extTypeDescriptor, fd *descriptorpb.FieldDescriptorProto, parent protoreflect.Descriptor, index int, fqn
linker/descriptors.go:952
↓ 1 callersMethodcreateFieldDescriptor
(ret *fldDescriptor, fd *descriptorpb.FieldDescriptorProto, parent *msgDescriptor, index int, fqn string)
linker/descriptors.go:1053
↓ 1 callersMethodcreateFields
(prefix string, parent *msgDescriptor, fldProtos []*descriptorpb.FieldDescriptorProto, pool *allocPool)
linker/descriptors.go:977
↓ 1 callersMethodcreateFileDescriptor
(filename string, file *ast.FileNode, handler *reporter.Handler)
parser/result.go:86
↓ 1 callersMethodcreateImports
()
linker/descriptors.go:329
↓ 1 callersMethodcreateMessageDescriptor
(ret *msgDescriptor, md *descriptorpb.DescriptorProto, parent protoreflect.Descriptor, index int, fqn string,
linker/descriptors.go:454
↓ 1 callersMethodcreateMethodDescriptor
(ret *mtdDescriptor, mtd *descriptorpb.MethodDescriptorProto, parent *svcDescriptor, index int, fqn string)
linker/descriptors.go:1774
↓ 1 callersMethodcreateMethods
(prefix string, parent *svcDescriptor, mtdProtos []*descriptorpb.MethodDescriptorProto, pool *allocPool)
linker/descriptors.go:1734
↓ 1 callersMethodcreateOneofDescriptor
(ret *oneofDescriptor, ood *descriptorpb.OneofDescriptorProto, parent *msgDescriptor, index int, fqn string)
linker/descriptors.go:1558
↓ 1 callersMethodcreateOneofs
(prefix string, parent *msgDescriptor, ooProtos []*descriptorpb.OneofDescriptorProto, pool *allocPool)
linker/descriptors.go:1518
↓ 1 callersMethodcreateServiceDescriptor
(ret *svcDescriptor, sd *descriptorpb.ServiceDescriptorProto, index int, fqn string, pool *allocPool)
linker/descriptors.go:1673
↓ 1 callersMethodcreateServices
(prefix string, svcProtos []*descriptorpb.ServiceDescriptorProto, pool *allocPool)
linker/descriptors.go:1634
↓ 1 callersMethoddefaultValue
(mc *internal.MessageContext, fld *descriptorpb.FieldDescriptorProto, val ast.ValueNode)
options/options.go:503
↓ 1 callersMethoddefaultValueFromProto
(mc *internal.MessageContext, fld *descriptorpb.FieldDescriptorProto, opt *descriptorpb.UninterpretedOption, n
options/options.go:521
↓ 1 callersFunctiondescribeLocation
(buf *bytes.Buffer, loc protoreflect.SourceLocation, resolver linker.Resolver)
sourceinfo/source_code_info_test.go:245
↓ 1 callersFunctiondescribePath
(buf *bytes.Buffer, path protoreflect.SourcePath, md protoreflect.MessageDescriptor, resolver linker.Resolver)
sourceinfo/source_code_info_test.go:269
↓ 1 callersFunctiondescribeSourceCodeInfo
(fileName string, locs protoreflect.SourceLocations, resolver linker.Resolver)
sourceinfo/source_code_info_test.go:233
↓ 1 callersMethoddoCompile
(ctx context.Context, file string, r *result)
compiler.go:355
↓ 1 callersFunctiondownloadAndExpand
(url, targetDir string)
internal/benchmarks/benchmark_test.go:139
↓ 1 callersFunctionencodeDefaultBytes
(b []byte)
options/options.go:539
↓ 1 callersFunctionenumDescriptor
(en protoreflect.EnumDescriptor, enter, exit func(protoreflect.Descriptor) error)
walk/walk.go:173
↓ 1 callersFunctionenumValCamelCase
enumValCamelCase converts the given string to upper-camel-case. The algorithm is adapted from the protoc source: https://github.com/protocolbuffers
linker/validate.go:795
↓ 1 callersMethoderrWithCurrentPos
TODO: Accept both a start and end offset, and use that to create a span.
parser/lexer.go:757
↓ 1 callersFunctionfileScope
(r *result, checkedCache []string)
linker/resolve.go:677
↓ 1 callersFunctionfillInMissingLabels
(fd *descriptorpb.FileDescriptorProto)
parser/validate.go:543
↓ 1 callersFunctionfillInMissingLabelsInMsg
(md *descriptorpb.DescriptorProto)
parser/validate.go:552
↓ 1 callersFunctionfindAndLink
(t *testing.T, filename string, fdset *descriptorpb.FileDescriptorSet, soFar *protoregistry.Files)
compiler_test.go:174
↓ 1 callersFunctionfindEnumReservedNameNode
(enumNode ast.Node, name string)
parser/validate.go:441
↓ 1 callersFunctionfindFileInSet
(fps *descriptorpb.FileDescriptorSet, name string)
internal/prototest/util.go:70
↓ 1 callersFunctionfindMatchingValueNode
( md protoreflect.MessageDescriptor, path protoreflect.SourcePath, currIsRepeated bool, repeatedCount int,
linker/validate.go:996
↓ 1 callersFunctionfindMessageReservedNameNode
(msgNode ast.MessageDeclNode, name string)
parser/validate.go:285
↓ 1 callersFunctionfindOptionValueNode
( path []int32, node ast.Node, value ast.ValueNode, srcInfo *sourceinfo.OptionSourceInfo, )
options/options.go:1094
↓ 1 callersMethodfindScalarOptionSpan
( root ast.NodeWithOptions, name string, )
linker/validate.go:902
↓ 1 callersFunctionfixupProtocSourceCodeInfo
(info *descriptorpb.SourceCodeInfo)
sourceinfo/source_code_info_test.go:128
↓ 1 callersFunctionflattenNode
(f *ast.FileNode, n ast.Node, buf *bytes.Buffer)
parser/result.go:239
↓ 1 callersFunctiongenerateSourceCodeInfoForEnumValue
(opts OptionIndex, sci *sourceCodeInfo, n *ast.EnumValueNode, path []int32)
sourceinfo/source_code_info.go:434
↓ 1 callersFunctiongenerateSourceCodeInfoForExtensionRanges
(opts OptionIndex, sci *sourceCodeInfo, n *ast.ExtensionRangeNode, extRangeIndex *int32, path []int32)
sourceinfo/source_code_info.go:557
↓ 1 callersFunctiongenerateSourceCodeInfoForMethod
(opts OptionIndex, sci *sourceCodeInfo, n *ast.RPCNode, path []int32)
sourceinfo/source_code_info.go:605
↓ 1 callersFunctiongenerateSourceCodeInfoForOneof
(opts OptionIndex, sci *sourceCodeInfo, n *ast.OneofNode, fieldIndex, nestedMsgIndex *int32, fieldPath, nested
sourceinfo/source_code_info.go:482
↓ 1 callersFunctiongenerateSourceCodeInfoForService
(opts OptionIndex, sci *sourceCodeInfo, n *ast.ServiceNode, path []int32)
sourceinfo/source_code_info.go:590
↓ 1 callersFunctiongenerateSourceInfoForFile
(opts OptionIndex, sci *sourceCodeInfo, file *ast.FileNode)
sourceinfo/source_code_info.go:143
↓ 1 callersFunctiongenerateSourceInfoForOptionChildren
(sci *sourceCodeInfo, n ast.ValueNode, pathPrefix, path []int32, childInfo OptionChildrenSourceInfo)
sourceinfo/source_code_info.go:253
↓ 1 callersFunctiongenerateVisitors
()
ast/visitor_test.go:659
↓ 1 callersMethodgetBlockedOn
()
compiler.go:241
↓ 1 callersMethodgetEnumValues
(count int)
linker/pool.go:81
↓ 1 callersMethodgetEnums
(count int)
linker/pool.go:75
↓ 1 callersMethodgetExtensions
(count int)
linker/pool.go:87
↓ 1 callersMethodgetFields
(count int)
linker/pool.go:63
↓ 1 callersMethodgetImportLocation
(path string)
linker/validate.go:1133
↓ 1 callersMethodgetMessages
(count int)
linker/pool.go:57
↓ 1 callersMethodgetMethods
(count int)
linker/pool.go:99
↓ 1 callersMethodgetOneofs
(count int)
linker/pool.go:69
← previousnext →601–700 of 1,436, ranked by callers