Documentation ¶
Index ¶
- Variables
- type AdditionalEdgeProperty
- func (*AdditionalEdgeProperty) Descriptor() ([]byte, []int)deprecated
- func (x *AdditionalEdgeProperty) GetEdgeId() int64
- func (x *AdditionalEdgeProperty) GetEdgeType() CpgStruct_Edge_EdgeType
- func (x *AdditionalEdgeProperty) GetInNodeKey() int64
- func (x *AdditionalEdgeProperty) GetOutNodeKey() int64
- func (x *AdditionalEdgeProperty) GetProperty() *CpgStruct_Edge_Property
- func (*AdditionalEdgeProperty) ProtoMessage()
- func (x *AdditionalEdgeProperty) ProtoReflect() protoreflect.Message
- func (x *AdditionalEdgeProperty) Reset()
- func (x *AdditionalEdgeProperty) String() string
- type AdditionalNodeProperty
- func (*AdditionalNodeProperty) Descriptor() ([]byte, []int)deprecated
- func (x *AdditionalNodeProperty) GetNodeId() int64
- func (x *AdditionalNodeProperty) GetProperty() *CpgStruct_Node_Property
- func (*AdditionalNodeProperty) ProtoMessage()
- func (x *AdditionalNodeProperty) ProtoReflect() protoreflect.Message
- func (x *AdditionalNodeProperty) Reset()
- func (x *AdditionalNodeProperty) String() string
- type BoolList
- type CONTROL_STRUCTURE_TYPES
- func (CONTROL_STRUCTURE_TYPES) Descriptor() protoreflect.EnumDescriptor
- func (x CONTROL_STRUCTURE_TYPES) Enum() *CONTROL_STRUCTURE_TYPES
- func (CONTROL_STRUCTURE_TYPES) EnumDescriptor() ([]byte, []int)deprecated
- func (x CONTROL_STRUCTURE_TYPES) Number() protoreflect.EnumNumber
- func (x CONTROL_STRUCTURE_TYPES) String() string
- func (CONTROL_STRUCTURE_TYPES) Type() protoreflect.EnumType
- type ContainedRefs
- func (*ContainedRefs) Descriptor() ([]byte, []int)deprecated
- func (x *ContainedRefs) GetLocalName() string
- func (x *ContainedRefs) GetRefs() []int64
- func (*ContainedRefs) ProtoMessage()
- func (x *ContainedRefs) ProtoReflect() protoreflect.Message
- func (x *ContainedRefs) Reset()
- func (x *ContainedRefs) String() string
- type CpgOverlay
- func (*CpgOverlay) Descriptor() ([]byte, []int)deprecated
- func (x *CpgOverlay) GetEdge() []*CpgStruct_Edge
- func (x *CpgOverlay) GetEdgeProperty() []*AdditionalEdgeProperty
- func (x *CpgOverlay) GetNode() []*CpgStruct_Node
- func (x *CpgOverlay) GetNodeProperty() []*AdditionalNodeProperty
- func (*CpgOverlay) ProtoMessage()
- func (x *CpgOverlay) ProtoReflect() protoreflect.Message
- func (x *CpgOverlay) Reset()
- func (x *CpgOverlay) String() string
- type CpgStruct
- func (*CpgStruct) Descriptor() ([]byte, []int)deprecated
- func (x *CpgStruct) GetEdge() []*CpgStruct_Edge
- func (x *CpgStruct) GetNode() []*CpgStruct_Node
- func (*CpgStruct) ProtoMessage()
- func (x *CpgStruct) ProtoReflect() protoreflect.Message
- func (x *CpgStruct) Reset()
- func (x *CpgStruct) String() string
- type CpgStruct_Edge
- func (*CpgStruct_Edge) Descriptor() ([]byte, []int)deprecated
- func (x *CpgStruct_Edge) GetDst() int64
- func (x *CpgStruct_Edge) GetProperty() []*CpgStruct_Edge_Property
- func (x *CpgStruct_Edge) GetSrc() int64
- func (x *CpgStruct_Edge) GetType() CpgStruct_Edge_EdgeType
- func (*CpgStruct_Edge) ProtoMessage()
- func (x *CpgStruct_Edge) ProtoReflect() protoreflect.Message
- func (x *CpgStruct_Edge) Reset()
- func (x *CpgStruct_Edge) String() string
- type CpgStruct_Edge_EdgeType
- func (CpgStruct_Edge_EdgeType) Descriptor() protoreflect.EnumDescriptor
- func (x CpgStruct_Edge_EdgeType) Enum() *CpgStruct_Edge_EdgeType
- func (CpgStruct_Edge_EdgeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CpgStruct_Edge_EdgeType) Number() protoreflect.EnumNumber
- func (x CpgStruct_Edge_EdgeType) String() string
- func (CpgStruct_Edge_EdgeType) Type() protoreflect.EnumType
- type CpgStruct_Edge_Property
- func (*CpgStruct_Edge_Property) Descriptor() ([]byte, []int)deprecated
- func (x *CpgStruct_Edge_Property) GetName() EdgePropertyName
- func (x *CpgStruct_Edge_Property) GetValue() *PropertyValue
- func (*CpgStruct_Edge_Property) ProtoMessage()
- func (x *CpgStruct_Edge_Property) ProtoReflect() protoreflect.Message
- func (x *CpgStruct_Edge_Property) Reset()
- func (x *CpgStruct_Edge_Property) String() string
- type CpgStruct_Node
- func (*CpgStruct_Node) Descriptor() ([]byte, []int)deprecated
- func (x *CpgStruct_Node) GetKey() int64
- func (x *CpgStruct_Node) GetProperty() []*CpgStruct_Node_Property
- func (x *CpgStruct_Node) GetType() CpgStruct_Node_NodeType
- func (*CpgStruct_Node) ProtoMessage()
- func (x *CpgStruct_Node) ProtoReflect() protoreflect.Message
- func (x *CpgStruct_Node) Reset()
- func (x *CpgStruct_Node) String() string
- type CpgStruct_Node_NodeType
- func (CpgStruct_Node_NodeType) Descriptor() protoreflect.EnumDescriptor
- func (x CpgStruct_Node_NodeType) Enum() *CpgStruct_Node_NodeType
- func (CpgStruct_Node_NodeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CpgStruct_Node_NodeType) Number() protoreflect.EnumNumber
- func (x CpgStruct_Node_NodeType) String() string
- func (CpgStruct_Node_NodeType) Type() protoreflect.EnumType
- type CpgStruct_Node_Property
- func (*CpgStruct_Node_Property) Descriptor() ([]byte, []int)deprecated
- func (x *CpgStruct_Node_Property) GetName() NodePropertyName
- func (x *CpgStruct_Node_Property) GetValue() *PropertyValue
- func (*CpgStruct_Node_Property) ProtoMessage()
- func (x *CpgStruct_Node_Property) ProtoReflect() protoreflect.Message
- func (x *CpgStruct_Node_Property) Reset()
- func (x *CpgStruct_Node_Property) String() string
- type DiffGraph
- type DiffGraph_Entry
- func (*DiffGraph_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *DiffGraph_Entry) GetEdge() *CpgStruct_Edge
- func (x *DiffGraph_Entry) GetEdgeProperty() *AdditionalEdgeProperty
- func (x *DiffGraph_Entry) GetNode() *CpgStruct_Node
- func (x *DiffGraph_Entry) GetNodeProperty() *AdditionalNodeProperty
- func (x *DiffGraph_Entry) GetRemoveEdge() *DiffGraph_RemoveEdge
- func (x *DiffGraph_Entry) GetRemoveEdgeProperty() *DiffGraph_RemoveEdgeProperty
- func (x *DiffGraph_Entry) GetRemoveNode() *DiffGraph_RemoveNode
- func (x *DiffGraph_Entry) GetRemoveNodeProperty() *DiffGraph_RemoveNodeProperty
- func (m *DiffGraph_Entry) GetValue() isDiffGraph_Entry_Value
- func (*DiffGraph_Entry) ProtoMessage()
- func (x *DiffGraph_Entry) ProtoReflect() protoreflect.Message
- func (x *DiffGraph_Entry) Reset()
- func (x *DiffGraph_Entry) String() string
- type DiffGraph_Entry_Edge
- type DiffGraph_Entry_EdgeProperty
- type DiffGraph_Entry_Node
- type DiffGraph_Entry_NodeProperty
- type DiffGraph_Entry_RemoveEdge
- type DiffGraph_Entry_RemoveEdgeProperty
- type DiffGraph_Entry_RemoveNode
- type DiffGraph_Entry_RemoveNodeProperty
- type DiffGraph_RemoveEdge
- func (*DiffGraph_RemoveEdge) Descriptor() ([]byte, []int)deprecated
- func (x *DiffGraph_RemoveEdge) GetEdgeType() CpgStruct_Edge_EdgeType
- func (x *DiffGraph_RemoveEdge) GetInNodeKey() int64
- func (x *DiffGraph_RemoveEdge) GetOutNodeKey() int64
- func (x *DiffGraph_RemoveEdge) GetPropertiesHash() []byte
- func (*DiffGraph_RemoveEdge) ProtoMessage()
- func (x *DiffGraph_RemoveEdge) ProtoReflect() protoreflect.Message
- func (x *DiffGraph_RemoveEdge) Reset()
- func (x *DiffGraph_RemoveEdge) String() string
- type DiffGraph_RemoveEdgeProperty
- func (*DiffGraph_RemoveEdgeProperty) Descriptor() ([]byte, []int)deprecated
- func (x *DiffGraph_RemoveEdgeProperty) GetEdgeType() CpgStruct_Edge_EdgeType
- func (x *DiffGraph_RemoveEdgeProperty) GetInNodeKey() int64
- func (x *DiffGraph_RemoveEdgeProperty) GetOutNodeKey() int64
- func (x *DiffGraph_RemoveEdgeProperty) GetPropertiesHash() []byte
- func (x *DiffGraph_RemoveEdgeProperty) GetPropertyName() EdgePropertyName
- func (*DiffGraph_RemoveEdgeProperty) ProtoMessage()
- func (x *DiffGraph_RemoveEdgeProperty) ProtoReflect() protoreflect.Message
- func (x *DiffGraph_RemoveEdgeProperty) Reset()
- func (x *DiffGraph_RemoveEdgeProperty) String() string
- type DiffGraph_RemoveNode
- func (*DiffGraph_RemoveNode) Descriptor() ([]byte, []int)deprecated
- func (x *DiffGraph_RemoveNode) GetKey() int64
- func (*DiffGraph_RemoveNode) ProtoMessage()
- func (x *DiffGraph_RemoveNode) ProtoReflect() protoreflect.Message
- func (x *DiffGraph_RemoveNode) Reset()
- func (x *DiffGraph_RemoveNode) String() string
- type DiffGraph_RemoveNodeProperty
- func (*DiffGraph_RemoveNodeProperty) Descriptor() ([]byte, []int)deprecated
- func (x *DiffGraph_RemoveNodeProperty) GetKey() int64
- func (x *DiffGraph_RemoveNodeProperty) GetLocalName() string
- func (x *DiffGraph_RemoveNodeProperty) GetName() NodePropertyName
- func (*DiffGraph_RemoveNodeProperty) ProtoMessage()
- func (x *DiffGraph_RemoveNodeProperty) ProtoReflect() protoreflect.Message
- func (x *DiffGraph_RemoveNodeProperty) Reset()
- func (x *DiffGraph_RemoveNodeProperty) String() string
- type DispatchTypes
- func (DispatchTypes) Descriptor() protoreflect.EnumDescriptor
- func (x DispatchTypes) Enum() *DispatchTypes
- func (DispatchTypes) EnumDescriptor() ([]byte, []int)deprecated
- func (x DispatchTypes) Number() protoreflect.EnumNumber
- func (x DispatchTypes) String() string
- func (DispatchTypes) Type() protoreflect.EnumType
- type DoubleList
- type EdgePropertyName
- func (EdgePropertyName) Descriptor() protoreflect.EnumDescriptor
- func (x EdgePropertyName) Enum() *EdgePropertyName
- func (EdgePropertyName) EnumDescriptor() ([]byte, []int)deprecated
- func (x EdgePropertyName) Number() protoreflect.EnumNumber
- func (x EdgePropertyName) String() string
- func (EdgePropertyName) Type() protoreflect.EnumType
- type EvaluationStrategies
- func (EvaluationStrategies) Descriptor() protoreflect.EnumDescriptor
- func (x EvaluationStrategies) Enum() *EvaluationStrategies
- func (EvaluationStrategies) EnumDescriptor() ([]byte, []int)deprecated
- func (x EvaluationStrategies) Number() protoreflect.EnumNumber
- func (x EvaluationStrategies) String() string
- func (EvaluationStrategies) Type() protoreflect.EnumType
- type FloatList
- type IntList
- type LANGUAGES
- type LongList
- type ModifierTypes
- func (ModifierTypes) Descriptor() protoreflect.EnumDescriptor
- func (x ModifierTypes) Enum() *ModifierTypes
- func (ModifierTypes) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModifierTypes) Number() protoreflect.EnumNumber
- func (x ModifierTypes) String() string
- func (ModifierTypes) Type() protoreflect.EnumType
- type NodePropertyName
- func (NodePropertyName) Descriptor() protoreflect.EnumDescriptor
- func (x NodePropertyName) Enum() *NodePropertyName
- func (NodePropertyName) EnumDescriptor() ([]byte, []int)deprecated
- func (x NodePropertyName) Number() protoreflect.EnumNumber
- func (x NodePropertyName) String() string
- func (NodePropertyName) Type() protoreflect.EnumType
- type PropertyValue
- func (*PropertyValue) Descriptor() ([]byte, []int)deprecated
- func (x *PropertyValue) GetBoolList() *BoolList
- func (x *PropertyValue) GetBoolValue() bool
- func (x *PropertyValue) GetContainedRefs() *ContainedRefs
- func (x *PropertyValue) GetDoubleList() *DoubleList
- func (x *PropertyValue) GetDoubleValue() float64
- func (x *PropertyValue) GetFloatList() *FloatList
- func (x *PropertyValue) GetFloatValue() float32
- func (x *PropertyValue) GetIntList() *IntList
- func (x *PropertyValue) GetIntValue() int32
- func (x *PropertyValue) GetLongList() *LongList
- func (x *PropertyValue) GetLongValue() int64
- func (x *PropertyValue) GetStringList() *StringList
- func (x *PropertyValue) GetStringValue() string
- func (m *PropertyValue) GetValue() isPropertyValue_Value
- func (*PropertyValue) ProtoMessage()
- func (x *PropertyValue) ProtoReflect() protoreflect.Message
- func (x *PropertyValue) Reset()
- func (x *PropertyValue) String() string
- type PropertyValue_BoolList
- type PropertyValue_BoolValue
- type PropertyValue_ContainedRefs
- type PropertyValue_DoubleList
- type PropertyValue_DoubleValue
- type PropertyValue_FloatList
- type PropertyValue_FloatValue
- type PropertyValue_IntList
- type PropertyValue_IntValue
- type PropertyValue_LongList
- type PropertyValue_LongValue
- type PropertyValue_StringList
- type PropertyValue_StringValue
- type StringList
Constants ¶
This section is empty.
Variables ¶
var ( NodePropertyName_name = map[int32]string{ 0: "UNKNOWN_NODE_PROPERTY", 2: "LINE_NUMBER", 3: "PARSER_TYPE_NAME", 4: "ORDER", 5: "NAME", 6: "FULL_NAME", 7: "IS_EXTERNAL", 8: "VALUE", 11: "COLUMN_NUMBER", 12: "LINE_NUMBER_END", 13: "VERSION", 15: "EVALUATION_STRATEGY", 16: "COLUMN_NUMBER_END", 19: "LANGUAGE", 20: "CONTENT", 21: "CODE", 22: "SIGNATURE", 25: "DISPATCH_TYPE", 26: "MODIFIER_TYPE", 27: "CONTROL_STRUCTURE_TYPE", 40: "ARGUMENT_INDEX", 50: "CLOSURE_BINDING_ID", 51: "TYPE_FULL_NAME", 52: "TYPE_DECL_FULL_NAME", 53: "INHERITS_FROM_TYPE_FULL_NAME", 54: "METHOD_FULL_NAME", 56: "AST_PARENT_TYPE", 57: "AST_PARENT_FULL_NAME", 58: "DEPENDENCY_GROUP_ID", 100: "SYMBOL", 102: "METHOD_SHORT_NAME", 103: "PACKAGE_NAME", 104: "CLASS_NAME", 105: "NODE_LABEL", 106: "FILENAME", 118: "OVERLAYS", 120: "HASH", 130: "ARGUMENT_NAME", 131: "KEY", 132: "CLASS_SHORT_NAME", 158: "ALIAS_TYPE_FULL_NAME", 159: "CLOSURE_ORIGINAL_NAME", 221: "IS_VARIADIC", 1199: "ROOT", 1591: "DYNAMIC_TYPE_HINT_FULL_NAME", 2223: "INDEX", 2001092: "CANONICAL_NAME", 2007161: "CONTAINED_REF", } NodePropertyName_value = map[string]int32{ "UNKNOWN_NODE_PROPERTY": 0, "LINE_NUMBER": 2, "PARSER_TYPE_NAME": 3, "ORDER": 4, "NAME": 5, "FULL_NAME": 6, "IS_EXTERNAL": 7, "VALUE": 8, "COLUMN_NUMBER": 11, "LINE_NUMBER_END": 12, "VERSION": 13, "EVALUATION_STRATEGY": 15, "COLUMN_NUMBER_END": 16, "LANGUAGE": 19, "CONTENT": 20, "CODE": 21, "SIGNATURE": 22, "DISPATCH_TYPE": 25, "MODIFIER_TYPE": 26, "CONTROL_STRUCTURE_TYPE": 27, "ARGUMENT_INDEX": 40, "CLOSURE_BINDING_ID": 50, "TYPE_FULL_NAME": 51, "TYPE_DECL_FULL_NAME": 52, "INHERITS_FROM_TYPE_FULL_NAME": 53, "METHOD_FULL_NAME": 54, "AST_PARENT_TYPE": 56, "AST_PARENT_FULL_NAME": 57, "DEPENDENCY_GROUP_ID": 58, "SYMBOL": 100, "METHOD_SHORT_NAME": 102, "PACKAGE_NAME": 103, "CLASS_NAME": 104, "NODE_LABEL": 105, "FILENAME": 106, "OVERLAYS": 118, "HASH": 120, "ARGUMENT_NAME": 130, "KEY": 131, "CLASS_SHORT_NAME": 132, "ALIAS_TYPE_FULL_NAME": 158, "CLOSURE_ORIGINAL_NAME": 159, "IS_VARIADIC": 221, "ROOT": 1199, "DYNAMIC_TYPE_HINT_FULL_NAME": 1591, "INDEX": 2223, "CANONICAL_NAME": 2001092, "CONTAINED_REF": 2007161, } )
Enum value maps for NodePropertyName.
var ( EdgePropertyName_name = map[int32]string{ 0: "UNKNOWN_EDGE_PROPERTY", 11: "VARIABLE", } EdgePropertyName_value = map[string]int32{ "UNKNOWN_EDGE_PROPERTY": 0, "VARIABLE": 11, } )
Enum value maps for EdgePropertyName.
var ( ModifierTypes_name = map[int32]string{ 0: "UNKNOWN_MODIFIER_TYPE", 1: "STATIC", 2: "PUBLIC", 3: "PROTECTED", 4: "PRIVATE", 5: "ABSTRACT", 6: "NATIVE", 7: "CONSTRUCTOR", 8: "VIRTUAL", 9: "INTERNAL", 10: "FINAL", 11: "READONLY", } ModifierTypes_value = map[string]int32{ "UNKNOWN_MODIFIER_TYPE": 0, "STATIC": 1, "PUBLIC": 2, "PROTECTED": 3, "PRIVATE": 4, "ABSTRACT": 5, "NATIVE": 6, "CONSTRUCTOR": 7, "VIRTUAL": 8, "INTERNAL": 9, "FINAL": 10, "READONLY": 11, } )
Enum value maps for ModifierTypes.
var ( LANGUAGES_name = map[int32]string{ 0: "UNKNOWN_LANGUAGE", 1: "JAVA", 2: "JAVASCRIPT", 3: "GOLANG", 4: "CSHARP", 5: "C", 6: "PYTHON", 7: "LLVM", 8: "PHP", 9: "FUZZY_TEST_LANG", 10: "GHIDRA", 11: "KOTLIN", 12: "NEWC", 13: "JAVASRC", 14: "PYTHONSRC", 15: "JSSRC", 16: "SOLIDITY", 17: "RUBYSRC", } LANGUAGES_value = map[string]int32{ "UNKNOWN_LANGUAGE": 0, "JAVA": 1, "JAVASCRIPT": 2, "GOLANG": 3, "CSHARP": 4, "C": 5, "PYTHON": 6, "LLVM": 7, "PHP": 8, "FUZZY_TEST_LANG": 9, "GHIDRA": 10, "KOTLIN": 11, "NEWC": 12, "JAVASRC": 13, "PYTHONSRC": 14, "JSSRC": 15, "SOLIDITY": 16, "RUBYSRC": 17, } )
Enum value maps for LANGUAGES.
var ( EvaluationStrategies_name = map[int32]string{ 0: "UNKNOWN_EVALUATION_STRATEGY", 1: "BY_REFERENCE", 2: "BY_SHARING", 3: "BY_VALUE", } EvaluationStrategies_value = map[string]int32{ "UNKNOWN_EVALUATION_STRATEGY": 0, "BY_REFERENCE": 1, "BY_SHARING": 2, "BY_VALUE": 3, } )
Enum value maps for EvaluationStrategies.
var ( DispatchTypes_name = map[int32]string{ 0: "UNKNOWN_DISPATCH_TYPE", 1: "STATIC_DISPATCH", 2: "DYNAMIC_DISPATCH", 3: "INLINED", } DispatchTypes_value = map[string]int32{ "UNKNOWN_DISPATCH_TYPE": 0, "STATIC_DISPATCH": 1, "DYNAMIC_DISPATCH": 2, "INLINED": 3, } )
Enum value maps for DispatchTypes.
var ( CONTROL_STRUCTURE_TYPES_name = map[int32]string{ 0: "UNKNOWN_CONTROL_STRUCTURE_TYPE", 1: "BREAK", 2: "CONTINUE", 3: "WHILE", 4: "DO", 5: "FOR", 6: "GOTO", 7: "IF", 8: "ELSE", 9: "SWITCH", 10: "TRY", 11: "THROW", 12: "MATCH", 13: "YIELD", } CONTROL_STRUCTURE_TYPES_value = map[string]int32{ "UNKNOWN_CONTROL_STRUCTURE_TYPE": 0, "BREAK": 1, "CONTINUE": 2, "WHILE": 3, "DO": 4, "FOR": 5, "GOTO": 6, "IF": 7, "ELSE": 8, "SWITCH": 9, "TRY": 10, "THROW": 11, "MATCH": 12, "YIELD": 13, } )
Enum value maps for CONTROL_STRUCTURE_TYPES.
var ( CpgStruct_Node_NodeType_name = map[int32]string{ 0: "UNKNOWN_NODE_TYPE", 1: "METHOD", 3: "METHOD_RETURN", 5: "ANNOTATION", 6: "ANNOTATION_PARAMETER_ASSIGN", 7: "ANNOTATION_PARAMETER", 8: "LITERAL", 9: "MEMBER", 14: "ARRAY_INITIALIZER", 15: "CALL", 23: "LOCAL", 24: "TAG", 25: "LOCATION", 27: "IDENTIFIER", 30: "RETURN", 31: "BLOCK", 33: "METHOD_PARAMETER_OUT", 34: "METHOD_PARAMETER_IN", 35: "DEPENDENCY", 38: "FILE", 39: "META_DATA", 40: "NAMESPACE", 41: "NAMESPACE_BLOCK", 44: "UNKNOWN", 45: "TYPE", 46: "TYPE_DECL", 47: "TYPE_PARAMETER", 48: "TYPE_ARGUMENT", 49: "ANNOTATION_LITERAL", 50: "CONFIG_FILE", 146: "BINDING", 208: "TAG_NODE_PAIR", 214: "FINDING", 217: "KEY_VALUE_PAIR", 300: "MODIFIER", 333: "METHOD_REF", 334: "CLOSURE_BINDING", 335: "TYPE_REF", 339: "CONTROL_STRUCTURE", 340: "JUMP_TARGET", 341: "JUMP_LABEL", 417: "TEMPLATE_DOM", 511: "COMMENT", 2001081: "FIELD_IDENTIFIER", } CpgStruct_Node_NodeType_value = map[string]int32{ "UNKNOWN_NODE_TYPE": 0, "METHOD": 1, "METHOD_RETURN": 3, "ANNOTATION": 5, "ANNOTATION_PARAMETER_ASSIGN": 6, "ANNOTATION_PARAMETER": 7, "LITERAL": 8, "MEMBER": 9, "ARRAY_INITIALIZER": 14, "CALL": 15, "LOCAL": 23, "TAG": 24, "LOCATION": 25, "IDENTIFIER": 27, "RETURN": 30, "BLOCK": 31, "METHOD_PARAMETER_OUT": 33, "METHOD_PARAMETER_IN": 34, "DEPENDENCY": 35, "FILE": 38, "META_DATA": 39, "NAMESPACE": 40, "NAMESPACE_BLOCK": 41, "UNKNOWN": 44, "TYPE": 45, "TYPE_DECL": 46, "TYPE_PARAMETER": 47, "TYPE_ARGUMENT": 48, "ANNOTATION_LITERAL": 49, "CONFIG_FILE": 50, "BINDING": 146, "TAG_NODE_PAIR": 208, "FINDING": 214, "KEY_VALUE_PAIR": 217, "MODIFIER": 300, "METHOD_REF": 333, "CLOSURE_BINDING": 334, "TYPE_REF": 335, "CONTROL_STRUCTURE": 339, "JUMP_TARGET": 340, "JUMP_LABEL": 341, "TEMPLATE_DOM": 417, "COMMENT": 511, "FIELD_IDENTIFIER": 2001081, } )
Enum value maps for CpgStruct_Node_NodeType.
var ( CpgStruct_Edge_EdgeType_name = map[int32]string{ 0: "UNKNOWN_EDGE_TYPE", 3: "AST", 6: "CALL", 10: "REF", 11: "TAGGED_BY", 12: "PARAMETER_LINK", 19: "CFG", 21: "EVAL_TYPE", 22: "BINDS_TO", 23: "INHERITS_FROM", 28: "CONTAINS", 40: "CAPTURE", 41: "CAPTURED_BY", 55: "RECEIVER", 56: "CONDITION", 137: "REACHING_DEF", 138: "ALIAS_OF", 155: "BINDS", 156: "ARGUMENT", 157: "SOURCE_FILE", 181: "DOMINATE", 182: "POST_DOMINATE", 183: "CDG", 12345: "POINTS_TO", 23663: "IMPORTS", 23664: "IS_CALL_FOR_IMPORT", } CpgStruct_Edge_EdgeType_value = map[string]int32{ "UNKNOWN_EDGE_TYPE": 0, "AST": 3, "CALL": 6, "REF": 10, "TAGGED_BY": 11, "PARAMETER_LINK": 12, "CFG": 19, "EVAL_TYPE": 21, "BINDS_TO": 22, "INHERITS_FROM": 23, "CONTAINS": 28, "CAPTURE": 40, "CAPTURED_BY": 41, "RECEIVER": 55, "CONDITION": 56, "REACHING_DEF": 137, "ALIAS_OF": 138, "BINDS": 155, "ARGUMENT": 156, "SOURCE_FILE": 157, "DOMINATE": 181, "POST_DOMINATE": 182, "CDG": 183, "POINTS_TO": 12345, "IMPORTS": 23663, "IS_CALL_FOR_IMPORT": 23664, } )
Enum value maps for CpgStruct_Edge_EdgeType.
var File_schema_target_protos_cpg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AdditionalEdgeProperty ¶
type AdditionalEdgeProperty struct { EdgeId int64 `protobuf:"varint,1,opt,name=edge_id,json=edgeId,proto3" json:"edge_id,omitempty"` Property *CpgStruct_Edge_Property `protobuf:"bytes,2,opt,name=property,proto3" json:"property,omitempty"` OutNodeKey int64 `protobuf:"varint,3,opt,name=out_node_key,json=outNodeKey,proto3" json:"out_node_key,omitempty"` InNodeKey int64 `protobuf:"varint,4,opt,name=in_node_key,json=inNodeKey,proto3" json:"in_node_key,omitempty"` EdgeType CpgStruct_Edge_EdgeType `protobuf:"varint,5,opt,name=edge_type,json=edgeType,proto3,enum=cpg.CpgStruct_Edge_EdgeType" json:"edge_type,omitempty"` // contains filtered or unexported fields }
func (*AdditionalEdgeProperty) Descriptor
deprecated
func (*AdditionalEdgeProperty) Descriptor() ([]byte, []int)
Deprecated: Use AdditionalEdgeProperty.ProtoReflect.Descriptor instead.
func (*AdditionalEdgeProperty) GetEdgeId ¶
func (x *AdditionalEdgeProperty) GetEdgeId() int64
func (*AdditionalEdgeProperty) GetEdgeType ¶
func (x *AdditionalEdgeProperty) GetEdgeType() CpgStruct_Edge_EdgeType
func (*AdditionalEdgeProperty) GetInNodeKey ¶
func (x *AdditionalEdgeProperty) GetInNodeKey() int64
func (*AdditionalEdgeProperty) GetOutNodeKey ¶
func (x *AdditionalEdgeProperty) GetOutNodeKey() int64
func (*AdditionalEdgeProperty) GetProperty ¶
func (x *AdditionalEdgeProperty) GetProperty() *CpgStruct_Edge_Property
func (*AdditionalEdgeProperty) ProtoMessage ¶
func (*AdditionalEdgeProperty) ProtoMessage()
func (*AdditionalEdgeProperty) ProtoReflect ¶
func (x *AdditionalEdgeProperty) ProtoReflect() protoreflect.Message
func (*AdditionalEdgeProperty) Reset ¶
func (x *AdditionalEdgeProperty) Reset()
func (*AdditionalEdgeProperty) String ¶
func (x *AdditionalEdgeProperty) String() string
type AdditionalNodeProperty ¶
type AdditionalNodeProperty struct { NodeId int64 `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Property *CpgStruct_Node_Property `protobuf:"bytes,2,opt,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*AdditionalNodeProperty) Descriptor
deprecated
func (*AdditionalNodeProperty) Descriptor() ([]byte, []int)
Deprecated: Use AdditionalNodeProperty.ProtoReflect.Descriptor instead.
func (*AdditionalNodeProperty) GetNodeId ¶
func (x *AdditionalNodeProperty) GetNodeId() int64
func (*AdditionalNodeProperty) GetProperty ¶
func (x *AdditionalNodeProperty) GetProperty() *CpgStruct_Node_Property
func (*AdditionalNodeProperty) ProtoMessage ¶
func (*AdditionalNodeProperty) ProtoMessage()
func (*AdditionalNodeProperty) ProtoReflect ¶
func (x *AdditionalNodeProperty) ProtoReflect() protoreflect.Message
func (*AdditionalNodeProperty) Reset ¶
func (x *AdditionalNodeProperty) Reset()
func (*AdditionalNodeProperty) String ¶
func (x *AdditionalNodeProperty) String() string
type BoolList ¶
type BoolList struct { Values []bool `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*BoolList) Descriptor
deprecated
func (*BoolList) ProtoMessage ¶
func (*BoolList) ProtoMessage()
func (*BoolList) ProtoReflect ¶
func (x *BoolList) ProtoReflect() protoreflect.Message
type CONTROL_STRUCTURE_TYPES ¶
type CONTROL_STRUCTURE_TYPES int32
const ( CONTROL_STRUCTURE_TYPES_UNKNOWN_CONTROL_STRUCTURE_TYPE CONTROL_STRUCTURE_TYPES = 0 // Represents a break statement. Labeled breaks are expected to have a JUMP_LABEL // node AST child with ORDER 1 CONTROL_STRUCTURE_TYPES_BREAK CONTROL_STRUCTURE_TYPES = 1 // Represents a continue statement. Labeled continues are expected to have a JUMP_LABEL // node AST child with ORDER 1 CONTROL_STRUCTURE_TYPES_CONTINUE CONTROL_STRUCTURE_TYPES = 2 // Represents a while statement CONTROL_STRUCTURE_TYPES_WHILE CONTROL_STRUCTURE_TYPES = 3 // Represents a do statement CONTROL_STRUCTURE_TYPES_DO CONTROL_STRUCTURE_TYPES = 4 // Represents a for statement CONTROL_STRUCTURE_TYPES_FOR CONTROL_STRUCTURE_TYPES = 5 // Represents a goto statement CONTROL_STRUCTURE_TYPES_GOTO CONTROL_STRUCTURE_TYPES = 6 // Represents an if statement CONTROL_STRUCTURE_TYPES_IF CONTROL_STRUCTURE_TYPES = 7 // Represents an else statement CONTROL_STRUCTURE_TYPES_ELSE CONTROL_STRUCTURE_TYPES = 8 // Represents a switch statement CONTROL_STRUCTURE_TYPES_SWITCH CONTROL_STRUCTURE_TYPES = 9 // Represents a try statement CONTROL_STRUCTURE_TYPES_TRY CONTROL_STRUCTURE_TYPES = 10 // Represents a throw statement CONTROL_STRUCTURE_TYPES_THROW CONTROL_STRUCTURE_TYPES = 11 // Represents a match expression CONTROL_STRUCTURE_TYPES_MATCH CONTROL_STRUCTURE_TYPES = 12 // Represents a yield expression CONTROL_STRUCTURE_TYPES_YIELD CONTROL_STRUCTURE_TYPES = 13 )
func (CONTROL_STRUCTURE_TYPES) Descriptor ¶
func (CONTROL_STRUCTURE_TYPES) Descriptor() protoreflect.EnumDescriptor
func (CONTROL_STRUCTURE_TYPES) Enum ¶
func (x CONTROL_STRUCTURE_TYPES) Enum() *CONTROL_STRUCTURE_TYPES
func (CONTROL_STRUCTURE_TYPES) EnumDescriptor
deprecated
func (CONTROL_STRUCTURE_TYPES) EnumDescriptor() ([]byte, []int)
Deprecated: Use CONTROL_STRUCTURE_TYPES.Descriptor instead.
func (CONTROL_STRUCTURE_TYPES) Number ¶
func (x CONTROL_STRUCTURE_TYPES) Number() protoreflect.EnumNumber
func (CONTROL_STRUCTURE_TYPES) String ¶
func (x CONTROL_STRUCTURE_TYPES) String() string
func (CONTROL_STRUCTURE_TYPES) Type ¶
func (CONTROL_STRUCTURE_TYPES) Type() protoreflect.EnumType
type ContainedRefs ¶
type ContainedRefs struct { LocalName string `protobuf:"bytes,1,opt,name=local_name,json=localName,proto3" json:"local_name,omitempty"` Refs []int64 `protobuf:"varint,2,rep,packed,name=refs,proto3" json:"refs,omitempty"` // contains filtered or unexported fields }
func (*ContainedRefs) Descriptor
deprecated
func (*ContainedRefs) Descriptor() ([]byte, []int)
Deprecated: Use ContainedRefs.ProtoReflect.Descriptor instead.
func (*ContainedRefs) GetLocalName ¶
func (x *ContainedRefs) GetLocalName() string
func (*ContainedRefs) GetRefs ¶
func (x *ContainedRefs) GetRefs() []int64
func (*ContainedRefs) ProtoMessage ¶
func (*ContainedRefs) ProtoMessage()
func (*ContainedRefs) ProtoReflect ¶
func (x *ContainedRefs) ProtoReflect() protoreflect.Message
func (*ContainedRefs) Reset ¶
func (x *ContainedRefs) Reset()
func (*ContainedRefs) String ¶
func (x *ContainedRefs) String() string
type CpgOverlay ¶
type CpgOverlay struct { Node []*CpgStruct_Node `protobuf:"bytes,1,rep,name=node,proto3" json:"node,omitempty"` Edge []*CpgStruct_Edge `protobuf:"bytes,2,rep,name=edge,proto3" json:"edge,omitempty"` NodeProperty []*AdditionalNodeProperty `protobuf:"bytes,3,rep,name=node_property,json=nodeProperty,proto3" json:"node_property,omitempty"` EdgeProperty []*AdditionalEdgeProperty `protobuf:"bytes,4,rep,name=edge_property,json=edgeProperty,proto3" json:"edge_property,omitempty"` // contains filtered or unexported fields }
Overlays can be stacked onto each other, therefor their node ids must be globally unique.
func (*CpgOverlay) Descriptor
deprecated
func (*CpgOverlay) Descriptor() ([]byte, []int)
Deprecated: Use CpgOverlay.ProtoReflect.Descriptor instead.
func (*CpgOverlay) GetEdge ¶
func (x *CpgOverlay) GetEdge() []*CpgStruct_Edge
func (*CpgOverlay) GetEdgeProperty ¶
func (x *CpgOverlay) GetEdgeProperty() []*AdditionalEdgeProperty
func (*CpgOverlay) GetNode ¶
func (x *CpgOverlay) GetNode() []*CpgStruct_Node
func (*CpgOverlay) GetNodeProperty ¶
func (x *CpgOverlay) GetNodeProperty() []*AdditionalNodeProperty
func (*CpgOverlay) ProtoMessage ¶
func (*CpgOverlay) ProtoMessage()
func (*CpgOverlay) ProtoReflect ¶
func (x *CpgOverlay) ProtoReflect() protoreflect.Message
func (*CpgOverlay) Reset ¶
func (x *CpgOverlay) Reset()
func (*CpgOverlay) String ¶
func (x *CpgOverlay) String() string
type CpgStruct ¶
type CpgStruct struct { Node []*CpgStruct_Node `protobuf:"bytes,1,rep,name=node,proto3" json:"node,omitempty"` Edge []*CpgStruct_Edge `protobuf:"bytes,2,rep,name=edge,proto3" json:"edge,omitempty"` // contains filtered or unexported fields }
func (*CpgStruct) Descriptor
deprecated
func (*CpgStruct) GetEdge ¶
func (x *CpgStruct) GetEdge() []*CpgStruct_Edge
func (*CpgStruct) GetNode ¶
func (x *CpgStruct) GetNode() []*CpgStruct_Node
func (*CpgStruct) ProtoMessage ¶
func (*CpgStruct) ProtoMessage()
func (*CpgStruct) ProtoReflect ¶
func (x *CpgStruct) ProtoReflect() protoreflect.Message
type CpgStruct_Edge ¶
type CpgStruct_Edge struct { // Source node. Src int64 `protobuf:"varint,1,opt,name=src,proto3" json:"src,omitempty"` // Destination node. Dst int64 `protobuf:"varint,2,opt,name=dst,proto3" json:"dst,omitempty"` Type CpgStruct_Edge_EdgeType `protobuf:"varint,3,opt,name=type,proto3,enum=cpg.CpgStruct_Edge_EdgeType" json:"type,omitempty"` Property []*CpgStruct_Edge_Property `protobuf:"bytes,4,rep,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*CpgStruct_Edge) Descriptor
deprecated
func (*CpgStruct_Edge) Descriptor() ([]byte, []int)
Deprecated: Use CpgStruct_Edge.ProtoReflect.Descriptor instead.
func (*CpgStruct_Edge) GetDst ¶
func (x *CpgStruct_Edge) GetDst() int64
func (*CpgStruct_Edge) GetProperty ¶
func (x *CpgStruct_Edge) GetProperty() []*CpgStruct_Edge_Property
func (*CpgStruct_Edge) GetSrc ¶
func (x *CpgStruct_Edge) GetSrc() int64
func (*CpgStruct_Edge) GetType ¶
func (x *CpgStruct_Edge) GetType() CpgStruct_Edge_EdgeType
func (*CpgStruct_Edge) ProtoMessage ¶
func (*CpgStruct_Edge) ProtoMessage()
func (*CpgStruct_Edge) ProtoReflect ¶
func (x *CpgStruct_Edge) ProtoReflect() protoreflect.Message
func (*CpgStruct_Edge) Reset ¶
func (x *CpgStruct_Edge) Reset()
func (*CpgStruct_Edge) String ¶
func (x *CpgStruct_Edge) String() string
type CpgStruct_Edge_EdgeType ¶
type CpgStruct_Edge_EdgeType int32
Edge type.
const ( CpgStruct_Edge_UNKNOWN_EDGE_TYPE CpgStruct_Edge_EdgeType = 0 // This edge connects a parent node to its child in the syntax tree. CpgStruct_Edge_AST CpgStruct_Edge_EdgeType = 3 // This edge connects call sites, i.e., nodes with the type `CALL`, to the // method node that represent the method they invoke. The frontend MAY create // `CALL` edges but is not required to do so. Instead, of the `METHOD_FULL_NAME` // field of the `CALL` node is set correctly, `CALL` edges are created // automatically as the CPG is first loaded. CpgStruct_Edge_CALL CpgStruct_Edge_EdgeType = 6 // This edge indicates that the source node is an identifier that denotes // access to the destination node. For example, an identifier may reference // a local variable. CpgStruct_Edge_REF CpgStruct_Edge_EdgeType = 10 // Edges from nodes to the tags they are tagged by. CpgStruct_Edge_TAGGED_BY CpgStruct_Edge_EdgeType = 11 // This edge connects a method input parameter to the corresponding // method output parameter. CpgStruct_Edge_PARAMETER_LINK CpgStruct_Edge_EdgeType = 12 // This edge indicates control flow from the source to the destination node. CpgStruct_Edge_CFG CpgStruct_Edge_EdgeType = 19 // This edge connects a node to its evaluation type. CpgStruct_Edge_EVAL_TYPE CpgStruct_Edge_EdgeType = 21 // This edge connects type arguments to type parameters to indicate // that the type argument is used to instantiate the type parameter. CpgStruct_Edge_BINDS_TO CpgStruct_Edge_EdgeType = 22 // Inheritance relation between a type declaration and a type. This edge MUST NOT // be created by the language frontend as it is automatically created from // `INHERITS_FROM_TYPE_FULL_NAME` fields then the CPG is first loaded. CpgStruct_Edge_INHERITS_FROM CpgStruct_Edge_EdgeType = 23 // This edge connects a node to the method that contains it. CpgStruct_Edge_CONTAINS CpgStruct_Edge_EdgeType = 28 // Represents the capturing of a variable into a closure CpgStruct_Edge_CAPTURE CpgStruct_Edge_EdgeType = 40 // Connection between a captured LOCAL and the corresponding CLOSURE_BINDING CpgStruct_Edge_CAPTURED_BY CpgStruct_Edge_EdgeType = 41 // Similar to `ARGUMENT` edges, `RECEIVER` edges connect call sites // to their receiver arguments. A receiver argument is the object on // which a method operates, that is, it is the expression that is // assigned to the `this` pointer as control is transferred to the method. CpgStruct_Edge_RECEIVER CpgStruct_Edge_EdgeType = 55 // The edge connects control structure nodes to the expressions that holds their conditions. CpgStruct_Edge_CONDITION CpgStruct_Edge_EdgeType = 56 // A reaching definition edge indicates that a variable produced at the source node reaches // the destination node without being reassigned on the way. The `VARIABLE` property indicates // which variable is propagated. CpgStruct_Edge_REACHING_DEF CpgStruct_Edge_EdgeType = 137 // This edge represents an alias relation between a type declaration and a type. // The language frontend MUST NOT create `ALIAS_OF` edges as they are created // automatically based on `ALIAS_TYPE_FULL_NAME` fields when the CPG is first loaded. CpgStruct_Edge_ALIAS_OF CpgStruct_Edge_EdgeType = 138 // This edge connects a type declaration (`TYPE_DECL`) with a binding node (`BINDING`) and // indicates that the type declaration has the binding represented by the binding node, in // other words, there is a (name, signature) pair that can be resolved for the type // declaration as stored in the binding node. CpgStruct_Edge_BINDS CpgStruct_Edge_EdgeType = 155 // Argument edges connect call sites (node type `CALL`) to their arguments // (node type `EXPRESSION`) as well as `RETURN` nodes to the expressions // that return. CpgStruct_Edge_ARGUMENT CpgStruct_Edge_EdgeType = 156 // This edge connects a node to the node that represents its source file. These // edges MUST not be created by the language frontend but are automatically // created based on `FILENAME` fields. CpgStruct_Edge_SOURCE_FILE CpgStruct_Edge_EdgeType = 157 // This edge indicates that the source node immediately dominates the destination node. CpgStruct_Edge_DOMINATE CpgStruct_Edge_EdgeType = 181 // This edge indicates that the source node immediately post dominates the destination node. CpgStruct_Edge_POST_DOMINATE CpgStruct_Edge_EdgeType = 182 // A CDG edge expresses that the destination node is control dependent on the source node. CpgStruct_Edge_CDG CpgStruct_Edge_EdgeType = 183 // Used for calculating points-to sets for resolving object aliasing. CpgStruct_Edge_POINTS_TO CpgStruct_Edge_EdgeType = 12345 // Edge from imports to dependencies CpgStruct_Edge_IMPORTS CpgStruct_Edge_EdgeType = 23663 // Edge from CALL statement in the AST to the IMPORT. //  |We use this edge to traverse from the logical representation of the IMPORT //  |to the corresponding import statement in the AST. //  | CpgStruct_Edge_IS_CALL_FOR_IMPORT CpgStruct_Edge_EdgeType = 23664 )
func (CpgStruct_Edge_EdgeType) Descriptor ¶
func (CpgStruct_Edge_EdgeType) Descriptor() protoreflect.EnumDescriptor
func (CpgStruct_Edge_EdgeType) Enum ¶
func (x CpgStruct_Edge_EdgeType) Enum() *CpgStruct_Edge_EdgeType
func (CpgStruct_Edge_EdgeType) EnumDescriptor
deprecated
func (CpgStruct_Edge_EdgeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CpgStruct_Edge_EdgeType.Descriptor instead.
func (CpgStruct_Edge_EdgeType) Number ¶
func (x CpgStruct_Edge_EdgeType) Number() protoreflect.EnumNumber
func (CpgStruct_Edge_EdgeType) String ¶
func (x CpgStruct_Edge_EdgeType) String() string
func (CpgStruct_Edge_EdgeType) Type ¶
func (CpgStruct_Edge_EdgeType) Type() protoreflect.EnumType
type CpgStruct_Edge_Property ¶
type CpgStruct_Edge_Property struct { Name EdgePropertyName `protobuf:"varint,1,opt,name=name,proto3,enum=cpg.EdgePropertyName" json:"name,omitempty"` Value *PropertyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Edge properties.
func (*CpgStruct_Edge_Property) Descriptor
deprecated
func (*CpgStruct_Edge_Property) Descriptor() ([]byte, []int)
Deprecated: Use CpgStruct_Edge_Property.ProtoReflect.Descriptor instead.
func (*CpgStruct_Edge_Property) GetName ¶
func (x *CpgStruct_Edge_Property) GetName() EdgePropertyName
func (*CpgStruct_Edge_Property) GetValue ¶
func (x *CpgStruct_Edge_Property) GetValue() *PropertyValue
func (*CpgStruct_Edge_Property) ProtoMessage ¶
func (*CpgStruct_Edge_Property) ProtoMessage()
func (*CpgStruct_Edge_Property) ProtoReflect ¶
func (x *CpgStruct_Edge_Property) ProtoReflect() protoreflect.Message
func (*CpgStruct_Edge_Property) Reset ¶
func (x *CpgStruct_Edge_Property) Reset()
func (*CpgStruct_Edge_Property) String ¶
func (x *CpgStruct_Edge_Property) String() string
type CpgStruct_Node ¶
type CpgStruct_Node struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Type CpgStruct_Node_NodeType `protobuf:"varint,2,opt,name=type,proto3,enum=cpg.CpgStruct_Node_NodeType" json:"type,omitempty"` Property []*CpgStruct_Node_Property `protobuf:"bytes,3,rep,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*CpgStruct_Node) Descriptor
deprecated
func (*CpgStruct_Node) Descriptor() ([]byte, []int)
Deprecated: Use CpgStruct_Node.ProtoReflect.Descriptor instead.
func (*CpgStruct_Node) GetKey ¶
func (x *CpgStruct_Node) GetKey() int64
func (*CpgStruct_Node) GetProperty ¶
func (x *CpgStruct_Node) GetProperty() []*CpgStruct_Node_Property
func (*CpgStruct_Node) GetType ¶
func (x *CpgStruct_Node) GetType() CpgStruct_Node_NodeType
func (*CpgStruct_Node) ProtoMessage ¶
func (*CpgStruct_Node) ProtoMessage()
func (*CpgStruct_Node) ProtoReflect ¶
func (x *CpgStruct_Node) ProtoReflect() protoreflect.Message
func (*CpgStruct_Node) Reset ¶
func (x *CpgStruct_Node) Reset()
func (*CpgStruct_Node) String ¶
func (x *CpgStruct_Node) String() string
type CpgStruct_Node_NodeType ¶
type CpgStruct_Node_NodeType int32
Logical node type.
const ( CpgStruct_Node_UNKNOWN_NODE_TYPE CpgStruct_Node_NodeType = 0 // Programming languages offer many closely-related concepts for describing blocks // of code that can be executed with input parameters and return output parameters, // possibly causing side effects. In the CPG specification, we refer to all of these // concepts (procedures, functions, methods, etc.) as methods. A single METHOD node // must exist for each method found in the source program. // // The `FULL_NAME` field specifies the method's fully-qualified name, including // information about the namespace it is contained in if applicable, the name field // is the function's short name. The field `IS_EXTERNAL` indicates whether it was // possible to identify a method body for the method. This is true for methods that // are defined in the source program, and false for methods that are dynamically // linked to the program, that is, methods that exist in an external dependency. // // Line and column number information is specified in the optional fields // `LINE_NUMBER`, `COLUMN_NUMBER`, `LINE_NUMBER_END`, and `COLUMN_NUMBER_END` and // the name of the source file is specified in `FILENAME`. An optional hash value // MAY be calculated over the function contents and included in the `HASH` field. // // Finally, the fully qualified name of the program constructs that the method // is immediately contained in is stored in the `AST_PARENT_FULL_NAME` field // and its type is indicated in the `AST_PARENT_TYPE` field to be one of // `METHOD`, `TYPE_DECL` or `NAMESPACE_BLOCK`. CpgStruct_Node_METHOD CpgStruct_Node_NodeType = 1 // This node represents an (unnamed) formal method return parameter. It carries its // fully qualified type name in `TYPE_FULL_NAME`. The `CODE` field MAY be set freely, // e.g., to the constant `RET`, however, subsequent layer creators MUST NOT depend // on this value. CpgStruct_Node_METHOD_RETURN CpgStruct_Node_NodeType = 3 // A method annotation. // The semantics of the FULL_NAME property on this node differ from the usual FULL_NAME // semantics in the sense that FULL_NAME describes the represented annotation class/interface // itself and not the ANNOTATION node. CpgStruct_Node_ANNOTATION CpgStruct_Node_NodeType = 5 // Assignment of annotation argument to annotation parameter CpgStruct_Node_ANNOTATION_PARAMETER_ASSIGN CpgStruct_Node_NodeType = 6 // Formal annotation parameter CpgStruct_Node_ANNOTATION_PARAMETER CpgStruct_Node_NodeType = 7 // This node represents a literal such as an integer or string constant. Literals // are symbols included in the code in verbatim form and which are immutable. // The `TYPE_FULL_NAME` field stores the literal's fully-qualified type name, // e.g., `java.lang.Integer`. CpgStruct_Node_LITERAL CpgStruct_Node_NodeType = 8 // This node represents a type member of a class, struct or union, e.g., for the // type declaration `class Foo{ int i ; }`, it represents the declaration of the // variable `i`. CpgStruct_Node_MEMBER CpgStruct_Node_NodeType = 9 // Initialization construct for arrays CpgStruct_Node_ARRAY_INITIALIZER CpgStruct_Node_NodeType = 14 // A (function/method/procedure) call. The `METHOD_FULL_NAME` property is the name of the // invoked method (the callee) while the `TYPE_FULL_NAME` is its return type, and // therefore, the return type of the call when viewing it as an expression. For // languages like Javascript, it is common that we may know the (short-) name // of the invoked method, but we do not know at compile time which method // will actually be invoked, e.g., because it depends on a dynamic import. // In this case, we leave `METHOD_FULL_NAME` blank but at least fill out `NAME`, // which contains the method's (short-) name and `SIGNATURE`, which contains // any information we may have about the types of arguments and return value. CpgStruct_Node_CALL CpgStruct_Node_NodeType = 15 // This node represents a local variable. Its fully qualified type name is stored // in the `TYPE_FULL_NAME` field and its name in the `NAME` field. The `CODE` field // contains the entire local variable declaration without initialization, e.g., for // `int x = 10;`, it contains `int x`. CpgStruct_Node_LOCAL CpgStruct_Node_NodeType = 23 // This node represents a tag. CpgStruct_Node_TAG CpgStruct_Node_NodeType = 24 // A location node summarizes a source code location. CpgStruct_Node_LOCATION CpgStruct_Node_NodeType = 25 // This node represents an identifier as used when referring to a variable by name. // It holds the identifier's name in the `NAME` field and its fully-qualified type // name in `TYPE_FULL_NAME`. CpgStruct_Node_IDENTIFIER CpgStruct_Node_NodeType = 27 // This node represents a return instruction, e.g., `return x`. Note that it does // NOT represent a formal return parameter as formal return parameters are // represented via `METHOD_RETURN` nodes. CpgStruct_Node_RETURN CpgStruct_Node_NodeType = 30 // This node represents a compound statement. Compound statements are used in many languages to allow // grouping a sequence of statements. For example, in C and Java, compound statements // are statements enclosed by curly braces. Function/Method bodies are compound // statements. We do not use the term "compound statement" because "statement" would // imply that the block does not yield a value upon evaluation, that is, that it is // not an expression. This is true in languages such as C and Java, but not for languages // such as Scala where the value of the block is given by that of the last expression it // contains. In fact, the Scala grammar uses the term "BlockExpr" (short for // "block expression") to describe what in the CPG we call "Block". CpgStruct_Node_BLOCK CpgStruct_Node_NodeType = 31 // This node represents a formal output parameter. Corresponding output parameters // for input parameters MUST NOT be created by the frontend as they are automatically // created upon first loading the CPG. CpgStruct_Node_METHOD_PARAMETER_OUT CpgStruct_Node_NodeType = 33 // This node represents a formal input parameter. The field `NAME` contains its // name, while the field `TYPE_FULL_NAME` contains the fully qualified type name. CpgStruct_Node_METHOD_PARAMETER_IN CpgStruct_Node_NodeType = 34 // This node represents a dependency CpgStruct_Node_DEPENDENCY CpgStruct_Node_NodeType = 35 // File nodes represent source files or a shared objects from which the CPG // was generated. File nodes serve as indices, that is, they allow looking up all // elements of the code by file. // // For each file, the graph MUST contain exactly one File node. // As file nodes are root nodes of abstract syntax tress, they are AstNodes and // their order field is set to 0. This is because they have no sibling nodes, // not because they are the first node of the AST. // // Each CPG MUST contain a special file node with name set to // `<unknown>`. This node is a placeholder used in cases where a file cannot be // determined at compile time. As an example, consider external library functions. // As their code is not available on CPG construction, the file name is unknown. // // File nodes MUST NOT be created by the language frontend. Instead, the language // frontend is assumed to fill out the `FILENAME` field wherever possible, // allowing File nodes to be created automatically upon first loading the CPG. CpgStruct_Node_FILE CpgStruct_Node_NodeType = 38 // This node contains the CPG meta data. Exactly one node of this type // MUST exist per CPG. The `HASH` property MAY contain a hash value calculated // over the source files this CPG was generated from. The `VERSION` MUST be // set to the version of the specification ("1.1"). The language field indicates // which language frontend was used to generate the CPG and the list property // `OVERLAYS` specifies which overlays have been applied to the CPG. CpgStruct_Node_META_DATA CpgStruct_Node_NodeType = 39 // This node represents a namespace. Similar to FILE nodes, NAMESPACE nodes // serve as indices that allow all definitions inside a namespace to be // obtained by following outgoing edges from a NAMESPACE node. // // NAMESPACE nodes MUST NOT be created by language frontends. Instead, // they are generated from NAMESPACE_BLOCK nodes automatically upon // first loading of the CPG. CpgStruct_Node_NAMESPACE CpgStruct_Node_NodeType = 40 // A reference to a namespace. // We borrow the concept of a "namespace block" from C++, that is, a namespace block // is a block of code that has been placed in the same namespace by a programmer. // This block may be introduced via a `package` statement in Java or // a `namespace{ }` statement in C++. // // The `FULL_NAME` field contains a unique identifier to represent the namespace block // itself not just the namespace it references. So in addition to the namespace name // it can be useful to use the containing file name to derive a unique identifier. // // The `NAME` field contains the namespace name in a human-readable format. // The name should be given in dot-separated form where a dot indicates // that the right hand side is a sub namespace of the left hand side, e.g., // `foo.bar` denotes the namespace `bar` contained in the namespace `foo`. CpgStruct_Node_NAMESPACE_BLOCK CpgStruct_Node_NodeType = 41 // Any AST node that the frontend would like to include in the AST but for // which no suitable AST node is specified in the CPG specification may be // included using a node of type `UNKNOWN`. CpgStruct_Node_UNKNOWN CpgStruct_Node_NodeType = 44 // This node represents a type instance, that is, a concrete instantiation // of a type declaration. CpgStruct_Node_TYPE CpgStruct_Node_NodeType = 45 // This node represents a type declaration as for example given by a class-, struct-, // or union declaration. In contrast to a `TYPE` node, this node does not represent a // concrete instantiation of a type, e.g., for the parametrized type `List[T]`, it represents // `List[T]`, but not `List[Integer]` where `Integer` is a concrete type. // // The language frontend MUST create type declarations for all types declared in the // source program and MAY provide type declarations for types that are not declared // but referenced by the source program. If a declaration is present in the source // program, the field `IS_EXTERNAL` is set to `false`. Otherwise, it is set to `true`. // // The `FULL_NAME` field specifies the type's fully-qualified name, including // information about the namespace it is contained in if applicable, the name field // is the type's short name. Line and column number information is specified in the // optional fields `LINE_NUMBER`, `COLUMN_NUMBER`, `LINE_NUMBER_END`, and // `COLUMN_NUMBER_END` and the name of the source file is specified in `FILENAME`. // // Base types can be specified via the `INHERITS_FROM_TYPE_FULL_NAME` list, where // each entry contains the fully-qualified name of a base type. If the type is // known to be an alias of another type (as for example introduced via the C // `typedef` statement), the name of the alias is stored in `ALIAS_TYPE_FULL_NAME`. // // Finally, the fully qualified name of the program constructs that the type declaration // is immediately contained in is stored in the `AST_PARENT_FULL_NAME` field // and its type is indicated in the `AST_PARENT_TYPE` field to be one of // `METHOD`, `TYPE_DECL` or `NAMESPACE_BLOCK`. CpgStruct_Node_TYPE_DECL CpgStruct_Node_NodeType = 46 // This node represents a formal type parameter, that is, the type parameter // as given in a type-parametrized method or type declaration. Examples for // languages that support type parameters are Java (via Generics) and C++ // (via templates). Apart from the standard fields of AST nodes, the type // parameter carries only a `NAME` field that holds the parameters name. CpgStruct_Node_TYPE_PARAMETER CpgStruct_Node_NodeType = 47 // An (actual) type argument as used to instantiate a parametrized type, in the // same way an (actual) arguments provides concrete values for a parameter // at method call sites. As it true for arguments, the method is not expected // to interpret the type argument. It MUST however store its code in the // `CODE` field. CpgStruct_Node_TYPE_ARGUMENT CpgStruct_Node_NodeType = 48 // A literal value assigned to an ANNOTATION_PARAMETER CpgStruct_Node_ANNOTATION_LITERAL CpgStruct_Node_NodeType = 49 // This node type represent a configuration file, where `NAME` is the name // of the file and `content` is its content. The exact representation of the // name is left undefined and can be chosen as required by consumers of // the corresponding configuration files. CpgStruct_Node_CONFIG_FILE CpgStruct_Node_NodeType = 50 // `BINDING` nodes represent name-signature pairs that can be resolved at a // type declaration (`TYPE_DECL`). They are connected to `TYPE_DECL` nodes via // incoming `BINDS` edges. The bound method is either associated with an outgoing // `REF` edge to a `METHOD` or with the `METHOD_FULL_NAME` property. The `REF` edge // if present has priority. CpgStruct_Node_BINDING CpgStruct_Node_NodeType = 146 // This node contains an arbitrary node and an associated tag node. CpgStruct_Node_TAG_NODE_PAIR CpgStruct_Node_NodeType = 208 // Finding nodes may be used to store analysis results in the graph // that are to be exposed to an end-user, e.g., information about // potential vulnerabilities or dangerous programming practices. // A Finding node may contain an abitrary list of key value pairs // that characterize the finding, as well as a list of nodes that // serve as evidence for the finding. CpgStruct_Node_FINDING CpgStruct_Node_NodeType = 214 // This node represents a key value pair, where both the key and the value are strings. CpgStruct_Node_KEY_VALUE_PAIR CpgStruct_Node_NodeType = 217 // This field represents a (language-dependent) modifier such as `static`, `private` // or `public`. Unlike most other AST nodes, it is NOT an expression, that is, it // cannot be evaluated and cannot be passed as an argument in function calls. CpgStruct_Node_MODIFIER CpgStruct_Node_NodeType = 300 // This node represents a reference to a method/function/procedure as it // appears when a method is passed as an argument in a call. The `METHOD_FULL_NAME` // field holds the fully-qualified name of the referenced method and the // `TYPE_FULL_NAME` holds its fully-qualified type name. CpgStruct_Node_METHOD_REF CpgStruct_Node_NodeType = 333 // Represents the binding of a LOCAL or METHOD_PARAMETER_IN into the closure of a method CpgStruct_Node_CLOSURE_BINDING CpgStruct_Node_NodeType = 334 // Reference to a type/class CpgStruct_Node_TYPE_REF CpgStruct_Node_NodeType = 335 // This node represents a control structure as introduced by control structure // statements as well as conditional and unconditional jumps. Its type is stored in the // `CONTROL_STRUCTURE_TYPE` field to be one of several pre-defined types. These types // are used in the construction of the control flow layer, making it possible to // generate the control flow layer from the abstract syntax tree layer automatically. // // In addition to the `CONTROL_STRUCTURE_TYPE` field, the `PARSER_TYPE_NAME` field // MAY be used by frontends to store the name of the control structure as emitted by // the parser or disassembler, however, the value of this field is not relevant // for construction of the control flow layer. CpgStruct_Node_CONTROL_STRUCTURE CpgStruct_Node_NodeType = 339 // A jump target is any location in the code that has been specifically marked // as the target of a jump, e.g., via a label. The `NAME` field holds the name of // the label while the `PARSER_TYPE_NAME` field holds the name of language construct // that this jump target is created from, e.g., "Label". CpgStruct_Node_JUMP_TARGET CpgStruct_Node_NodeType = 340 // A jump label specifies the label and thus the JUMP_TARGET of control structures // BREAK and CONTINUE. The `NAME` field holds the name of the label while the // `PARSER_TYPE_NAME` field holds the name of language construct that this jump // label is created from, e.g., "Label". CpgStruct_Node_JUMP_LABEL CpgStruct_Node_NodeType = 341 // This node represents a DOM node used in template languages, e.g., JSX/TSX CpgStruct_Node_TEMPLATE_DOM CpgStruct_Node_NodeType = 417 // A source code comment CpgStruct_Node_COMMENT CpgStruct_Node_NodeType = 511 // This node represents the field accessed in a field access, e.g., in // `a.b`, it represents `b`. The field name as it occurs in the code is // stored in the `CODE` field. This may mean that the `CODE` field holds // an expression. The `CANONICAL_NAME` field MAY contain the same value is // the `CODE` field but SHOULD contain the normalized name that results // from evaluating `CODE` as an expression if such an evaluation is // possible for the language frontend. The objective is to store an identifier // in `CANONICAL_NAME` that is the same for two nodes iff they refer to the // same field, regardless of whether they use the same expression to reference // it. CpgStruct_Node_FIELD_IDENTIFIER CpgStruct_Node_NodeType = 2001081 )
func (CpgStruct_Node_NodeType) Descriptor ¶
func (CpgStruct_Node_NodeType) Descriptor() protoreflect.EnumDescriptor
func (CpgStruct_Node_NodeType) Enum ¶
func (x CpgStruct_Node_NodeType) Enum() *CpgStruct_Node_NodeType
func (CpgStruct_Node_NodeType) EnumDescriptor
deprecated
func (CpgStruct_Node_NodeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CpgStruct_Node_NodeType.Descriptor instead.
func (CpgStruct_Node_NodeType) Number ¶
func (x CpgStruct_Node_NodeType) Number() protoreflect.EnumNumber
func (CpgStruct_Node_NodeType) String ¶
func (x CpgStruct_Node_NodeType) String() string
func (CpgStruct_Node_NodeType) Type ¶
func (CpgStruct_Node_NodeType) Type() protoreflect.EnumType
type CpgStruct_Node_Property ¶
type CpgStruct_Node_Property struct { Name NodePropertyName `protobuf:"varint,1,opt,name=name,proto3,enum=cpg.NodePropertyName" json:"name,omitempty"` Value *PropertyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Node properties.
func (*CpgStruct_Node_Property) Descriptor
deprecated
func (*CpgStruct_Node_Property) Descriptor() ([]byte, []int)
Deprecated: Use CpgStruct_Node_Property.ProtoReflect.Descriptor instead.
func (*CpgStruct_Node_Property) GetName ¶
func (x *CpgStruct_Node_Property) GetName() NodePropertyName
func (*CpgStruct_Node_Property) GetValue ¶
func (x *CpgStruct_Node_Property) GetValue() *PropertyValue
func (*CpgStruct_Node_Property) ProtoMessage ¶
func (*CpgStruct_Node_Property) ProtoMessage()
func (*CpgStruct_Node_Property) ProtoReflect ¶
func (x *CpgStruct_Node_Property) ProtoReflect() protoreflect.Message
func (*CpgStruct_Node_Property) Reset ¶
func (x *CpgStruct_Node_Property) Reset()
func (*CpgStruct_Node_Property) String ¶
func (x *CpgStruct_Node_Property) String() string
type DiffGraph ¶
type DiffGraph struct { Entries []*DiffGraph_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
DiffGraphs can be created independently of each other and therefor when _adding_ nodes|edges, each DiffGraph has its own ID space. However, when removing nodes|edges, the nodeIds refer to the globally unique graph id space.
func (*DiffGraph) Descriptor
deprecated
func (*DiffGraph) GetEntries ¶
func (x *DiffGraph) GetEntries() []*DiffGraph_Entry
func (*DiffGraph) ProtoMessage ¶
func (*DiffGraph) ProtoMessage()
func (*DiffGraph) ProtoReflect ¶
func (x *DiffGraph) ProtoReflect() protoreflect.Message
type DiffGraph_Entry ¶
type DiffGraph_Entry struct { // Types that are assignable to Value: // // *DiffGraph_Entry_Node // *DiffGraph_Entry_Edge // *DiffGraph_Entry_NodeProperty // *DiffGraph_Entry_EdgeProperty // *DiffGraph_Entry_RemoveNode // *DiffGraph_Entry_RemoveNodeProperty // *DiffGraph_Entry_RemoveEdge // *DiffGraph_Entry_RemoveEdgeProperty Value isDiffGraph_Entry_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*DiffGraph_Entry) Descriptor
deprecated
func (*DiffGraph_Entry) Descriptor() ([]byte, []int)
Deprecated: Use DiffGraph_Entry.ProtoReflect.Descriptor instead.
func (*DiffGraph_Entry) GetEdge ¶
func (x *DiffGraph_Entry) GetEdge() *CpgStruct_Edge
func (*DiffGraph_Entry) GetEdgeProperty ¶
func (x *DiffGraph_Entry) GetEdgeProperty() *AdditionalEdgeProperty
func (*DiffGraph_Entry) GetNode ¶
func (x *DiffGraph_Entry) GetNode() *CpgStruct_Node
func (*DiffGraph_Entry) GetNodeProperty ¶
func (x *DiffGraph_Entry) GetNodeProperty() *AdditionalNodeProperty
func (*DiffGraph_Entry) GetRemoveEdge ¶
func (x *DiffGraph_Entry) GetRemoveEdge() *DiffGraph_RemoveEdge
func (*DiffGraph_Entry) GetRemoveEdgeProperty ¶
func (x *DiffGraph_Entry) GetRemoveEdgeProperty() *DiffGraph_RemoveEdgeProperty
func (*DiffGraph_Entry) GetRemoveNode ¶
func (x *DiffGraph_Entry) GetRemoveNode() *DiffGraph_RemoveNode
func (*DiffGraph_Entry) GetRemoveNodeProperty ¶
func (x *DiffGraph_Entry) GetRemoveNodeProperty() *DiffGraph_RemoveNodeProperty
func (*DiffGraph_Entry) GetValue ¶
func (m *DiffGraph_Entry) GetValue() isDiffGraph_Entry_Value
func (*DiffGraph_Entry) ProtoMessage ¶
func (*DiffGraph_Entry) ProtoMessage()
func (*DiffGraph_Entry) ProtoReflect ¶
func (x *DiffGraph_Entry) ProtoReflect() protoreflect.Message
func (*DiffGraph_Entry) Reset ¶
func (x *DiffGraph_Entry) Reset()
func (*DiffGraph_Entry) String ¶
func (x *DiffGraph_Entry) String() string
type DiffGraph_Entry_Edge ¶
type DiffGraph_Entry_Edge struct {
Edge *CpgStruct_Edge `protobuf:"bytes,2,opt,name=edge,proto3,oneof"`
}
type DiffGraph_Entry_EdgeProperty ¶
type DiffGraph_Entry_EdgeProperty struct {
EdgeProperty *AdditionalEdgeProperty `protobuf:"bytes,4,opt,name=edge_property,json=edgeProperty,proto3,oneof"`
}
type DiffGraph_Entry_Node ¶
type DiffGraph_Entry_Node struct {
Node *CpgStruct_Node `protobuf:"bytes,1,opt,name=node,proto3,oneof"`
}
type DiffGraph_Entry_NodeProperty ¶
type DiffGraph_Entry_NodeProperty struct {
NodeProperty *AdditionalNodeProperty `protobuf:"bytes,3,opt,name=node_property,json=nodeProperty,proto3,oneof"`
}
type DiffGraph_Entry_RemoveEdge ¶
type DiffGraph_Entry_RemoveEdge struct {
RemoveEdge *DiffGraph_RemoveEdge `protobuf:"bytes,7,opt,name=remove_edge,json=removeEdge,proto3,oneof"`
}
type DiffGraph_Entry_RemoveEdgeProperty ¶
type DiffGraph_Entry_RemoveEdgeProperty struct {
RemoveEdgeProperty *DiffGraph_RemoveEdgeProperty `protobuf:"bytes,8,opt,name=remove_edge_property,json=removeEdgeProperty,proto3,oneof"`
}
type DiffGraph_Entry_RemoveNode ¶
type DiffGraph_Entry_RemoveNode struct {
RemoveNode *DiffGraph_RemoveNode `protobuf:"bytes,5,opt,name=remove_node,json=removeNode,proto3,oneof"`
}
type DiffGraph_Entry_RemoveNodeProperty ¶
type DiffGraph_Entry_RemoveNodeProperty struct {
RemoveNodeProperty *DiffGraph_RemoveNodeProperty `protobuf:"bytes,6,opt,name=remove_node_property,json=removeNodeProperty,proto3,oneof"`
}
type DiffGraph_RemoveEdge ¶
type DiffGraph_RemoveEdge struct { OutNodeKey int64 `protobuf:"varint,1,opt,name=out_node_key,json=outNodeKey,proto3" json:"out_node_key,omitempty"` InNodeKey int64 `protobuf:"varint,2,opt,name=in_node_key,json=inNodeKey,proto3" json:"in_node_key,omitempty"` EdgeType CpgStruct_Edge_EdgeType `protobuf:"varint,3,opt,name=edge_type,json=edgeType,proto3,enum=cpg.CpgStruct_Edge_EdgeType" json:"edge_type,omitempty"` PropertiesHash []byte `protobuf:"bytes,4,opt,name=propertiesHash,proto3" json:"propertiesHash,omitempty"` // used to identify edges (since our edges don't have ids) // contains filtered or unexported fields }
func (*DiffGraph_RemoveEdge) Descriptor
deprecated
func (*DiffGraph_RemoveEdge) Descriptor() ([]byte, []int)
Deprecated: Use DiffGraph_RemoveEdge.ProtoReflect.Descriptor instead.
func (*DiffGraph_RemoveEdge) GetEdgeType ¶
func (x *DiffGraph_RemoveEdge) GetEdgeType() CpgStruct_Edge_EdgeType
func (*DiffGraph_RemoveEdge) GetInNodeKey ¶
func (x *DiffGraph_RemoveEdge) GetInNodeKey() int64
func (*DiffGraph_RemoveEdge) GetOutNodeKey ¶
func (x *DiffGraph_RemoveEdge) GetOutNodeKey() int64
func (*DiffGraph_RemoveEdge) GetPropertiesHash ¶
func (x *DiffGraph_RemoveEdge) GetPropertiesHash() []byte
func (*DiffGraph_RemoveEdge) ProtoMessage ¶
func (*DiffGraph_RemoveEdge) ProtoMessage()
func (*DiffGraph_RemoveEdge) ProtoReflect ¶
func (x *DiffGraph_RemoveEdge) ProtoReflect() protoreflect.Message
func (*DiffGraph_RemoveEdge) Reset ¶
func (x *DiffGraph_RemoveEdge) Reset()
func (*DiffGraph_RemoveEdge) String ¶
func (x *DiffGraph_RemoveEdge) String() string
type DiffGraph_RemoveEdgeProperty ¶
type DiffGraph_RemoveEdgeProperty struct { OutNodeKey int64 `protobuf:"varint,1,opt,name=out_node_key,json=outNodeKey,proto3" json:"out_node_key,omitempty"` InNodeKey int64 `protobuf:"varint,2,opt,name=in_node_key,json=inNodeKey,proto3" json:"in_node_key,omitempty"` EdgeType CpgStruct_Edge_EdgeType `protobuf:"varint,3,opt,name=edge_type,json=edgeType,proto3,enum=cpg.CpgStruct_Edge_EdgeType" json:"edge_type,omitempty"` PropertiesHash []byte `protobuf:"bytes,4,opt,name=propertiesHash,proto3" json:"propertiesHash,omitempty"` // used to identify edges (since our edges don't have ids) PropertyName EdgePropertyName `protobuf:"varint,5,opt,name=property_name,json=propertyName,proto3,enum=cpg.EdgePropertyName" json:"property_name,omitempty"` // contains filtered or unexported fields }
func (*DiffGraph_RemoveEdgeProperty) Descriptor
deprecated
func (*DiffGraph_RemoveEdgeProperty) Descriptor() ([]byte, []int)
Deprecated: Use DiffGraph_RemoveEdgeProperty.ProtoReflect.Descriptor instead.
func (*DiffGraph_RemoveEdgeProperty) GetEdgeType ¶
func (x *DiffGraph_RemoveEdgeProperty) GetEdgeType() CpgStruct_Edge_EdgeType
func (*DiffGraph_RemoveEdgeProperty) GetInNodeKey ¶
func (x *DiffGraph_RemoveEdgeProperty) GetInNodeKey() int64
func (*DiffGraph_RemoveEdgeProperty) GetOutNodeKey ¶
func (x *DiffGraph_RemoveEdgeProperty) GetOutNodeKey() int64
func (*DiffGraph_RemoveEdgeProperty) GetPropertiesHash ¶
func (x *DiffGraph_RemoveEdgeProperty) GetPropertiesHash() []byte
func (*DiffGraph_RemoveEdgeProperty) GetPropertyName ¶
func (x *DiffGraph_RemoveEdgeProperty) GetPropertyName() EdgePropertyName
func (*DiffGraph_RemoveEdgeProperty) ProtoMessage ¶
func (*DiffGraph_RemoveEdgeProperty) ProtoMessage()
func (*DiffGraph_RemoveEdgeProperty) ProtoReflect ¶
func (x *DiffGraph_RemoveEdgeProperty) ProtoReflect() protoreflect.Message
func (*DiffGraph_RemoveEdgeProperty) Reset ¶
func (x *DiffGraph_RemoveEdgeProperty) Reset()
func (*DiffGraph_RemoveEdgeProperty) String ¶
func (x *DiffGraph_RemoveEdgeProperty) String() string
type DiffGraph_RemoveNode ¶
type DiffGraph_RemoveNode struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DiffGraph_RemoveNode) Descriptor
deprecated
func (*DiffGraph_RemoveNode) Descriptor() ([]byte, []int)
Deprecated: Use DiffGraph_RemoveNode.ProtoReflect.Descriptor instead.
func (*DiffGraph_RemoveNode) GetKey ¶
func (x *DiffGraph_RemoveNode) GetKey() int64
func (*DiffGraph_RemoveNode) ProtoMessage ¶
func (*DiffGraph_RemoveNode) ProtoMessage()
func (*DiffGraph_RemoveNode) ProtoReflect ¶
func (x *DiffGraph_RemoveNode) ProtoReflect() protoreflect.Message
func (*DiffGraph_RemoveNode) Reset ¶
func (x *DiffGraph_RemoveNode) Reset()
func (*DiffGraph_RemoveNode) String ¶
func (x *DiffGraph_RemoveNode) String() string
type DiffGraph_RemoveNodeProperty ¶
type DiffGraph_RemoveNodeProperty struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Name NodePropertyName `protobuf:"varint,2,opt,name=name,proto3,enum=cpg.NodePropertyName" json:"name,omitempty"` LocalName string `protobuf:"bytes,3,opt,name=local_name,json=localName,proto3" json:"local_name,omitempty"` // contains filtered or unexported fields }
func (*DiffGraph_RemoveNodeProperty) Descriptor
deprecated
func (*DiffGraph_RemoveNodeProperty) Descriptor() ([]byte, []int)
Deprecated: Use DiffGraph_RemoveNodeProperty.ProtoReflect.Descriptor instead.
func (*DiffGraph_RemoveNodeProperty) GetKey ¶
func (x *DiffGraph_RemoveNodeProperty) GetKey() int64
func (*DiffGraph_RemoveNodeProperty) GetLocalName ¶
func (x *DiffGraph_RemoveNodeProperty) GetLocalName() string
func (*DiffGraph_RemoveNodeProperty) GetName ¶
func (x *DiffGraph_RemoveNodeProperty) GetName() NodePropertyName
func (*DiffGraph_RemoveNodeProperty) ProtoMessage ¶
func (*DiffGraph_RemoveNodeProperty) ProtoMessage()
func (*DiffGraph_RemoveNodeProperty) ProtoReflect ¶
func (x *DiffGraph_RemoveNodeProperty) ProtoReflect() protoreflect.Message
func (*DiffGraph_RemoveNodeProperty) Reset ¶
func (x *DiffGraph_RemoveNodeProperty) Reset()
func (*DiffGraph_RemoveNodeProperty) String ¶
func (x *DiffGraph_RemoveNodeProperty) String() string
type DispatchTypes ¶
type DispatchTypes int32
const ( DispatchTypes_UNKNOWN_DISPATCH_TYPE DispatchTypes = 0 // For statically dispatched calls the call target is known before program execution DispatchTypes_STATIC_DISPATCH DispatchTypes = 1 // For dynamically dispatched calls the target is determined during runtime DispatchTypes_DYNAMIC_DISPATCH DispatchTypes = 2 // For macro expansions, code is inlined. DispatchTypes_INLINED DispatchTypes = 3 )
func (DispatchTypes) Descriptor ¶
func (DispatchTypes) Descriptor() protoreflect.EnumDescriptor
func (DispatchTypes) Enum ¶
func (x DispatchTypes) Enum() *DispatchTypes
func (DispatchTypes) EnumDescriptor
deprecated
func (DispatchTypes) EnumDescriptor() ([]byte, []int)
Deprecated: Use DispatchTypes.Descriptor instead.
func (DispatchTypes) Number ¶
func (x DispatchTypes) Number() protoreflect.EnumNumber
func (DispatchTypes) String ¶
func (x DispatchTypes) String() string
func (DispatchTypes) Type ¶
func (DispatchTypes) Type() protoreflect.EnumType
type DoubleList ¶
type DoubleList struct { Values []float64 `protobuf:"fixed64,1,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*DoubleList) Descriptor
deprecated
func (*DoubleList) Descriptor() ([]byte, []int)
Deprecated: Use DoubleList.ProtoReflect.Descriptor instead.
func (*DoubleList) GetValues ¶
func (x *DoubleList) GetValues() []float64
func (*DoubleList) ProtoMessage ¶
func (*DoubleList) ProtoMessage()
func (*DoubleList) ProtoReflect ¶
func (x *DoubleList) ProtoReflect() protoreflect.Message
func (*DoubleList) Reset ¶
func (x *DoubleList) Reset()
func (*DoubleList) String ¶
func (x *DoubleList) String() string
type EdgePropertyName ¶
type EdgePropertyName int32
const ( EdgePropertyName_UNKNOWN_EDGE_PROPERTY EdgePropertyName = 0 // This edge property represents the variable propagated by a reaching definition edge. EdgePropertyName_VARIABLE EdgePropertyName = 11 )
func (EdgePropertyName) Descriptor ¶
func (EdgePropertyName) Descriptor() protoreflect.EnumDescriptor
func (EdgePropertyName) Enum ¶
func (x EdgePropertyName) Enum() *EdgePropertyName
func (EdgePropertyName) EnumDescriptor
deprecated
func (EdgePropertyName) EnumDescriptor() ([]byte, []int)
Deprecated: Use EdgePropertyName.Descriptor instead.
func (EdgePropertyName) Number ¶
func (x EdgePropertyName) Number() protoreflect.EnumNumber
func (EdgePropertyName) String ¶
func (x EdgePropertyName) String() string
func (EdgePropertyName) Type ¶
func (EdgePropertyName) Type() protoreflect.EnumType
type EvaluationStrategies ¶
type EvaluationStrategies int32
const ( EvaluationStrategies_UNKNOWN_EVALUATION_STRATEGY EvaluationStrategies = 0 // A parameter or return of a function is passed by reference which means an address is used behind the scenes EvaluationStrategies_BY_REFERENCE EvaluationStrategies = 1 // Only applicable to object parameter or return values. The pointer to the object is passed by value but the object itself is not copied and changes to it are thus propagated out of the method context EvaluationStrategies_BY_SHARING EvaluationStrategies = 2 // A parameter or return of a function passed by value which means a flat copy is used EvaluationStrategies_BY_VALUE EvaluationStrategies = 3 )
func (EvaluationStrategies) Descriptor ¶
func (EvaluationStrategies) Descriptor() protoreflect.EnumDescriptor
func (EvaluationStrategies) Enum ¶
func (x EvaluationStrategies) Enum() *EvaluationStrategies
func (EvaluationStrategies) EnumDescriptor
deprecated
func (EvaluationStrategies) EnumDescriptor() ([]byte, []int)
Deprecated: Use EvaluationStrategies.Descriptor instead.
func (EvaluationStrategies) Number ¶
func (x EvaluationStrategies) Number() protoreflect.EnumNumber
func (EvaluationStrategies) String ¶
func (x EvaluationStrategies) String() string
func (EvaluationStrategies) Type ¶
func (EvaluationStrategies) Type() protoreflect.EnumType
type FloatList ¶
type FloatList struct { Values []float32 `protobuf:"fixed32,1,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*FloatList) Descriptor
deprecated
func (*FloatList) ProtoMessage ¶
func (*FloatList) ProtoMessage()
func (*FloatList) ProtoReflect ¶
func (x *FloatList) ProtoReflect() protoreflect.Message
type IntList ¶
type IntList struct { Values []int32 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*IntList) Descriptor
deprecated
func (*IntList) ProtoMessage ¶
func (*IntList) ProtoMessage()
func (*IntList) ProtoReflect ¶
func (x *IntList) ProtoReflect() protoreflect.Message
type LANGUAGES ¶
type LANGUAGES int32
const ( LANGUAGES_UNKNOWN_LANGUAGE LANGUAGES = 0 LANGUAGES_JAVA LANGUAGES = 1 LANGUAGES_JAVASCRIPT LANGUAGES = 2 LANGUAGES_GOLANG LANGUAGES = 3 LANGUAGES_CSHARP LANGUAGES = 4 LANGUAGES_C LANGUAGES = 5 LANGUAGES_PYTHON LANGUAGES = 6 LANGUAGES_LLVM LANGUAGES = 7 LANGUAGES_PHP LANGUAGES = 8 LANGUAGES_FUZZY_TEST_LANG LANGUAGES = 9 // generic reverse engineering framework LANGUAGES_GHIDRA LANGUAGES = 10 LANGUAGES_KOTLIN LANGUAGES = 11 // Eclipse CDT based parser for C/C++ LANGUAGES_NEWC LANGUAGES = 12 // Source-based front-end for Java LANGUAGES_JAVASRC LANGUAGES = 13 // Source-based front-end for Python LANGUAGES_PYTHONSRC LANGUAGES = 14 // Source-based JS frontend based on Babel LANGUAGES_JSSRC LANGUAGES = 15 // Solidity language frontend LANGUAGES_SOLIDITY LANGUAGES = 16 // Source-based frontend for Ruby LANGUAGES_RUBYSRC LANGUAGES = 17 )
func (LANGUAGES) Descriptor ¶
func (LANGUAGES) Descriptor() protoreflect.EnumDescriptor
func (LANGUAGES) EnumDescriptor
deprecated
func (LANGUAGES) Number ¶
func (x LANGUAGES) Number() protoreflect.EnumNumber
func (LANGUAGES) Type ¶
func (LANGUAGES) Type() protoreflect.EnumType
type LongList ¶
type LongList struct { Values []int64 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*LongList) Descriptor
deprecated
func (*LongList) ProtoMessage ¶
func (*LongList) ProtoMessage()
func (*LongList) ProtoReflect ¶
func (x *LongList) ProtoReflect() protoreflect.Message
type ModifierTypes ¶
type ModifierTypes int32
const ( ModifierTypes_UNKNOWN_MODIFIER_TYPE ModifierTypes = 0 // The static modifier ModifierTypes_STATIC ModifierTypes = 1 // The public modifier ModifierTypes_PUBLIC ModifierTypes = 2 // The protected modifier ModifierTypes_PROTECTED ModifierTypes = 3 // The private modifier ModifierTypes_PRIVATE ModifierTypes = 4 // The abstract modifier ModifierTypes_ABSTRACT ModifierTypes = 5 // The native modifier ModifierTypes_NATIVE ModifierTypes = 6 // The constructor modifier ModifierTypes_CONSTRUCTOR ModifierTypes = 7 // The virtual modifier ModifierTypes_VIRTUAL ModifierTypes = 8 // The internal modifier ModifierTypes_INTERNAL ModifierTypes = 9 // The final modifier ModifierTypes_FINAL ModifierTypes = 10 // The readonly modifier ModifierTypes_READONLY ModifierTypes = 11 )
func (ModifierTypes) Descriptor ¶
func (ModifierTypes) Descriptor() protoreflect.EnumDescriptor
func (ModifierTypes) Enum ¶
func (x ModifierTypes) Enum() *ModifierTypes
func (ModifierTypes) EnumDescriptor
deprecated
func (ModifierTypes) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModifierTypes.Descriptor instead.
func (ModifierTypes) Number ¶
func (x ModifierTypes) Number() protoreflect.EnumNumber
func (ModifierTypes) String ¶
func (x ModifierTypes) String() string
func (ModifierTypes) Type ¶
func (ModifierTypes) Type() protoreflect.EnumType
type NodePropertyName ¶
type NodePropertyName int32
const ( NodePropertyName_UNKNOWN_NODE_PROPERTY NodePropertyName = 0 // This optional field provides the line number of the program construct // represented by the node. NodePropertyName_LINE_NUMBER NodePropertyName = 2 // AST node type name emitted by parser. NodePropertyName_PARSER_TYPE_NAME NodePropertyName = 3 // This integer indicates the position of the node among // its siblings in the AST. The left-most child has an // order of 0. NodePropertyName_ORDER NodePropertyName = 4 // Name of represented object, e.g., method name (e.g. "run") NodePropertyName_NAME NodePropertyName = 5 // This is the fully-qualified name of an entity, e.g., the fully-qualified // name of a method or type. The details of what constitutes a fully-qualified // name are language specific. This field SHOULD be human readable. NodePropertyName_FULL_NAME NodePropertyName = 6 // Indicates that the construct (METHOD or TYPE_DECL) is external, that is, // it is referenced but not defined in the code (applies both to insular // parsing and to library functions where we have header files only) NodePropertyName_IS_EXTERNAL NodePropertyName = 7 // This property denotes a string value as used in a key-value pair. NodePropertyName_VALUE NodePropertyName = 8 // This optional fields provides the column number of the program construct // represented by the node. NodePropertyName_COLUMN_NUMBER NodePropertyName = 11 // This optional fields provides the line number at which the program construct // represented by the node ends. NodePropertyName_LINE_NUMBER_END NodePropertyName = 12 // A version, given as a string. Used, for example, in the META_DATA node to // indicate which version of the CPG spec this CPG conforms to NodePropertyName_VERSION NodePropertyName = 13 // For formal method input parameters, output parameters, and return parameters, // this field holds the evaluation strategy, which is one of the following: // 1) `BY_REFERENCE` indicates that the parameter is passed by reference, 2) // `BY_VALUE` indicates that it is passed by value, that is, a copy is made, // 3) `BY_SHARING` the parameter is a pointer/reference and it is shared with // the caller/callee. While a copy of the pointer is made, a copy of the object // that it points to is not made. NodePropertyName_EVALUATION_STRATEGY NodePropertyName = 15 // This optional fields provides the column number at which the program construct // represented by the node ends. NodePropertyName_COLUMN_NUMBER_END NodePropertyName = 16 // This field indicates which CPG language frontend generated the CPG. // Frontend developers may freely choose a value that describes their frontend // so long as it is not used by an existing frontend. Reserved values are to date: // C, LLVM, GHIDRA, PHP. NodePropertyName_LANGUAGE NodePropertyName = 19 // Certain files, e.g., configuration files, may be included in the CPG as-is. // For such files, the `CONTENT` field contains the files content. NodePropertyName_CONTENT NodePropertyName = 20 // This field holds the code snippet that the node represents. NodePropertyName_CODE NodePropertyName = 21 // The method signature encodes the types of parameters in a string. // The string SHOULD be human readable and suitable for differentiating methods // with different parameter types sufficiently to allow for resolving of // function overloading. The present specification does not enforce a strict // format for the signature, that is, it can be chosen by the frontend // implementor to fit the source language. NodePropertyName_SIGNATURE NodePropertyName = 22 // This field holds the dispatch type of a call, which is either `STATIC_DISPATCH` or // `DYNAMIC_DISPATCH`. For statically dispatched method calls, the call target is known // at compile time while for dynamically dispatched calls, it can only be determined at // runtime as it may depend on the type of an object (as is the case for virtual method // calls) or calculation of an offset. NodePropertyName_DISPATCH_TYPE NodePropertyName = 25 // The modifier type is a free-form string. The following are known modifier types: // `STATIC`, `PUBLIC`, `PROTECTED`, `PRIVATE`, `ABSTRACT`, `NATIVE`, `CONSTRUCTOR`, `VIRTUAL`. NodePropertyName_MODIFIER_TYPE NodePropertyName = 26 // The `CONTROL_STRUCTURE_TYPE` field indicates which kind of control structure // a `CONTROL_STRUCTURE` node represents. The available types are the following: // BREAK, CONTINUE, DO, WHILE, FOR, GOTO, IF, ELSE, TRY, THROW and SWITCH. NodePropertyName_CONTROL_STRUCTURE_TYPE NodePropertyName = 27 // AST-children of CALL nodes have an argument index, that is used to match // call-site arguments with callee parameters. Explicit parameters are numbered // from 1 to N, while index 0 is reserved for implicit self / this parameter. // CALLs without implicit parameter therefore have arguments starting with index 1. // AST-children of BLOCK nodes may have an argument index as well; in this case, // the last argument index determines the return expression of a BLOCK expression. // If the `PARAMETER_NAME` field is set, then the `ARGUMENT_INDEX` field is // ignored. It is suggested to set it to -1. NodePropertyName_ARGUMENT_INDEX NodePropertyName = 40 // Identifier which uniquely describes a CLOSURE_BINDING. This property is used to match captured LOCAL nodes with the corresponding CLOSURE_BINDING nodes NodePropertyName_CLOSURE_BINDING_ID NodePropertyName = 50 // This field contains the fully-qualified static type name of the program // construct represented by a node. It is the name of an instantiated type, e.g., // `java.util.List<Integer>`, rather than `java.util.List[T]`. If the type // cannot be determined, this field should be set to the empty string. NodePropertyName_TYPE_FULL_NAME NodePropertyName = 51 // The static type decl of a TYPE. This property is matched against the FULL_NAME // of TYPE_DECL nodes. It is required to have exactly one TYPE_DECL for each // different TYPE_DECL_FULL_NAME NodePropertyName_TYPE_DECL_FULL_NAME NodePropertyName = 52 // The static types a TYPE_DECL inherits from. This property is matched against the // FULL_NAME of TYPE nodes and thus it is required to have at least one TYPE node // for each TYPE_FULL_NAME NodePropertyName_INHERITS_FROM_TYPE_FULL_NAME NodePropertyName = 53 // The FULL_NAME of a method. Used to link CALL and METHOD nodes. It is required // to have exactly one METHOD node for each METHOD_FULL_NAME NodePropertyName_METHOD_FULL_NAME NodePropertyName = 54 // The type of the AST parent. Since this is only used in some parts of the graph, // the list does not include all possible parents by intention. // Possible parents: METHOD, TYPE_DECL, NAMESPACE_BLOCK. NodePropertyName_AST_PARENT_TYPE NodePropertyName = 56 // This field holds the FULL_NAME of the AST parent of an entity. NodePropertyName_AST_PARENT_FULL_NAME NodePropertyName = 57 // The group ID for a dependency NodePropertyName_DEPENDENCY_GROUP_ID NodePropertyName = 58 NodePropertyName_SYMBOL NodePropertyName = 100 NodePropertyName_METHOD_SHORT_NAME NodePropertyName = 102 NodePropertyName_PACKAGE_NAME NodePropertyName = 103 NodePropertyName_CLASS_NAME NodePropertyName = 104 NodePropertyName_NODE_LABEL NodePropertyName = 105 // The path of the source file this node was generated from, relative to the root // path in the meta data node. This field must be set but may be set to the value `<unknown>` to // indicate that no source file can be associated with the node, e.g., because the node represents // an entity known to exist because it is referenced, but for which the file that is is declared in // is unknown. NodePropertyName_FILENAME NodePropertyName = 106 // The field contains the names of the overlays applied to this CPG, in order of their // application. Names are free-form strings, that is, this specification does not // dictate them but rather requires tool producers and consumers to communicate them // between each other. NodePropertyName_OVERLAYS NodePropertyName = 118 // This property contains a hash value in the form of a string. // Hashes can be used to summarize data, e.g., to summarize the // contents of source files or sub graphs. Such summaries are useful // to determine whether code has already been analyzed in incremental // analysis pipelines. This property is optional to allow its calculation // to be deferred or skipped if the hash is not needed. NodePropertyName_HASH NodePropertyName = 120 // For calls involving named parameters, the `ARGUMENT_NAME` field holds the // name of the parameter initialized by the expression. For all other calls, // this field is unset. NodePropertyName_ARGUMENT_NAME NodePropertyName = 130 // This property denotes a key of a key-value pair. NodePropertyName_KEY NodePropertyName = 131 NodePropertyName_CLASS_SHORT_NAME NodePropertyName = 132 // This property holds the fully qualified name of the type that the node is // a type alias of. NodePropertyName_ALIAS_TYPE_FULL_NAME NodePropertyName = 158 // The original name of the (potentially mangled) captured variable NodePropertyName_CLOSURE_ORIGINAL_NAME NodePropertyName = 159 // Specifies whether a parameter is the variadic argument handling parameter of // a variadic method. Only one parameter of a method is allowed to have this // property set to true. NodePropertyName_IS_VARIADIC NodePropertyName = 221 // The path to the root directory of the source/binary this CPG is generated from. NodePropertyName_ROOT NodePropertyName = 1199 // Type hint for the dynamic type NodePropertyName_DYNAMIC_TYPE_HINT_FULL_NAME NodePropertyName = 1591 // Specifies an index, e.g., for a parameter or argument. // Explicit parameters are numbered from 1 to N, while index 0 is reserved for implicit // self / this parameter. NodePropertyName_INDEX NodePropertyName = 2223 // This field holds the canonical name of a `FIELD_IDENTIFIER`. It is typically // identical to the CODE field, but canonicalized according to source language // semantics. Human readable names are preferable. `FIELD_IDENTIFIER` nodes must // share identical `CANONICAL_NAME` if and // only if they alias, e.g., in C-style unions (if the aliasing relationship is // unknown or there are partial overlaps, then one must make a reasonable guess, // and trade off between false negatives and false positives). NodePropertyName_CANONICAL_NAME NodePropertyName = 2001092 // References to other nodes. This is not a real property; it exists here for the sake of proto serialization only. valueType and cardinality are meaningless. NodePropertyName_CONTAINED_REF NodePropertyName = 2007161 )
func (NodePropertyName) Descriptor ¶
func (NodePropertyName) Descriptor() protoreflect.EnumDescriptor
func (NodePropertyName) Enum ¶
func (x NodePropertyName) Enum() *NodePropertyName
func (NodePropertyName) EnumDescriptor
deprecated
func (NodePropertyName) EnumDescriptor() ([]byte, []int)
Deprecated: Use NodePropertyName.Descriptor instead.
func (NodePropertyName) Number ¶
func (x NodePropertyName) Number() protoreflect.EnumNumber
func (NodePropertyName) String ¶
func (x NodePropertyName) String() string
func (NodePropertyName) Type ¶
func (NodePropertyName) Type() protoreflect.EnumType
type PropertyValue ¶
type PropertyValue struct { // Types that are assignable to Value: // // *PropertyValue_StringValue // *PropertyValue_BoolValue // *PropertyValue_IntValue // *PropertyValue_LongValue // *PropertyValue_FloatValue // *PropertyValue_DoubleValue // *PropertyValue_StringList // *PropertyValue_BoolList // *PropertyValue_IntList // *PropertyValue_LongList // *PropertyValue_FloatList // *PropertyValue_DoubleList // *PropertyValue_ContainedRefs Value isPropertyValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*PropertyValue) Descriptor
deprecated
func (*PropertyValue) Descriptor() ([]byte, []int)
Deprecated: Use PropertyValue.ProtoReflect.Descriptor instead.
func (*PropertyValue) GetBoolList ¶
func (x *PropertyValue) GetBoolList() *BoolList
func (*PropertyValue) GetBoolValue ¶
func (x *PropertyValue) GetBoolValue() bool
func (*PropertyValue) GetContainedRefs ¶
func (x *PropertyValue) GetContainedRefs() *ContainedRefs
func (*PropertyValue) GetDoubleList ¶
func (x *PropertyValue) GetDoubleList() *DoubleList
func (*PropertyValue) GetDoubleValue ¶
func (x *PropertyValue) GetDoubleValue() float64
func (*PropertyValue) GetFloatList ¶
func (x *PropertyValue) GetFloatList() *FloatList
func (*PropertyValue) GetFloatValue ¶
func (x *PropertyValue) GetFloatValue() float32
func (*PropertyValue) GetIntList ¶
func (x *PropertyValue) GetIntList() *IntList
func (*PropertyValue) GetIntValue ¶
func (x *PropertyValue) GetIntValue() int32
func (*PropertyValue) GetLongList ¶
func (x *PropertyValue) GetLongList() *LongList
func (*PropertyValue) GetLongValue ¶
func (x *PropertyValue) GetLongValue() int64
func (*PropertyValue) GetStringList ¶
func (x *PropertyValue) GetStringList() *StringList
func (*PropertyValue) GetStringValue ¶
func (x *PropertyValue) GetStringValue() string
func (*PropertyValue) GetValue ¶
func (m *PropertyValue) GetValue() isPropertyValue_Value
func (*PropertyValue) ProtoMessage ¶
func (*PropertyValue) ProtoMessage()
func (*PropertyValue) ProtoReflect ¶
func (x *PropertyValue) ProtoReflect() protoreflect.Message
func (*PropertyValue) Reset ¶
func (x *PropertyValue) Reset()
func (*PropertyValue) String ¶
func (x *PropertyValue) String() string
type PropertyValue_BoolList ¶
type PropertyValue_BoolList struct {
BoolList *BoolList `protobuf:"bytes,8,opt,name=bool_list,json=boolList,proto3,oneof"`
}
type PropertyValue_BoolValue ¶
type PropertyValue_BoolValue struct {
BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type PropertyValue_ContainedRefs ¶
type PropertyValue_ContainedRefs struct {
ContainedRefs *ContainedRefs `protobuf:"bytes,13,opt,name=contained_refs,json=containedRefs,proto3,oneof"`
}
type PropertyValue_DoubleList ¶
type PropertyValue_DoubleList struct {
DoubleList *DoubleList `protobuf:"bytes,12,opt,name=double_list,json=doubleList,proto3,oneof"`
}
type PropertyValue_DoubleValue ¶
type PropertyValue_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type PropertyValue_FloatList ¶
type PropertyValue_FloatList struct {
FloatList *FloatList `protobuf:"bytes,11,opt,name=float_list,json=floatList,proto3,oneof"`
}
type PropertyValue_FloatValue ¶
type PropertyValue_FloatValue struct {
FloatValue float32 `protobuf:"fixed32,5,opt,name=float_value,json=floatValue,proto3,oneof"`
}
type PropertyValue_IntList ¶
type PropertyValue_IntList struct {
IntList *IntList `protobuf:"bytes,9,opt,name=int_list,json=intList,proto3,oneof"`
}
type PropertyValue_IntValue ¶
type PropertyValue_IntValue struct {
IntValue int32 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}
type PropertyValue_LongList ¶
type PropertyValue_LongList struct {
LongList *LongList `protobuf:"bytes,10,opt,name=long_list,json=longList,proto3,oneof"`
}
type PropertyValue_LongValue ¶
type PropertyValue_LongValue struct {
LongValue int64 `protobuf:"varint,4,opt,name=long_value,json=longValue,proto3,oneof"`
}
type PropertyValue_StringList ¶
type PropertyValue_StringList struct {
StringList *StringList `protobuf:"bytes,7,opt,name=string_list,json=stringList,proto3,oneof"`
}
type PropertyValue_StringValue ¶
type PropertyValue_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type StringList ¶
type StringList struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetValues ¶
func (x *StringList) GetValues() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶
func (x *StringList) Reset()
func (*StringList) String ¶
func (x *StringList) String() string