proto

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2018 License: BSD-3-Clause Imports: 7 Imported by: 4

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

scopeinfo.proto

It has these top-level messages:

ScopeInfo
ScopeReference

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthScopeinfo = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowScopeinfo   = fmt.Errorf("proto: integer overflow")
)
View Source
var ScopeKind_name = map[int32]string{
	0: "VALUE",
	1: "GENERIC",
	2: "STATIC",
}
View Source
var ScopeKind_value = map[string]int32{
	"VALUE":   0,
	"GENERIC": 1,
	"STATIC":  2,
}
View Source
var ScopeLabel_name = map[int32]string{
	0:  "UNUSED",
	1:  "STREAM_LOOP",
	2:  "STREAMABLE_LOOP",
	3:  "GENERATOR_STATEMENT",
	4:  "SML_FUNCTION",
	5:  "SML_CONSTRUCTOR",
	6:  "SML_SINGLE_CHILD",
	7:  "SML_STREAM_CHILD",
	8:  "SML_NO_CHILDREN",
	9:  "SML_CHILDREN",
	13: "SML_PROPS_MAPPING",
	14: "SML_PROPS_CLASS",
	15: "SML_PROPS_STRUCT",
	10: "NOMINALLY_SHORTCUT_EXPR",
	11: "STRUCTURAL_UPDATE_EXPR",
	22: "STRUCTURAL_FUNCTION_EXPR",
	12: "BROKEN_FLOW",
	16: "AWAITS",
	17: "CALLS_ANONYMOUS_CLOSURE",
	18: "SML_PROMISING_NO",
	19: "SML_PROMISING_MAYBE",
	20: "SML_PROMISING_YES",
	21: "AGENT_CONSTRUCTOR_REF",
	23: "SML_CHILD_YIELD_VALUE",
	24: "SML_CHILD_YIELD_FROM",
	25: "HAS_RETURN",
}
View Source
var ScopeLabel_value = map[string]int32{
	"UNUSED":                   0,
	"STREAM_LOOP":              1,
	"STREAMABLE_LOOP":          2,
	"GENERATOR_STATEMENT":      3,
	"SML_FUNCTION":             4,
	"SML_CONSTRUCTOR":          5,
	"SML_SINGLE_CHILD":         6,
	"SML_STREAM_CHILD":         7,
	"SML_NO_CHILDREN":          8,
	"SML_CHILDREN":             9,
	"SML_PROPS_MAPPING":        13,
	"SML_PROPS_CLASS":          14,
	"SML_PROPS_STRUCT":         15,
	"NOMINALLY_SHORTCUT_EXPR":  10,
	"STRUCTURAL_UPDATE_EXPR":   11,
	"STRUCTURAL_FUNCTION_EXPR": 22,
	"BROKEN_FLOW":              12,
	"AWAITS":                   16,
	"CALLS_ANONYMOUS_CLOSURE":  17,
	"SML_PROMISING_NO":         18,
	"SML_PROMISING_MAYBE":      19,
	"SML_PROMISING_YES":        20,
	"AGENT_CONSTRUCTOR_REF":    21,
	"SML_CHILD_YIELD_VALUE":    23,
	"SML_CHILD_YIELD_FROM":     24,
	"HAS_RETURN":               25,
}

Functions

This section is empty.

Types

type ScopeInfo

type ScopeInfo struct {
	IsValid                bool                  `protobuf:"varint,1,opt,name=IsValid,proto3" json:"IsValid,omitempty"`
	Kind                   ScopeKind             `protobuf:"varint,2,opt,name=Kind,proto3,enum=proto.ScopeKind" json:"Kind,omitempty"`
	NamedReference         *ScopeReference       `protobuf:"bytes,8,opt,name=NamedReference" json:"NamedReference,omitempty"`
	CalledOpReference      *ScopeReference       `protobuf:"bytes,9,opt,name=CalledOpReference" json:"CalledOpReference,omitempty"`
	TargetedReference      *ScopeReference       `protobuf:"bytes,14,opt,name=TargetedReference" json:"TargetedReference,omitempty"`
	ResolvedType           string                `protobuf:"bytes,3,opt,name=ResolvedType,proto3" json:"ResolvedType,omitempty"`
	ReturnedType           string                `protobuf:"bytes,4,opt,name=ReturnedType,proto3" json:"ReturnedType,omitempty"`
	AssignableType         string                `protobuf:"bytes,5,opt,name=AssignableType,proto3" json:"AssignableType,omitempty"`
	StaticType             string                `protobuf:"bytes,6,opt,name=StaticType,proto3" json:"StaticType,omitempty"`
	GenericType            string                `protobuf:"bytes,13,opt,name=GenericType,proto3" json:"GenericType,omitempty"`
	IsTerminatingStatement bool                  `protobuf:"varint,7,opt,name=IsTerminatingStatement,proto3" json:"IsTerminatingStatement,omitempty"`
	IsSettlingScope        bool                  `protobuf:"varint,10,opt,name=IsSettlingScope,proto3" json:"IsSettlingScope,omitempty"`
	IsAnonymousReference   bool                  `protobuf:"varint,11,opt,name=IsAnonymousReference,proto3" json:"IsAnonymousReference,omitempty"`
	Labels                 []ScopeLabel          `protobuf:"varint,12,rep,packed,name=Labels,enum=proto.ScopeLabel" json:"Labels,omitempty"`
	StaticDependencies     []*ScopeReference     `protobuf:"bytes,15,rep,name=StaticDependencies" json:"StaticDependencies,omitempty"`
	DynamicDependencies    []string              `protobuf:"bytes,16,rep,name=DynamicDependencies" json:"DynamicDependencies,omitempty"`
	Awaits                 bool                  `protobuf:"varint,17,opt,name=Awaits,proto3" json:"Awaits,omitempty"`
	Attributes             map[string]*ScopeInfo `` /* 148-byte string literal not displayed */
}

func (*ScopeInfo) AssignableTypeRef

func (t *ScopeInfo) AssignableTypeRef(tg *typegraph.TypeGraph) typegraph.TypeReference

func (*ScopeInfo) Build

func (t *ScopeInfo) Build(value string) interface{}

func (*ScopeInfo) CalledOperator

func (t *ScopeInfo) CalledOperator(tg *typegraph.TypeGraph) (typegraph.TGMember, bool)

func (*ScopeInfo) Descriptor

func (*ScopeInfo) Descriptor() ([]byte, []int)

func (*ScopeInfo) GenericTypeRef

func (t *ScopeInfo) GenericTypeRef(tg *typegraph.TypeGraph) typegraph.TypeReference

func (*ScopeInfo) GetAssignableType

func (m *ScopeInfo) GetAssignableType() string

func (*ScopeInfo) GetAttributes

func (m *ScopeInfo) GetAttributes() map[string]*ScopeInfo

func (*ScopeInfo) GetAwaits

func (m *ScopeInfo) GetAwaits() bool

func (*ScopeInfo) GetCalledOpReference

func (m *ScopeInfo) GetCalledOpReference() *ScopeReference

func (*ScopeInfo) GetDynamicDependencies

func (m *ScopeInfo) GetDynamicDependencies() []string

func (*ScopeInfo) GetGenericType

func (m *ScopeInfo) GetGenericType() string

func (*ScopeInfo) GetIsAnonymousReference

func (m *ScopeInfo) GetIsAnonymousReference() bool

func (*ScopeInfo) GetIsSettlingScope

func (m *ScopeInfo) GetIsSettlingScope() bool

func (*ScopeInfo) GetIsTerminatingStatement

func (m *ScopeInfo) GetIsTerminatingStatement() bool

func (*ScopeInfo) GetIsValid

func (m *ScopeInfo) GetIsValid() bool

func (*ScopeInfo) GetKind

func (m *ScopeInfo) GetKind() ScopeKind

func (*ScopeInfo) GetLabels

func (m *ScopeInfo) GetLabels() []ScopeLabel

func (*ScopeInfo) GetNamedReference

func (m *ScopeInfo) GetNamedReference() *ScopeReference

func (*ScopeInfo) GetResolvedType

func (m *ScopeInfo) GetResolvedType() string

func (*ScopeInfo) GetReturnedType

func (m *ScopeInfo) GetReturnedType() string

func (*ScopeInfo) GetStaticDependencies

func (m *ScopeInfo) GetStaticDependencies() []*ScopeReference

func (*ScopeInfo) GetStaticType

func (m *ScopeInfo) GetStaticType() string

func (*ScopeInfo) GetTargetedReference

func (m *ScopeInfo) GetTargetedReference() *ScopeReference

func (*ScopeInfo) HasLabel

func (t *ScopeInfo) HasLabel(label ScopeLabel) bool

func (*ScopeInfo) Marshal

func (m *ScopeInfo) Marshal() (dAtA []byte, err error)

func (*ScopeInfo) MarshalTo

func (m *ScopeInfo) MarshalTo(dAtA []byte) (int, error)

func (*ScopeInfo) Name

func (t *ScopeInfo) Name() string

func (*ScopeInfo) NamedReferenceNode

func (t *ScopeInfo) NamedReferenceNode(srg *srg.SRG, tg *typegraph.TypeGraph) (compilergraph.GraphNode, bool)

func (*ScopeInfo) ProtoMessage

func (*ScopeInfo) ProtoMessage()

func (*ScopeInfo) Reset

func (m *ScopeInfo) Reset()

func (*ScopeInfo) ResolvedTypeRef

func (t *ScopeInfo) ResolvedTypeRef(tg *typegraph.TypeGraph) typegraph.TypeReference

func (*ScopeInfo) ReturnedTypeRef

func (t *ScopeInfo) ReturnedTypeRef(tg *typegraph.TypeGraph) typegraph.TypeReference

func (*ScopeInfo) Size

func (m *ScopeInfo) Size() (n int)

func (*ScopeInfo) StaticTypeRef

func (t *ScopeInfo) StaticTypeRef(tg *typegraph.TypeGraph) typegraph.TypeReference

func (*ScopeInfo) String

func (m *ScopeInfo) String() string

func (*ScopeInfo) TargetedNode

func (t *ScopeInfo) TargetedNode(srg *srg.SRG) (compilergraph.GraphNode, bool)

func (*ScopeInfo) Unmarshal

func (m *ScopeInfo) Unmarshal(dAtA []byte) error

func (*ScopeInfo) Value

func (t *ScopeInfo) Value() string

type ScopeKind

type ScopeKind int32
const (
	ScopeKind_VALUE   ScopeKind = 0
	ScopeKind_GENERIC ScopeKind = 1
	ScopeKind_STATIC  ScopeKind = 2
)

func (ScopeKind) EnumDescriptor

func (ScopeKind) EnumDescriptor() ([]byte, []int)

func (ScopeKind) String

func (x ScopeKind) String() string

type ScopeLabel

type ScopeLabel int32
const (
	ScopeLabel_UNUSED                   ScopeLabel = 0
	ScopeLabel_STREAM_LOOP              ScopeLabel = 1
	ScopeLabel_STREAMABLE_LOOP          ScopeLabel = 2
	ScopeLabel_GENERATOR_STATEMENT      ScopeLabel = 3
	ScopeLabel_SML_FUNCTION             ScopeLabel = 4
	ScopeLabel_SML_CONSTRUCTOR          ScopeLabel = 5
	ScopeLabel_SML_SINGLE_CHILD         ScopeLabel = 6
	ScopeLabel_SML_STREAM_CHILD         ScopeLabel = 7
	ScopeLabel_SML_NO_CHILDREN          ScopeLabel = 8
	ScopeLabel_SML_CHILDREN             ScopeLabel = 9
	ScopeLabel_SML_PROPS_MAPPING        ScopeLabel = 13
	ScopeLabel_SML_PROPS_CLASS          ScopeLabel = 14
	ScopeLabel_SML_PROPS_STRUCT         ScopeLabel = 15
	ScopeLabel_NOMINALLY_SHORTCUT_EXPR  ScopeLabel = 10
	ScopeLabel_STRUCTURAL_UPDATE_EXPR   ScopeLabel = 11
	ScopeLabel_STRUCTURAL_FUNCTION_EXPR ScopeLabel = 22
	ScopeLabel_BROKEN_FLOW              ScopeLabel = 12
	ScopeLabel_AWAITS                   ScopeLabel = 16
	ScopeLabel_CALLS_ANONYMOUS_CLOSURE  ScopeLabel = 17
	// Marks member nodes with whether their implementation is promising, as computed by the scope
	// system.
	ScopeLabel_SML_PROMISING_NO    ScopeLabel = 18
	ScopeLabel_SML_PROMISING_MAYBE ScopeLabel = 19
	ScopeLabel_SML_PROMISING_YES   ScopeLabel = 20
	// Marks an expression as referencing the constructor of an agent.
	ScopeLabel_AGENT_CONSTRUCTOR_REF ScopeLabel = 21
	ScopeLabel_SML_CHILD_YIELD_VALUE ScopeLabel = 23
	ScopeLabel_SML_CHILD_YIELD_FROM  ScopeLabel = 24
	ScopeLabel_HAS_RETURN            ScopeLabel = 25
)

func (ScopeLabel) EnumDescriptor

func (ScopeLabel) EnumDescriptor() ([]byte, []int)

func (ScopeLabel) String

func (x ScopeLabel) String() string

type ScopeReference

type ScopeReference struct {
	ReferencedNode string `protobuf:"bytes,1,opt,name=ReferencedNode,proto3" json:"ReferencedNode,omitempty"`
	IsSRGNode      bool   `protobuf:"varint,2,opt,name=IsSRGNode,proto3" json:"IsSRGNode,omitempty"`
}

func (*ScopeReference) Descriptor

func (*ScopeReference) Descriptor() ([]byte, []int)

func (*ScopeReference) GetIsSRGNode

func (m *ScopeReference) GetIsSRGNode() bool

func (*ScopeReference) GetNode

func (*ScopeReference) GetReferencedNode

func (m *ScopeReference) GetReferencedNode() string

func (*ScopeReference) Marshal

func (m *ScopeReference) Marshal() (dAtA []byte, err error)

func (*ScopeReference) MarshalTo

func (m *ScopeReference) MarshalTo(dAtA []byte) (int, error)

func (*ScopeReference) ProtoMessage

func (*ScopeReference) ProtoMessage()

func (*ScopeReference) Reset

func (m *ScopeReference) Reset()

func (*ScopeReference) Size

func (m *ScopeReference) Size() (n int)

func (*ScopeReference) String

func (m *ScopeReference) String() string

func (*ScopeReference) Unmarshal

func (m *ScopeReference) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL