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
↓ 1 callers
Method
GetFeatures
()
internal/editions/editions.go:67
↓ 1 callers
Method
GetItem
GetItem returns the token or comment represented by the given item. Only one of the return values will be valid. If the item is a token then the retur
ast/file_info.go:198
↓ 1 callers
Method
GetPosition
GetPosition returns the start source position that caused the underlying error.
reporter/errors.go:35
↓ 1 callers
Method
GetPosition
()
reporter/errors.go:66
↓ 1 callers
Method
HandleWarningf
HandleWarningf handles a warning with the given source position, creating the actual error value using the given message format and arguments.
reporter/reporter.go:193
↓ 1 callers
Function
InterpretOptions
InterpretOptions interprets options in the given linked result, returning an index that can be used to generate source code info. This step mutates th
options/options.go:103
↓ 1 callers
Function
IsEditionSupported
IsEditionSupported returns true if this module can compile sources for the given edition. This returns true for the special EDITION_PROTO2 and EDITION
supported_editions.go:26
↓ 1 callers
Method
IsPresent
IsPresent returns true if a label keyword was present in the declaration and false if it was absent.
ast/field.go:206
↓ 1 callers
Function
JavaFeaturesDescriptor
()
internal/featuresext/featuresext.go:62
↓ 1 callers
Method
KeyField
()
ast/field.go:701
↓ 1 callers
Method
MessageDescriptorProto
()
protoutil/protos.go:137
↓ 1 callers
Method
MessageNode
MessageNode returns the AST node corresponding to the given message. This can return nil, such as if the given message is not part of the FileDescript
parser/parser.go:148
↓ 1 callers
Method
MessageReservedRangeNode
MessageReservedRangeNode returns the AST node corresponding to the given reserved range. This can return nil, such as if the given range is not part o
parser/parser.go:175
↓ 1 callers
Method
MethodDescriptorProto
()
protoutil/protos.go:251
↓ 1 callers
Method
MethodNode
MethodNode returns the AST node corresponding to the given method. This can return nil, such as if the given method is not part of the FileDescriptorP
parser/parser.go:200
↓ 1 callers
Function
NewAnyTypeReferenceNode
NewAnyTypeReferenceNode creates a new *FieldReferenceNode for an "any" type reference. All args must be non-nil. The openSym and closeSym runes should
ast/options.go:273
↓ 1 callers
Function
NewCompoundIdentNode
NewCompoundIdentNode creates a *CompoundIdentNode. The leadingDot may be nil. The dots arg must have a length that is one less than the length of comp
ast/identifiers.go:90
↓ 1 callers
Function
NewCompoundLiteralStringNode
NewCompoundLiteralStringNode creates a new *CompoundStringLiteralNode that consists of the given string components. The components argument may not be
ast/values.go:107
↓ 1 callers
Function
NewEditionNode
NewEditionNode creates a new *EditionNode. All four arguments must be non-nil: - keyword: The token corresponding to the "edition" keyword. - equals:
ast/file.go:231
↓ 1 callers
Function
NewEmptyFileNode
NewEmptyFileNode returns an empty AST for a file with the given name.
ast/file.go:106
↓ 1 callers
Function
NewEnumNode
NewEnumNode creates a new *EnumNode. All arguments must be non-nil. While it is technically allowed for decls to be nil or empty, the resulting node w
ast/enum.go:42
↓ 1 callers
Function
NewExtendNode
NewExtendNode creates a new *ExtendNode. All arguments must be non-nil. - keyword: The token corresponding to the "extend" keyword. - extendee: The to
ast/message.go:170
↓ 1 callers
Function
NewFloatLiteralNode
NewFloatLiteralNode creates a new *FloatLiteralNode with the given val.
ast/values.go:255
↓ 1 callers
Function
NewIdentNode
NewIdentNode creates a new *IdentNode. The given val is the identifier text.
ast/identifiers.go:46
↓ 1 callers
Function
NewMapTypeNode
NewMapTypeNode creates a new *MapTypeNode. All arguments must be non-nil. - keyword: The token corresponding to the "map" keyword. - openAngle: The to
ast/field.go:554
↓ 1 callers
Function
NewMessageNode
NewMessageNode creates a new *MessageNode. All arguments must be non-nil. - keyword: The token corresponding to the "message" keyword. - name: The tok
ast/message.go:60
↓ 1 callers
Function
NewNoSourceNode
NewNoSourceNode creates a new NoSourceNode for the given filename.
ast/no_source.go:47
↓ 1 callers
Function
NewOneofNode
NewOneofNode creates a new *OneofNode. All arguments must be non-nil. While it is technically allowed for decls to be nil or empty, the resulting node
ast/field.go:426
↓ 1 callers
Function
NewPackageNode
NewPackageNode creates a new *PackageNode. All three arguments must be non-nil: - keyword: The token corresponding to the "package" keyword. - name: T
ast/file.go:337
↓ 1 callers
Function
NewRPCNode
NewRPCNode creates a new *RPCNode with no body. All arguments must be non-nil. - keyword: The token corresponding to the "rpc" keyword. - name: The to
ast/service.go:138
↓ 1 callers
Function
NewRPCNodeWithBody
NewRPCNodeWithBody creates a new *RPCNode that includes a body (and possibly options). All arguments must be non-nil. - keyword: The token correspondi
ast/service.go:183
↓ 1 callers
Function
NewReservedIdentifiersNode
NewReservedIdentifiersNode creates a new *ReservedNode that represents reserved names. All args must be non-nil. - keyword: The token corresponding to
ast/ranges.go:346
↓ 1 callers
Function
NewReservedNamesNode
NewReservedNamesNode creates a new *ReservedNode that represents reserved names. All args must be non-nil. - keyword: The token corresponding to the "
ast/ranges.go:297
↓ 1 callers
Function
NewServiceNode
NewServiceNode creates a new *ServiceNode. All arguments must be non-nil. - keyword: The token corresponding to the "service" keyword. - name: The tok
ast/service.go:42
↓ 1 callers
Function
NewStringLiteralNode
NewStringLiteralNode creates a new *StringLiteralNode with the given val.
ast/values.go:80
↓ 1 callers
Function
NewSyntaxNode
NewSyntaxNode creates a new *SyntaxNode. All four arguments must be non-nil: - keyword: The token corresponding to the "syntax" keyword. - equals: The
ast/file.go:184
↓ 1 callers
Function
NewSyntheticOneof
NewSyntheticOneof creates a new *SyntheticOneof that corresponds to the given proto3 optional field.
ast/field.go:506
↓ 1 callers
Function
NewUintLiteralNode
NewUintLiteralNode creates a new *UintLiteralNode with the given val.
ast/values.go:166
↓ 1 callers
Method
Node
(m proto.Message)
parser/result.go:842
↓ 1 callers
Method
OneofDescriptorProto
()
protoutil/protos.go:175
↓ 1 callers
Method
OneofName
()
ast/field.go:392
↓ 1 callers
Method
OptionNamePartNode
(o *descriptorpb.UninterpretedOption_NamePart)
parser/result.go:863
↓ 1 callers
Method
OptionNode
(part *descriptorpb.UninterpretedOption)
internal/options.go:24
↓ 1 callers
Method
Output
()
linker/descriptors.go:1828
↓ 1 callers
Method
Parse
(protoLexer)
parser/proto.y.go:955
↓ 1 callers
Method
PopulateSourceCodeInfo
PopulateSourceCodeInfo is used to populate source code info for the file descriptor. This step requires that the underlying descriptor proto have its
linker/linker.go:130
↓ 1 callers
Function
ProtoFromEnumDescriptor
ProtoFromEnumDescriptor extracts a descriptor proto from the given "rich" descriptor. For enum descriptors generated by the compiler, this is an inexp
protoutil/protos.go:192
↓ 1 callers
Function
ProtoFromEnumValueDescriptor
ProtoFromEnumValueDescriptor extracts a descriptor proto from the given "rich" descriptor. For enum value descriptors generated by the compiler, this
protoutil/protos.go:211
↓ 1 callers
Function
ProtoFromMethodDescriptor
ProtoFromMethodDescriptor extracts a descriptor proto from the given "rich" descriptor. For method descriptors generated by the compiler, this is an i
protoutil/protos.go:249
↓ 1 callers
Function
ProtoFromOneofDescriptor
ProtoFromOneofDescriptor extracts a descriptor proto from the given "rich" descriptor. For oneof descriptors generated by the compiler, this is an ine
protoutil/protos.go:173
↓ 1 callers
Function
ProtoFromServiceDescriptor
ProtoFromServiceDescriptor extracts a descriptor proto from the given "rich" descriptor. For service descriptors generated by the compiler, this is an
protoutil/protos.go:230
↓ 1 callers
Method
RangeStart
()
ast/ranges.go:106
↓ 1 callers
Method
RawText
()
ast/file_info.go:698
↓ 1 callers
Method
RemoveAST
RemoveAST drops the AST information from this result.
linker/linker.go:133
↓ 1 callers
Method
ResolveMessageLiteralExtensionName
(ast.IdentValueNode)
options/options.go:70
↓ 1 callers
Method
ServiceDescriptorProto
()
protoutil/protos.go:232
↓ 1 callers
Method
Start
()
ast/file_info.go:602
↓ 1 callers
Method
StartValue
()
ast/ranges.go:188
↓ 1 callers
Method
SubHandler
SubHandler returns a "child" of h. Use of a child handler is the same as use of the parent, except that the Error() and ReporterError() functions only
reporter/reporter.go:109
↓ 1 callers
Method
TokenInfo
TokenInfo returns details from the original source for the given token. If the given t is out of range, this returns an invalid NodeInfo (i.e. nodeIn
ast/file_info.go:160
↓ 1 callers
Method
ValidateOptions
ValidateOptions runs some validation checks on the descriptor that can only be done after options are interpreted. Any errors or warnings encountered
linker/linker.go:119
↓ 1 callers
Method
ValueField
()
ast/field.go:705
↓ 1 callers
Method
VisitArrayLiteralNode
VisitArrayLiteralNode is invoked when visiting an *ArrayLiteralNode in the AST.
ast/walk.go:333
↓ 1 callers
Method
VisitCompactOptionsNode
VisitCompactOptionsNode is invoked when visiting a *CompactOptionsNode in the AST.
ast/walk.go:283
↓ 1 callers
Method
VisitCompoundIdentNode
VisitCompoundIdentNode is invoked when visiting a *CompoundIdentNode in the AST.
ast/walk.go:317
↓ 1 callers
Method
VisitCompoundStringLiteralNode
VisitCompoundStringLiteralNode is invoked when visiting a *CompoundStringLiteralNode in the AST.
ast/walk.go:321
↓ 1 callers
Method
VisitEditionNode
VisitEditionNode is invoked when visiting an *EditionNode in the AST.
ast/walk.go:271
↓ 1 callers
Method
VisitEmptyDeclNode
VisitEmptyDeclNode is invoked when visiting a *EmptyDeclNode in the AST.
ast/walk.go:343
↓ 1 callers
Method
VisitEnumNode
VisitEnumNode is invoked when visiting an *EnumNode in the AST.
ast/walk.go:305
↓ 1 callers
Method
VisitEnumValueNode
VisitEnumValueNode is invoked when visiting an *EnumValueNode in the AST.
ast/walk.go:307
↓ 1 callers
Method
VisitExtendNode
VisitExtendNode is invoked when visiting an *ExtendNode in the AST.
ast/walk.go:287
↓ 1 callers
Method
VisitExtensionRangeNode
VisitExtensionRangeNode is invoked when visiting an *ExtensionRangeNode in the AST.
ast/walk.go:289
↓ 1 callers
Method
VisitFieldNode
VisitFieldNode is invoked when visiting a *FieldNode in the AST.
ast/walk.go:295
↓ 1 callers
Method
VisitFieldReferenceNode
VisitFieldReferenceNode is invoked when visiting a *FieldReferenceNode in the AST.
ast/walk.go:281
↓ 1 callers
Method
VisitFileNode
VisitFileNode is invoked when visiting a *FileNode in the AST.
ast/walk.go:267
↓ 1 callers
Method
VisitFloatLiteralNode
VisitFloatLiteralNode is invoked when visiting a *FloatLiteralNode in the AST.
ast/walk.go:327
↓ 1 callers
Method
VisitGroupNode
VisitGroupNode is invoked when visiting a *GroupNode in the AST.
ast/walk.go:297
↓ 1 callers
Method
VisitIdentNode
VisitIdentNode is invoked when visiting an *IdentNode in the AST.
ast/walk.go:315
↓ 1 callers
Method
VisitImportNode
VisitImportNode is invoked when visiting an *ImportNode in the AST.
ast/walk.go:275
↓ 1 callers
Method
VisitKeywordNode
VisitKeywordNode is invoked when visiting a *KeywordNode in the AST.
ast/walk.go:339
↓ 1 callers
Method
VisitMapFieldNode
VisitMapFieldNode is invoked when visiting a *MapFieldNode in the AST.
ast/walk.go:299
↓ 1 callers
Method
VisitMapTypeNode
VisitMapTypeNode is invoked when visiting a *MapTypeNode in the AST.
ast/walk.go:301
↓ 1 callers
Method
VisitMessageFieldNode
VisitMessageFieldNode is invoked when visiting a *MessageFieldNode in the AST.
ast/walk.go:337
↓ 1 callers
Method
VisitMessageLiteralNode
VisitMessageLiteralNode is invoked when visiting a *MessageLiteralNode in the AST.
ast/walk.go:335
↓ 1 callers
Method
VisitMessageNode
VisitMessageNode is invoked when visiting a *MessageNode in the AST.
ast/walk.go:285
↓ 1 callers
Method
VisitNegativeIntLiteralNode
VisitNegativeIntLiteralNode is invoked when visiting a *NegativeIntLiteralNode in the AST.
ast/walk.go:325
↓ 1 callers
Method
VisitOneofNode
VisitOneofNode is invoked when visiting a *OneofNode in the AST.
ast/walk.go:303
↓ 1 callers
Method
VisitOptionNameNode
VisitOptionNameNode is invoked when visiting an *OptionNameNode in the AST.
ast/walk.go:279
↓ 1 callers
Method
VisitOptionNode
VisitOptionNode is invoked when visiting an *OptionNode in the AST.
ast/walk.go:277
↓ 1 callers
Method
VisitPackageNode
VisitPackageNode is invoked when visiting a *PackageNode in the AST.
ast/walk.go:273
↓ 1 callers
Method
VisitRPCNode
VisitRPCNode is invoked when visiting an *RPCNode in the AST.
ast/walk.go:311
↓ 1 callers
Method
VisitRPCTypeNode
VisitRPCTypeNode is invoked when visiting an *RPCTypeNode in the AST.
ast/walk.go:313
↓ 1 callers
Method
VisitRangeNode
VisitRangeNode is invoked when visiting a *RangeNode in the AST.
ast/walk.go:293
↓ 1 callers
Method
VisitReservedNode
VisitReservedNode is invoked when visiting a *ReservedNode in the AST.
ast/walk.go:291
↓ 1 callers
Method
VisitRuneNode
VisitRuneNode is invoked when visiting a *RuneNode in the AST.
ast/walk.go:341
↓ 1 callers
Method
VisitServiceNode
VisitServiceNode is invoked when visiting a *ServiceNode in the AST.
ast/walk.go:309
↓ 1 callers
Method
VisitSignedFloatLiteralNode
VisitSignedFloatLiteralNode is invoked when visiting a *SignedFloatLiteralNode in the AST.
ast/walk.go:331
↓ 1 callers
Method
VisitSpecialFloatLiteralNode
VisitSpecialFloatLiteralNode is invoked when visiting a *SpecialFloatLiteralNode in the AST.
ast/walk.go:329
↓ 1 callers
Method
VisitStringLiteralNode
VisitStringLiteralNode is invoked when visiting a *StringLiteralNode in the AST.
ast/walk.go:319
↓ 1 callers
Method
VisitSyntaxNode
VisitSyntaxNode is invoked when visiting a *SyntaxNode in the AST.
ast/walk.go:269
← previous
next →
501–600 of 1,436, ranked by callers