MCPcopy Create free account

hub / github.com/bufbuild/protocompile / functions

Functions1,436 in github.com/bufbuild/protocompile

↓ 186 callersMethodString
()
ast/file_info.go:593
↓ 149 callersMethodGetName
()
ast/service.go:105
↓ 126 callersMethodNodeInfo
(n Node)
ast/file.go:24
↓ 117 callersMethodHandleErrorf
HandleErrorf handles an error with the given source position, creating the error using the given message format and arguments. If the handler has alr
reporter/reporter.go:165
↓ 116 callersMethodEnum
()
linker/descriptors.go:1505
↓ 108 callersMethodFullName
()
linker/descriptors.go:233
↓ 100 callersMethodName
()
ast/file.go:23
↓ 88 callersMethodnodeInfo
(n ast.Node)
options/options.go:277
↓ 85 callersMethodLen
()
sourceinfo/source_code_info.go:743
↓ 66 callersMethodGet
(i int)
linker/descriptors.go:576
↓ 61 callersMethodMessage
()
linker/descriptors.go:1509
↓ 59 callersFunctionErrorf
Errorf creates a new ErrorWithPos whose underlying error is created using the given message format and arguments (via fmt.Errorf).
reporter/errors.go:52
↓ 58 callersMethodToKeyword
ToKeyword is used to convert identifiers to keywords. Since keywords are not reserved in the protobuf language, they are initially lexed as identifier
ast/identifiers.go:64
↓ 48 callersMethodNumber
()
linker/descriptors.go:1103
↓ 46 callersMethodnewLoc
(n ast.Node, path []int32)
sourceinfo/source_code_info.go:667
↓ 45 callersMethodCompile
Compile compiles the given file names into fully-linked descriptors. The compiler's resolver is used to locate source code (or intermediate artifacts
compiler.go:134
↓ 44 callersMethodFileDescriptorProto
FileDescriptorProto returns the file descriptor proto.
parser/parser.go:124
↓ 44 callersMethodStart
()
ast/node.go:23
↓ 44 callersFunctionnewNodeWithRunes
(node T, trailingRunes ...*ast.RuneNode)
parser/ast.go:130
↓ 39 callersMethodvisitInterface
(node Node)
ast/walk.go:600
↓ 38 callersMethodError
(s string)
parser/proto.y.go:951
↓ 38 callersMethodKind
()
linker/descriptors.go:1128
↓ 37 callersMethodhandleErrorf
(span ast.SourceSpan, msg string, args ...interface{})
options/options.go:160
↓ 36 callersMethodGetNumber
()
ast/enum.go:107
↓ 36 callersFunctionNewHandler
NewHandler creates a new Handler that reports errors and warnings using the given reporter.
reporter/reporter.go:95
↓ 34 callersMethodPath
()
linker/descriptors.go:245
↓ 34 callersFunctionWithStandardImports
WithStandardImports returns a new resolver that knows about the same standard imports that are included with protoc. Note that this uses the descript
resolver.go:204
↓ 33 callersMethodByName
(s protoreflect.Name)
linker/descriptors.go:422
↓ 33 callersMethodFields
()
linker/descriptors.go:521
↓ 32 callersMethodWriteString
(s string)
ast/ast_roundtrip_test.go:117
↓ 29 callersMethodFindDescriptorByName
FindDescriptorByName returns the given named element that is defined in this file. If no such element exists, nil is returned.
linker/files.go:37
↓ 28 callersMethodIndex
(int)
sourceinfo/source_code_info.go:744
↓ 28 callersFunctionVisit
Visit implements the double-dispatch idiom and visits the given node by calling the appropriate method of the given visitor.
ast/walk.go:100
↓ 27 callersMethodFileNode
()
parser/result.go:849
↓ 26 callersMethodAsIdentifier
()
ast/identifiers.go:30
↓ 26 callersMethodEnd
()
ast/node.go:24
↓ 26 callersMethodGetOptions
()
options/target_types.go:31
↓ 25 callersMethodFullName
()
linker/resolve.go:823
↓ 23 callersMethodValue
Value returns a Go representation of the value. For scalars, this will be a string, int64, uint64, float64, or bool. This could also be an Identifier
ast/values.go:43
↓ 23 callersMethodpush
(element int32)
options/source_retention_options.go:103
↓ 23 callersMethodrequireSemicolon
(semicolons []*ast.RuneNode)
parser/lexer.go:765
↓ 23 callersFunctiontoElements
(convert func(*ast.RuneNode) T, node T, runes []*ast.RuneNode)
parser/ast.go:137
↓ 22 callersMethodFindFileByPath
FindFileByPath searches for information for the given file path. If no result is available, it should return a non-nil error, such as protoregistry.No
resolver.go:43
↓ 22 callersMethodIsMap
()
linker/descriptors.go:1227
↓ 22 callersMethodParentFile
()
linker/descriptors.go:191
↓ 21 callersMethodContainingMessage
()
linker/descriptors.go:1498
↓ 21 callersMethodIsExtension
()
linker/descriptors.go:1184
↓ 21 callersFunctionParse
Parse parses the given source code info and returns an AST. The given filename is used to construct error messages and position information. The given
parser/parser.go:94
↓ 20 callersFunctionUnknownSpan
UnknownSpan is a placeholder span when only the source file name is known.
ast/no_source.go:25
↓ 20 callersMethodinsert
(start uintptr, length uint64)
internal/benchmarks/measure.go:36
↓ 19 callersMethodFieldNode
(f *descriptorpb.FieldDescriptorProto)
parser/result.go:877
↓ 19 callersMethodGetUninterpretedOption
()
parser/clone.go:168
↓ 18 callersMethodOptions
()
linker/descriptors.go:241
↓ 17 callersMethodRawText
()
ast/file_info.go:404
↓ 17 callersMethodfindOptionSpan
( d protoutil.DescriptorProtoWrapper, path ...int32, )
linker/validate.go:918
↓ 16 callersFunctionNewFieldNode
NewFieldNode creates a new *FieldNode. The label and options arguments may be nil but the others must be non-nil. - label: The token corresponding to
ast/field.go:80
↓ 16 callersFunctionResultFromAST
ResultFromAST constructs a descriptor proto from the given AST. The returned result includes the descriptor proto and also contains an index that can
parser/result.go:63
↓ 16 callersMethodreadRune
()
parser/lexer.go:42
↓ 16 callersMethodreadRune
()
parser/fastscan/lexer.go:85
↓ 16 callersFunctionstripOptionsFromAll
stripOptionsFromAll applies the given function to each element in the given slice in order to remove source-retention options from it. It returns the
options/source_retention_options.go:515
↓ 16 callersMethodtoIdentValueNode
(leadingDot *ast.RuneNode)
parser/ast.go:63
↓ 15 callersMethodGetUninterpretedOption
()
options/target_types.go:26
↓ 15 callersMethodImports
()
linker/descriptors.go:253
↓ 15 callersMethodIsValid
IsValid returns true if this comment is valid. If this comment is a zero-value struct, it is not valid.
ast/file_info.go:668
↓ 15 callersFunctionfindExtensionRangeOptionSpan
( file protoreflect.FileDescriptor, extended protoreflect.MessageDescriptor, extRangeIndex int, extRange *
linker/validate.go:835
↓ 14 callersMethodCardinality
()
linker/descriptors.go:1107
↓ 14 callersMethodFileDescriptorProto
()
parser/result.go:82
↓ 14 callersMethodIsList
()
linker/descriptors.go:1220
↓ 14 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
protoutil/editions.go:92
↓ 13 callersMethodExtensions
()
walk/walk.go:101
↓ 13 callersMethodGetOptions
()
ast/field.go:37
↓ 13 callersMethodGetValue
()
ast/options.go:25
↓ 13 callersFunctionSourceAccessorFromMap
SourceAccessorFromMap returns a function that can be used as the Accessor field of a SourceResolver that uses the given map to load source. The map ke
resolver.go:171
↓ 13 callersMethodnewLocWithComments
(n ast.Node, path []int32)
sourceinfo/source_code_info.go:701
↓ 13 callersMethodunreadRune
(sz int)
parser/lexer.go:63
↓ 13 callersFunctionvalueKind
(val interface{})
options/options.go:1570
↓ 12 callersMethodAsString
()
ast/values.go:64
↓ 12 callersMethodFieldType
()
ast/field.go:33
↓ 12 callersMethodFileNode
FileNode returns the root of the AST. If this result has no AST then a placeholder node is returned.
parser/parser.go:128
↓ 12 callersMethodGetOptions
()
parser/clone.go:173
↓ 12 callersMethodIsExtension
IsExtension reports if this is an extension name or not (e.g. enclosed in punctuation, such as parentheses or brackets).
ast/options.go:304
↓ 12 callersMethodLeadingComments
LeadingComments returns all comments in the source that exist between the element and the previous element, except for any trailing comment on the pre
ast/file_info.go:483
↓ 12 callersFunctionNewReporter
NewReporter creates a new reporter that invokes the given functions on error or warning.
reporter/reporter.go:59
↓ 12 callersMethodNext
Next returns the next element in the sequence that comes after the given element. The bool returns is false if there is no next item (i.e. the given e
ast/file_info.go:231
↓ 12 callersMethodPath
Path returns a slice of nodes that represents the path from the root of the walk operaiton to the currently visited node. The first element in the pat
ast/walk.go:213
↓ 12 callersFunctionProtoFromFileDescriptor
ProtoFromFileDescriptor extracts a descriptor proto from the given "rich" descriptor. For file descriptors generated by the compiler, this is an inexp
protoutil/protos.go:113
↓ 12 callersMethodRange
(f func(ast.ValueNode, ast.ValueNode) bool)
options/options.go:1063
↓ 12 callersFunctionResolveCustomFeature
ResolveCustomFeature resolves a custom feature for the given extension and field descriptor. The given extension must be an extension of google.proto
protoutil/editions.go:112
↓ 12 callersFunctionstripSourceRetentionOptions
( options M, path sourcePath, removedPaths *sourcePathTrie, )
options/source_retention_options.go:151
↓ 12 callersFunctionverifyMap
(t *testing.T, tree *treemap.TreeMap[uintptr, uint64], ranges ...uintptr)
internal/benchmarks/measure_test.go:116
↓ 11 callersMethodAST
AST returns the parsed abstract syntax tree. This returns nil if the Result was created without an AST.
parser/parser.go:122
↓ 11 callersMethodClone
()
parser/clone_test.go:195
↓ 11 callersMethodGetEnd
()
linker/descriptors.go:618
↓ 11 callersMethodGetStart
()
linker/descriptors.go:617
↓ 11 callersMethodOptionNode
OptionNode returns the AST node corresponding to the given uninterpreted option. This can return nil, such as if the given option is not part of the F
parser/parser.go:138
↓ 11 callersMethodSyntax
()
linker/descriptors.go:203
↓ 11 callersMethodadjustPos
(c rune)
parser/fastscan/lexer.go:129
↓ 11 callersFunctionbuildUninterpretedMap
(prefix string, uos []*descriptorpb.UninterpretedOption, opts map[string]interface{})
options/options_test.go:327
↓ 11 callersFunctionoptionValueKind
(opt *descriptorpb.UninterpretedOption)
options/options.go:1596
↓ 11 callersFunctionparseFileForTest
(filename string)
parser/parser_test.go:860
next →1–100 of 1,436, ranked by callers