MCPcopy Create free account

hub / github.com/bufbuild/protocompile / functions

Functions1,436 in github.com/bufbuild/protocompile

↓ 5 callersMethodresolve
(name string, onlyTypes bool, scopes []scope, checkedCache []string)
linker/resolve.go:629
↓ 5 callersMethodsetPrevAndAddComments
(n ast.TerminalNode)
parser/lexer.go:369
↓ 5 callersMethodsetRune
(lval *protoSymType, val rune)
parser/lexer.go:436
↓ 4 callersMethodAddExtension
AddExtension records the given extension, which is used to ensure that no two files attempt to extend the same message using the same tag. The given p
linker/symbols.go:545
↓ 4 callersMethodAsItem
AsItem returns the Item that corresponds to c.
ast/file_info.go:673
↓ 4 callersMethodChildren
Children contains all AST nodes that are immediate children of this one.
ast/node.go:49
↓ 4 callersFunctionComputePath
ComputePath computes the source location path for the given descriptor. The boolean value indicates whether the result is valid. If the path cannot be
internal/util.go:140
↓ 4 callersMethodEnums
()
walk/walk.go:100
↓ 4 callersMethodFieldNode
FieldNode returns the AST node corresponding to the given field. This can return nil, such as if the given field is not part of the FileDescriptorProt
parser/parser.go:153
↓ 4 callersMethodFindImportByPath
FindImportByPath returns the File corresponding to the given import path. If this file does not import the given path, nil is returned.
linker/files.go:40
↓ 4 callersMethodHasPresence
()
linker/descriptors.go:1171
↓ 4 callersMethodMessages
()
walk/walk.go:99
↓ 4 callersFunctionNewMapFieldNode
NewMapFieldNode creates a new *MapFieldNode. All arguments must be non-nil except opts, which may be nil. - mapType: The token corresponding to the ma
ast/field.go:610
↓ 4 callersFunctionNewOptionNameNode
NewOptionNameNode creates a new *OptionNameNode. The dots arg must have a length that is one less than the length of parts. The parts arg must not be
ast/options.go:158
↓ 4 callersMethodOptionNode
(o *descriptorpb.UninterpretedOption)
parser/result.go:856
↓ 4 callersMethodPrevious
Previous returns the previous element in the sequence that comes before the given element. The bool returns is false if there is no previous item (i.e
ast/file_info.go:240
↓ 4 callersFunctionResultWithoutAST
ResultWithoutAST returns a parse result that has no AST. All methods for looking up AST nodes return a placeholder node that contains only the filenam
parser/result.go:46
↓ 4 callersMethodString
()
internal/message_context.go:56
↓ 4 callersMethodTextName
()
linker/descriptors.go:1152
↓ 4 callersMethodToken
()
ast/node.go:33
↓ 4 callersFunctionUnknownPos
UnknownPos is a placeholder position when only the source file name is known.
ast/no_source.go:19
↓ 4 callersFunctionasExtsNode
NB: If we ever add other put*Node methods, to index other kinds of elements in the descriptor proto hierarchy, we need to update the index recreation
parser/result.go:1003
↓ 4 callersFunctionclearKnownExtensionsFromFile
(t *testing.T, file *descriptorpb.FileDescriptorProto)
protoutil/editions_test.go:609
↓ 4 callersFunctioncloneInto
(dest proto.Message, src proto.Message, res linker.Resolver)
options/options.go:774
↓ 4 callersMethoddescribe
()
parser/fastscan/lexer.go:64
↓ 4 callersMethodenableLenience
(enable bool)
options/options.go:1461
↓ 4 callersMethodfail
(err error)
compiler.go:225
↓ 4 callersFunctionfindExtension
(d hasExtensionsAndMessages, message protoreflect.FullName, field protoreflect.FieldNumber)
linker/files.go:342
↓ 4 callersFunctionhasEnum
(fd *descriptorpb.FileDescriptorProto, name string)
parser/parser_test.go:894
↓ 4 callersFunctioninfoEqual
(t *testing.T, exp, act ast.ItemInfo)
ast/items_test.go:113
↓ 4 callersFunctionisEditions
(r *result)
linker/validate.go:1151
↓ 4 callersFunctionnewFieldDescriptor
(name string, fieldType string, tag *int32, lbl *descriptorpb.FieldDescriptorProto_Label)
parser/result.go:343
↓ 4 callersFunctionnewTestLexer
(t *testing.T, in io.Reader, h *reporter.Handler)
parser/lexer_test.go:507
↓ 4 callersFunctionnumError
(err error, kind, s string)
parser/lexer.go:472
↓ 4 callersFunctionresolveDescriptor
(res linker.Resolver, name string)
options/options.go:229
↓ 3 callersFunctionAsInt32
AsInt32 range checks the given int value and returns its value is in the range or 0, false if it is outside the range.
ast/values.go:144
↓ 3 callersMethodAsInt64
()
ast/values.go:138
↓ 3 callersMethodAsResolver
AsResolver returns a Resolver that uses f as the source of descriptors. If a given query cannot be answered with the files in f, the query will fail w
linker/files.go:173
↓ 3 callersFunctionDescriptorProtos
DescriptorProtos walks all descriptor protos in the given file using a depth-first traversal, calling the given function for each descriptor proto in
walk/walk.go:223
↓ 3 callersMethodEnumValueNode
EnumValueNode returns the AST node corresponding to the given enum. This can return nil, such as if the given enum value is not part of the FileDescri
parser/parser.go:185
↓ 3 callersMethodEnumValueNode
(e *descriptorpb.EnumValueDescriptorProto)
parser/result.go:919
↓ 3 callersMethodExtensionRanges
()
linker/descriptors.go:547
↓ 3 callersFunctionGetEdition
GetEdition returns the edition for a given element. It returns EDITION_PROTO2 or EDITION_PROTO3 if the element is in a file that uses proto2 or proto3
internal/editions/editions.go:146
↓ 3 callersFunctionGetFeatureDefault
GetFeatureDefault computes the default value for a feature. The given container is the message type that contains the field. This should usually be th
internal/editions/editions.go:213
↓ 3 callersMethodGetFeatures
()
options/target_types.go:25
↓ 3 callersMethodHandleErrorWithPos
HandleErrorWithPos handles an error with the given source position. If the handler has already aborted (by returning a non-nil error from a prior cal
reporter/reporter.go:155
↓ 3 callersMethodHandleWarning
HandleWarning handles the given warning. This will delegate to the handler's configured reporter.
reporter/reporter.go:171
↓ 3 callersMethodHandleWarningWithPos
HandleWarningWithPos handles a warning with the given source position. This will delegate to the handler's configured reporter.
reporter/reporter.go:187
↓ 3 callersMethodHasDefault
()
linker/descriptors.go:1263
↓ 3 callersFunctionInitCap
InitCap returns the given field name, but with the first letter capitalized.
internal/util.go:48
↓ 3 callersMethodIsMapEntry
()
linker/descriptors.go:517
↓ 3 callersMethodJSONName
()
linker/descriptors.go:1145
↓ 3 callersMethodLess
(i, j int)
parser/validate.go:534
↓ 3 callersMethodMapKey
()
linker/descriptors.go:1249
↓ 3 callersMethodMessageName
()
ast/message.go:29
↓ 3 callersFunctionNewFileRecursive
NewFileRecursive recursively converts a protoreflect.FileDescriptor to a File. If f has any dependencies/imports, they are converted, too, including a
linker/files.go:89
↓ 3 callersFunctionNewImportNode
NewImportNode creates a new *ImportNode. The public and weak arguments are optional and only one or the other (or neither) may be specified, not both.
ast/file.go:281
↓ 3 callersFunctionNewSpecialFloatLiteralNode
NewSpecialFloatLiteralNode returns a new *SpecialFloatLiteralNode for the given keyword. The given keyword should be "inf", "infinity", or "nan" in an
ast/values.go:280
↓ 3 callersMethodParent
()
linker/resolve.go:807
↓ 3 callersMethodParent
()
linker/descriptors.go:195
↓ 3 callersFunctionProtoFromFieldDescriptor
ProtoFromFieldDescriptor extracts a descriptor proto from the given "rich" descriptor. For field descriptors generated by the compiler, this is an ine
protoutil/protos.go:154
↓ 3 callersMethodRangeOptions
(func(*OptionNode) bool)
ast/options.go:401
↓ 3 callersMethodTokens
()
ast/file.go:135
↓ 3 callersMethodUnwrap
Unwrap returns the underlying error.
reporter/errors.go:37
↓ 3 callersFunctionWalk
Walk conducts a walk of the AST rooted at the given root using the given visitor. It performs a "pre-order traversal", visiting a given AST node befor
ast/walk.go:25
↓ 3 callersMethodaddSourceError
(err error)
parser/lexer.go:742
↓ 3 callersMethodasFieldDescriptor
(node *ast.FieldNode, maxTag int32, syntax protoreflect.Syntax, handler *reporter.Handler)
parser/result.go:306
↓ 3 callersMethodasGroupDescriptors
(group *ast.GroupNode, syntax protoreflect.Syntax, maxTag int32, handler *reporter.Handler, depth int)
parser/result.go:362
↓ 3 callersFunctionasSpan
(file string, srcLoc protoreflect.SourceLocation)
linker/validate.go:1118
↓ 3 callersFunctioncheckClone
(t *testing.T, orig, clone Result, isProtoClone bool)
parser/clone_test.go:72
↓ 3 callersMethodcheckDepth
(depth int, node ast.MessageDeclNode, handler *reporter.Handler)
parser/result.go:567
↓ 3 callersMethodcheckFieldUsage
checkFieldUsage verifies that the given option field can be used for the given target type. It reports an error if not and returns a non-nil error if
options/options.go:730
↓ 3 callersMethodcheckTag
(n ast.Node, v uint64, maxTag int32)
parser/result.go:765
↓ 3 callersFunctioncombineAll
(slices ...[]T)
options/source_retention_options_test.go:682
↓ 3 callersMethodcombineComments
(comments comments)
sourceinfo/source_code_info.go:910
↓ 3 callersFunctioncombinePathsForOption
(prefix, optionPath []int32)
sourceinfo/source_code_info.go:240
↓ 3 callersMethodcommentUsed
(c comments)
sourceinfo/source_code_info.go:873
↓ 3 callersFunctioncomputeSupportedEditions
(minEdition, maxEdition descriptorpb.Edition)
internal/editions/editions.go:359
↓ 3 callersFunctiondescriptorType
(m proto.Message)
options/options.go:2009
↓ 3 callersFunctioneditionString
(t descriptorpb.Edition)
options/options.go:770
↓ 3 callersFunctionfillInMissingLabel
(fld *descriptorpb.FieldDescriptorProto)
parser/validate.go:564
↓ 3 callersFunctionfindOptionNode
( path []int32, nodes interface { Range(func(N, ast.ValueNode) bool) }, srcInfoAccessor func(N) *sourcei
options/options.go:1017
↓ 3 callersFunctiongenerateSourceCodeInfoForMessage
(opts OptionIndex, sci *sourceCodeInfo, n ast.MessageDeclNode, fieldPath []int32, path []int32)
sourceinfo/source_code_info.go:309
↓ 3 callersMethodgetLeadingComments
(n ast.Node)
sourceinfo/source_code_info.go:763
↓ 3 callersMethodgetMark
()
parser/lexer.go:75
↓ 3 callersMethodgetRangeBounds
(rng *ast.RangeNode, minVal, maxVal int32, handler *reporter.Handler)
parser/result.go:722
↓ 3 callersMethodgetTrailingComments
(n ast.Node)
sourceinfo/source_code_info.go:774
↓ 3 callersFunctionhasExtension
(fd *descriptorpb.FileDescriptorProto, name string)
parser/parser_test.go:876
↓ 3 callersMethodinterpretFieldOptions
(fqn string, fld *descriptorpb.FieldDescriptorProto, customOpts bool)
options/options.go:364
↓ 3 callersFunctioninterpretOptions
(lenient bool, file file, res linker.Resolver, handler *reporter.Handler, interpOpts []InterpreterOption)
options/options.go:135
↓ 3 callersMethodisComment
isComment is comment returns true if i refers to a comment. (If it returns false, i refers to a token.)
ast/file_info.go:336
↓ 3 callersMethoditemBackward
(i Item, allowComment bool)
ast/file_info.go:324
↓ 3 callersMethoditemForward
(i Item, allowComment bool)
ast/file_info.go:313
↓ 3 callersFunctionmakeSpan
(start, end ast.SourcePos)
sourceinfo/source_code_info.go:866
↓ 3 callersMethodnewLocWithGivenComments
(nodeInfo ast.NodeInfo, detachedComments []comments, leadingComments comments, trailingComments comments, path
sourceinfo/source_code_info.go:708
↓ 3 callersFunctionnewMeasuringTape
()
internal/benchmarks/measure.go:30
↓ 3 callersMethodoffset
()
parser/lexer.go:59
↓ 3 callersFunctionpackageFor
(dsc protoreflect.Descriptor)
linker/resolve.go:454
↓ 3 callersFunctionparseFloat
(token string)
parser/lexer.go:342
↓ 3 callersFunctionpathKey
(p protoreflect.SourcePath)
linker/pathkey_unsafe.go:32
← previousnext →201–300 of 1,436, ranked by callers