MCPcopy Create free account

hub / github.com/bufbuild/protocompile / functions

Functions1,436 in github.com/bufbuild/protocompile

↓ 2 callersFunctiongenerateSourceCodeInfoForEnum
(opts OptionIndex, sci *sourceCodeInfo, n *ast.EnumNode, path []int32)
sourceinfo/source_code_info.go:399
↓ 2 callersFunctiongenerateSourceCodeInfoForExtensions
(opts OptionIndex, sci *sourceCodeInfo, n *ast.ExtendNode, extendIndex, msgIndex *int32, extendPath, msgPath [
sourceinfo/source_code_info.go:464
↓ 2 callersFunctiongenerateSourceCodeInfoForReservedRange
(sci *sourceCodeInfo, n *ast.RangeNode, path []int32)
sourceinfo/source_code_info.go:451
↓ 2 callersFunctiongetTypeName
(fd protoreflect.FieldDescriptor)
linker/validate.go:824
↓ 2 callersMethodhandleErrorWithPos
(span ast.SourceSpan, err error)
options/options.go:168
↓ 2 callersFunctionhandleImportCycle
(h *reporter.Handler, span ast.SourceSpan, importSequence []string, dep string)
compiler.go:559
↓ 2 callersMethodimportResult
(r *result, handler *reporter.Handler)
linker/symbols.go:447
↓ 2 callersFunctioninitDescriptors
()
internal/featuresext/featuresext.go:50
↓ 2 callersMethodinterpretEnumOptions
(fqn string, ed *descriptorpb.EnumDescriptorProto, customOpts bool)
options/options.go:545
↓ 2 callersMethodinterpretFileOptions
(file file, customOpts bool)
options/options.go:184
↓ 2 callersFunctionisDescendantPath
(descendant, ancestor protoreflect.SourcePath)
linker/validate.go:1106
↓ 2 callersFunctionisIdentifier
(s string)
parser/validate.go:263
↓ 2 callersFunctionisJSONCompliant
(d protoreflect.Descriptor)
linker/descriptors.go:1881
↓ 2 callersMethodisMapEntry
()
linker/descriptors.go:1237
↓ 2 callersFunctionisValidMap
(mapField protoreflect.FieldDescriptor, mapEntry protoreflect.MessageDescriptor)
linker/resolve.go:462
↓ 2 callersFunctionleavesAsSlice
(file *ast.FileNode)
ast/tokens_test.go:81
↓ 2 callersFunctionmatchPrefix
(s string, limit int, fn func(byte) bool)
linker/descriptors.go:1466
↓ 2 callersMethodmaybeNewLine
(r rune)
parser/lexer.go:160
↓ 2 callersFunctionmessageNameFromURL
(url string)
linker/files.go:240
↓ 2 callersFunctionmessageScope
(r *result, messageName protoreflect.FullName)
linker/resolve.go:704
↓ 2 callersFunctionnameSpan
(file ast.FileDeclNode, n ast.Node)
linker/symbols.go:520
↓ 2 callersFunctionnewFieldLabel
(lbl *KeywordNode)
ast/field.go:191
↓ 2 callersFunctionnewFile
(f protoreflect.FileDescriptor, deps Files)
linker/files.go:65
↓ 2 callersFunctionnewFileNode
(info *FileInfo, syntax *SyntaxNode, edition *EditionNode, decls []FileElement, eof Token)
ast/file.go:69
↓ 2 callersFunctionnewLexer
(in io.Reader, filename string, handler *reporter.Handler)
parser/lexer.go:94
↓ 2 callersFunctionnewSentinelDescriptor
(name string)
linker/resolve.go:785
↓ 2 callersMethodnext
()
linker/symbols.go:623
↓ 2 callersMethodnodeInfo
(start, end int)
ast/file_info.go:164
↓ 2 callersFunctionpackageNameSpan
(r *result)
linker/symbols.go:509
↓ 2 callersFunctionpopulateMessageBody
(m *MessageBody, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode)
ast/message.go:113
↓ 2 callersMethodprev
()
parser/lexer.go:166
↓ 2 callersFunctionprintComments
(sw stringWriter, comments ast.Comments)
ast/ast_roundtrip_test.go:102
↓ 2 callersFunctionprotolex1
(lex protoLexer, lval *protoSymType)
parser/proto.y.go:1057
↓ 2 callersMethodputOneofNode
(o *descriptorpb.OneofDescriptorProto, n ast.OneofDeclNode)
parser/result.go:967
↓ 2 callersMethodreadNumber
()
parser/lexer.go:445
↓ 2 callersMethodreadNumber
(sofar ...rune)
parser/fastscan/lexer.go:218
↓ 2 callersFunctionrecreateNodeIndexForEnum
(orig, clone *result, origProto, cloneProto *descriptorpb.EnumDescriptorProto)
parser/clone.go:130
↓ 2 callersMethodresolveElement
(name protoreflect.FullName, checkedCache []string)
linker/resolve.go:37
↓ 2 callersFunctionresolveElementInFile
(name protoreflect.FullName, f File)
linker/resolve.go:735
↓ 2 callersFunctionresolveElementRelative
(firstName, fullName string, query func(name string) protoreflect.Descriptor)
linker/resolve.go:715
↓ 2 callersMethodresolveExtensionName
(name string, scopes []scope, checkedCache []string)
linker/resolve.go:613
↓ 2 callersFunctionresolveFeature
( edition descriptorpb.Edition, defaultVal protoreflect.Value, element protoreflect.Descriptor, fields ...
protoutil/editions.go:121
↓ 2 callersFunctionresolveFieldTypes
(f *fldDescriptor, handler *reporter.Handler, extendees map[ast.Node]struct{}, s *Symbols, scopes []scope, che
linker/resolve.go:305
↓ 2 callersMethodresolveOptionsType
(name string)
options/options.go:259
↓ 2 callersMethodscalarFieldValue
scalarFieldValue resolves the given AST node val as a value whose type is assignable to a field with the given fldType.
options/options.go:1744
↓ 2 callersMethodscalarFieldValueFromProto
scalarFieldValue resolves the given uninterpreted option value as a value whose type is assignable to a field with the given fldType.
options/options.go:1882
↓ 2 callersMethodsetBlockedOn
(deps []string)
compiler.go:235
↓ 2 callersMethodsetIdent
(lval *protoSymType, val string)
parser/lexer.go:421
↓ 2 callersMethodsetInt
(lval *protoSymType, val uint64)
parser/lexer.go:426
↓ 2 callersMethodsetOptionField
setOptionField sets the value for field fld in the given message msg to the value represented by AST node val. The given name is the AST node that cor
options/options.go:1260
↓ 2 callersFunctionsourceSpanFor
(d protoreflect.Descriptor)
linker/symbols.go:317
↓ 2 callersFunctiontargetTypeString
(t descriptorpb.FieldOptions_OptionTargetType)
options/options.go:766
↓ 2 callersFunctiontestASTRoundTrip
(t *testing.T, path string, data []byte)
ast/ast_roundtrip_test.go:57
↓ 2 callersFunctiontestItemsSequence
(t *testing.T, path string, data []byte)
ast/items_test.go:56
↓ 2 callersFunctiontestResolveFeature
(t *testing.T, deps ...*descriptorpb.FileDescriptorProto)
protoutil/editions_test.go:154
↓ 2 callersFunctiontestTokensSequence
(t *testing.T, path string, data []byte)
ast/tokens_test.go:56
↓ 2 callersMethodtoNodes
()
parser/ast.go:77
↓ 2 callersMethodvalidateFeatureSupport
( edition descriptorpb.Edition, featureSupport *descriptorpb.FieldOptions_FeatureSupport, what string, nam
options/options.go:962
↓ 2 callersMethodvalidateFieldJSONNames
(md *msgDescriptor, useCustom bool, handler *reporter.Handler)
linker/validate.go:533
↓ 2 callersMethodvalidateRecursive
( validateRequiredFields bool, msg protoreflect.Message, prefix string, element proto.Message, path []int
options/options.go:804
↓ 2 callersFunctionwalkContainer
(container container, enter, exit func(protoreflect.Descriptor) error)
walk/walk.go:104
↓ 2 callersMethodwalkDescriptorProtos
(file *descriptorpb.FileDescriptorProto)
walk/walk.go:260
↓ 2 callersMethodwalkEnumDescriptorProto
(prefix string, path protoreflect.SourcePath, en *descriptorpb.EnumDescriptorProto)
walk/walk.go:419
↓ 1 callersMethodAST
()
parser/result.go:78
↓ 1 callersMethodAST
AST returns the parsed abstract syntax tree. This returns nil if the Result was created without an AST.
internal/message_context.go:32
↓ 1 callersMethodAddExtensionDeclaration
AddExtensionDeclaration records the given extension declaration, which is used to ensure that no two declarations refer to the same extension.
linker/symbols.go:577
↓ 1 callersMethodAddLine
AddLine adds the offset representing the beginning of the "next" line in the file. The first line always starts at offset 0, the second line starts at
ast/file_info.go:78
↓ 1 callersMethodAsFloat
()
ast/values.go:240
↓ 1 callersMethodAsFloat
()
ast/values.go:266
↓ 1 callersMethodAsFloat
()
ast/values.go:298
↓ 1 callersMethodAsIdentifier
()
ast/identifiers.go:57
↓ 1 callersMethodAsIdentifier
()
ast/identifiers.go:136
↓ 1 callersMethodAsString
()
ast/values.go:91
↓ 1 callersMethodAsString
()
ast/values.go:129
↓ 1 callersMethodByName
(s protoreflect.Name)
linker/descriptors.go:995
↓ 1 callersMethodCheckForUnusedImports
CheckForUnusedImports is used to report warnings for unused imports. This should be called after options have been interpreted. Otherwise, the logic c
linker/linker.go:124
↓ 1 callersFunctionCppFeaturesDescriptor
()
internal/featuresext/featuresext.go:57
↓ 1 callersFunctionCreatePrefixList
CreatePrefixList returns a list of package prefixes to search when resolving a symbol name. If the given package is blank, it returns only the empty s
internal/util.go:61
↓ 1 callersFunctionDescriptorProtosWithPathEnterAndExit
DescriptorProtosWithPathEnterAndExit walks all descriptor protos in the given file using a depth-first traversal. This is the same as DescriptorProtos
walk/walk.go:210
↓ 1 callersMethodEnd
()
ast/file_info.go:603
↓ 1 callersMethodEndValue
()
ast/ranges.go:196
↓ 1 callersMethodEndValueAsInt32
(minVal, maxVal int32)
ast/ranges.go:203
↓ 1 callersMethodEnumDescriptorProto
()
protoutil/protos.go:194
↓ 1 callersMethodEnumReservedRangeNode
EnumReservedRangeNode returns the AST node corresponding to the given reserved range. This can return nil, such as if the given range is not part of t
parser/parser.go:190
↓ 1 callersMethodEnumValueDescriptorProto
()
protoutil/protos.go:213
↓ 1 callersMethodError
(s string)
parser/lexer.go:752
↓ 1 callersMethodError
Error is called when the given error is encountered and needs to be reported to the calling program. This signature matches ErrorReporter because it h
reporter/reporter.go:49
↓ 1 callersMethodExtensionRangeOptions
(i int)
linker/descriptors.go:551
↓ 1 callersMethodExtensionsNode
ExtensionsNode returns the AST node corresponding to the "extensions" statement in a message that corresponds to the given range. This will be the par
parser/parser.go:169
↓ 1 callersMethodExtensionsNode
(e *descriptorpb.DescriptorProto_ExtensionRange)
parser/result.go:891
↓ 1 callersMethodFileDescriptorProto
()
protoutil/protos.go:118
↓ 1 callersMethodFileNode
()
internal/options.go:25
↓ 1 callersMethodFindExtensionByName
(field protoreflect.FullName)
options/options.go:1532
↓ 1 callersFunctionFindFirstOption
(res hasOptionNode, handler errorHandler, scope string, opts []*descriptorpb.UninterpretedOption, name string)
internal/options.go:30
↓ 1 callersMethodFindMessageByName
(message protoreflect.FullName)
linker/files.go:221
↓ 1 callersMethodFindMessageByName
(message protoreflect.FullName)
linker/files.go:293
↓ 1 callersMethodFindMessageByName
(message protoreflect.FullName)
options/options.go:1512
↓ 1 callersFunctionGenerateSourceInfo
GenerateSourceInfo generates source code info for the given AST. If the given opts is present, it can generate source code info for interpreted option
sourceinfo/source_code_info.go:94
↓ 1 callersFunctionGetCustomFeatureDefault
GetCustomFeatureDefault gets the default value for the given custom feature and given edition. A custom feature is a field whose containing message is
protoutil/editions.go:59
↓ 1 callersFunctionGetFeatureDefault
GetFeatureDefault gets the default value for the given feature and the given edition. The given feature must represent a field of the google.protobuf.
protoutil/editions.go:40
← previousnext →401–500 of 1,436, ranked by callers