Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bufbuild/protocompile
/ functions
Functions
1,436 in github.com/bufbuild/protocompile
⨍
Functions
1,436
◇
Types & classes
233
↓ 2 callers
Function
generateSourceCodeInfoForEnum
(opts OptionIndex, sci *sourceCodeInfo, n *ast.EnumNode, path []int32)
sourceinfo/source_code_info.go:399
↓ 2 callers
Function
generateSourceCodeInfoForExtensions
(opts OptionIndex, sci *sourceCodeInfo, n *ast.ExtendNode, extendIndex, msgIndex *int32, extendPath, msgPath [
sourceinfo/source_code_info.go:464
↓ 2 callers
Function
generateSourceCodeInfoForReservedRange
(sci *sourceCodeInfo, n *ast.RangeNode, path []int32)
sourceinfo/source_code_info.go:451
↓ 2 callers
Function
getTypeName
(fd protoreflect.FieldDescriptor)
linker/validate.go:824
↓ 2 callers
Method
handleErrorWithPos
(span ast.SourceSpan, err error)
options/options.go:168
↓ 2 callers
Function
handleImportCycle
(h *reporter.Handler, span ast.SourceSpan, importSequence []string, dep string)
compiler.go:559
↓ 2 callers
Method
importResult
(r *result, handler *reporter.Handler)
linker/symbols.go:447
↓ 2 callers
Function
initDescriptors
()
internal/featuresext/featuresext.go:50
↓ 2 callers
Method
interpretEnumOptions
(fqn string, ed *descriptorpb.EnumDescriptorProto, customOpts bool)
options/options.go:545
↓ 2 callers
Method
interpretFileOptions
(file file, customOpts bool)
options/options.go:184
↓ 2 callers
Function
isDescendantPath
(descendant, ancestor protoreflect.SourcePath)
linker/validate.go:1106
↓ 2 callers
Function
isIdentifier
(s string)
parser/validate.go:263
↓ 2 callers
Function
isJSONCompliant
(d protoreflect.Descriptor)
linker/descriptors.go:1881
↓ 2 callers
Method
isMapEntry
()
linker/descriptors.go:1237
↓ 2 callers
Function
isValidMap
(mapField protoreflect.FieldDescriptor, mapEntry protoreflect.MessageDescriptor)
linker/resolve.go:462
↓ 2 callers
Function
leavesAsSlice
(file *ast.FileNode)
ast/tokens_test.go:81
↓ 2 callers
Function
matchPrefix
(s string, limit int, fn func(byte) bool)
linker/descriptors.go:1466
↓ 2 callers
Method
maybeNewLine
(r rune)
parser/lexer.go:160
↓ 2 callers
Function
messageNameFromURL
(url string)
linker/files.go:240
↓ 2 callers
Function
messageScope
(r *result, messageName protoreflect.FullName)
linker/resolve.go:704
↓ 2 callers
Function
nameSpan
(file ast.FileDeclNode, n ast.Node)
linker/symbols.go:520
↓ 2 callers
Function
newFieldLabel
(lbl *KeywordNode)
ast/field.go:191
↓ 2 callers
Function
newFile
(f protoreflect.FileDescriptor, deps Files)
linker/files.go:65
↓ 2 callers
Function
newFileNode
(info *FileInfo, syntax *SyntaxNode, edition *EditionNode, decls []FileElement, eof Token)
ast/file.go:69
↓ 2 callers
Function
newLexer
(in io.Reader, filename string, handler *reporter.Handler)
parser/lexer.go:94
↓ 2 callers
Function
newSentinelDescriptor
(name string)
linker/resolve.go:785
↓ 2 callers
Method
next
()
linker/symbols.go:623
↓ 2 callers
Method
nodeInfo
(start, end int)
ast/file_info.go:164
↓ 2 callers
Function
packageNameSpan
(r *result)
linker/symbols.go:509
↓ 2 callers
Function
populateMessageBody
(m *MessageBody, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode)
ast/message.go:113
↓ 2 callers
Method
prev
()
parser/lexer.go:166
↓ 2 callers
Function
printComments
(sw stringWriter, comments ast.Comments)
ast/ast_roundtrip_test.go:102
↓ 2 callers
Function
protolex1
(lex protoLexer, lval *protoSymType)
parser/proto.y.go:1057
↓ 2 callers
Method
putOneofNode
(o *descriptorpb.OneofDescriptorProto, n ast.OneofDeclNode)
parser/result.go:967
↓ 2 callers
Method
readNumber
()
parser/lexer.go:445
↓ 2 callers
Method
readNumber
(sofar ...rune)
parser/fastscan/lexer.go:218
↓ 2 callers
Function
recreateNodeIndexForEnum
(orig, clone *result, origProto, cloneProto *descriptorpb.EnumDescriptorProto)
parser/clone.go:130
↓ 2 callers
Method
resolveElement
(name protoreflect.FullName, checkedCache []string)
linker/resolve.go:37
↓ 2 callers
Function
resolveElementInFile
(name protoreflect.FullName, f File)
linker/resolve.go:735
↓ 2 callers
Function
resolveElementRelative
(firstName, fullName string, query func(name string) protoreflect.Descriptor)
linker/resolve.go:715
↓ 2 callers
Method
resolveExtensionName
(name string, scopes []scope, checkedCache []string)
linker/resolve.go:613
↓ 2 callers
Function
resolveFeature
( edition descriptorpb.Edition, defaultVal protoreflect.Value, element protoreflect.Descriptor, fields ...
protoutil/editions.go:121
↓ 2 callers
Function
resolveFieldTypes
(f *fldDescriptor, handler *reporter.Handler, extendees map[ast.Node]struct{}, s *Symbols, scopes []scope, che
linker/resolve.go:305
↓ 2 callers
Method
resolveOptionsType
(name string)
options/options.go:259
↓ 2 callers
Method
scalarFieldValue
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 callers
Method
scalarFieldValueFromProto
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 callers
Method
setBlockedOn
(deps []string)
compiler.go:235
↓ 2 callers
Method
setIdent
(lval *protoSymType, val string)
parser/lexer.go:421
↓ 2 callers
Method
setInt
(lval *protoSymType, val uint64)
parser/lexer.go:426
↓ 2 callers
Method
setOptionField
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 callers
Function
sourceSpanFor
(d protoreflect.Descriptor)
linker/symbols.go:317
↓ 2 callers
Function
targetTypeString
(t descriptorpb.FieldOptions_OptionTargetType)
options/options.go:766
↓ 2 callers
Function
testASTRoundTrip
(t *testing.T, path string, data []byte)
ast/ast_roundtrip_test.go:57
↓ 2 callers
Function
testItemsSequence
(t *testing.T, path string, data []byte)
ast/items_test.go:56
↓ 2 callers
Function
testResolveFeature
(t *testing.T, deps ...*descriptorpb.FileDescriptorProto)
protoutil/editions_test.go:154
↓ 2 callers
Function
testTokensSequence
(t *testing.T, path string, data []byte)
ast/tokens_test.go:56
↓ 2 callers
Method
toNodes
()
parser/ast.go:77
↓ 2 callers
Method
validateFeatureSupport
( edition descriptorpb.Edition, featureSupport *descriptorpb.FieldOptions_FeatureSupport, what string, nam
options/options.go:962
↓ 2 callers
Method
validateFieldJSONNames
(md *msgDescriptor, useCustom bool, handler *reporter.Handler)
linker/validate.go:533
↓ 2 callers
Method
validateRecursive
( validateRequiredFields bool, msg protoreflect.Message, prefix string, element proto.Message, path []int
options/options.go:804
↓ 2 callers
Function
walkContainer
(container container, enter, exit func(protoreflect.Descriptor) error)
walk/walk.go:104
↓ 2 callers
Method
walkDescriptorProtos
(file *descriptorpb.FileDescriptorProto)
walk/walk.go:260
↓ 2 callers
Method
walkEnumDescriptorProto
(prefix string, path protoreflect.SourcePath, en *descriptorpb.EnumDescriptorProto)
walk/walk.go:419
↓ 1 callers
Method
AST
()
parser/result.go:78
↓ 1 callers
Method
AST
AST returns the parsed abstract syntax tree. This returns nil if the Result was created without an AST.
internal/message_context.go:32
↓ 1 callers
Method
AddExtensionDeclaration
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 callers
Method
AddLine
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 callers
Method
AsFloat
()
ast/values.go:240
↓ 1 callers
Method
AsFloat
()
ast/values.go:266
↓ 1 callers
Method
AsFloat
()
ast/values.go:298
↓ 1 callers
Method
AsIdentifier
()
ast/identifiers.go:57
↓ 1 callers
Method
AsIdentifier
()
ast/identifiers.go:136
↓ 1 callers
Method
AsString
()
ast/values.go:91
↓ 1 callers
Method
AsString
()
ast/values.go:129
↓ 1 callers
Method
ByName
(s protoreflect.Name)
linker/descriptors.go:995
↓ 1 callers
Method
CheckForUnusedImports
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 callers
Function
CppFeaturesDescriptor
()
internal/featuresext/featuresext.go:57
↓ 1 callers
Function
CreatePrefixList
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 callers
Function
DescriptorProtosWithPathEnterAndExit
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 callers
Method
End
()
ast/file_info.go:603
↓ 1 callers
Method
EndValue
()
ast/ranges.go:196
↓ 1 callers
Method
EndValueAsInt32
(minVal, maxVal int32)
ast/ranges.go:203
↓ 1 callers
Method
EnumDescriptorProto
()
protoutil/protos.go:194
↓ 1 callers
Method
EnumReservedRangeNode
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 callers
Method
EnumValueDescriptorProto
()
protoutil/protos.go:213
↓ 1 callers
Method
Error
(s string)
parser/lexer.go:752
↓ 1 callers
Method
Error
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 callers
Method
ExtensionRangeOptions
(i int)
linker/descriptors.go:551
↓ 1 callers
Method
ExtensionsNode
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 callers
Method
ExtensionsNode
(e *descriptorpb.DescriptorProto_ExtensionRange)
parser/result.go:891
↓ 1 callers
Method
FileDescriptorProto
()
protoutil/protos.go:118
↓ 1 callers
Method
FileNode
()
internal/options.go:25
↓ 1 callers
Method
FindExtensionByName
(field protoreflect.FullName)
options/options.go:1532
↓ 1 callers
Function
FindFirstOption
(res hasOptionNode, handler errorHandler, scope string, opts []*descriptorpb.UninterpretedOption, name string)
internal/options.go:30
↓ 1 callers
Method
FindMessageByName
(message protoreflect.FullName)
linker/files.go:221
↓ 1 callers
Method
FindMessageByName
(message protoreflect.FullName)
linker/files.go:293
↓ 1 callers
Method
FindMessageByName
(message protoreflect.FullName)
options/options.go:1512
↓ 1 callers
Function
GenerateSourceInfo
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 callers
Function
GetCustomFeatureDefault
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 callers
Function
GetFeatureDefault
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
← previous
next →
401–500 of 1,436, ranked by callers