ast

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_shield_ast_ast_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ArrayLiteral

type ArrayLiteral struct {
	Token    *token.Token  `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Elements []*Expression `protobuf:"bytes,2,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*ArrayLiteral) Descriptor deprecated

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

Deprecated: Use ArrayLiteral.ProtoReflect.Descriptor instead.

func (*ArrayLiteral) GetElements

func (x *ArrayLiteral) GetElements() []*Expression

func (*ArrayLiteral) GetToken

func (x *ArrayLiteral) GetToken() *token.Token

func (*ArrayLiteral) ProtoMessage

func (*ArrayLiteral) ProtoMessage()

func (*ArrayLiteral) ProtoReflect

func (x *ArrayLiteral) ProtoReflect() protoreflect.Message

func (*ArrayLiteral) Reset

func (x *ArrayLiteral) Reset()

func (*ArrayLiteral) String

func (x *ArrayLiteral) String() string

type BooleanLiteral

type BooleanLiteral struct {
	Token *token.Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Value bool         `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BooleanLiteral) Descriptor deprecated

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

Deprecated: Use BooleanLiteral.ProtoReflect.Descriptor instead.

func (*BooleanLiteral) GetToken

func (x *BooleanLiteral) GetToken() *token.Token

func (*BooleanLiteral) GetValue

func (x *BooleanLiteral) GetValue() bool

func (*BooleanLiteral) ProtoMessage

func (*BooleanLiteral) ProtoMessage()

func (*BooleanLiteral) ProtoReflect

func (x *BooleanLiteral) ProtoReflect() protoreflect.Message

func (*BooleanLiteral) Reset

func (x *BooleanLiteral) Reset()

func (*BooleanLiteral) String

func (x *BooleanLiteral) String() string

type CallExpression

type CallExpression struct {
	Token     *token.Token  `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Function  *Identifier   `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
	Arguments []*Expression `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

func (*CallExpression) Descriptor deprecated

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

Deprecated: Use CallExpression.ProtoReflect.Descriptor instead.

func (*CallExpression) GetArguments

func (x *CallExpression) GetArguments() []*Expression

func (*CallExpression) GetFunction

func (x *CallExpression) GetFunction() *Identifier

func (*CallExpression) GetToken

func (x *CallExpression) GetToken() *token.Token

func (*CallExpression) ProtoMessage

func (*CallExpression) ProtoMessage()

func (*CallExpression) ProtoReflect

func (x *CallExpression) ProtoReflect() protoreflect.Message

func (*CallExpression) Reset

func (x *CallExpression) Reset()

func (*CallExpression) String

func (x *CallExpression) String() string

type Expression

type Expression struct {

	// Types that are assignable to Value:
	//
	//	*Expression_Identifier
	//	*Expression_IntegerLiteral
	//	*Expression_BooleanLiteral
	//	*Expression_ArrayLiteral
	//	*Expression_CallExpression
	//	*Expression_InfixExpression
	Value isExpression_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Expression) Descriptor deprecated

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

Deprecated: Use Expression.ProtoReflect.Descriptor instead.

func (*Expression) GetArrayLiteral

func (x *Expression) GetArrayLiteral() *ArrayLiteral

func (*Expression) GetBooleanLiteral

func (x *Expression) GetBooleanLiteral() *BooleanLiteral

func (*Expression) GetCallExpression

func (x *Expression) GetCallExpression() *CallExpression

func (*Expression) GetIdentifier

func (x *Expression) GetIdentifier() *Identifier

func (*Expression) GetInfixExpression

func (x *Expression) GetInfixExpression() *InfixExpression

func (*Expression) GetIntegerLiteral

func (x *Expression) GetIntegerLiteral() *IntegerLiteral

func (*Expression) GetValue

func (x *Expression) GetValue() isExpression_Value

func (*Expression) ProtoMessage

func (*Expression) ProtoMessage()

func (*Expression) ProtoReflect

func (x *Expression) ProtoReflect() protoreflect.Message

func (*Expression) Reset

func (x *Expression) Reset()

func (*Expression) String

func (x *Expression) String() string

type Expression_ArrayLiteral

type Expression_ArrayLiteral struct {
	ArrayLiteral *ArrayLiteral `protobuf:"bytes,4,opt,name=array_literal,json=arrayLiteral,proto3,oneof"`
}

type Expression_BooleanLiteral

type Expression_BooleanLiteral struct {
	BooleanLiteral *BooleanLiteral `protobuf:"bytes,3,opt,name=boolean_literal,json=booleanLiteral,proto3,oneof"`
}

type Expression_CallExpression

type Expression_CallExpression struct {
	CallExpression *CallExpression `protobuf:"bytes,5,opt,name=call_expression,json=callExpression,proto3,oneof"`
}

type Expression_Identifier

type Expression_Identifier struct {
	Identifier *Identifier `protobuf:"bytes,1,opt,name=identifier,proto3,oneof"`
}

type Expression_InfixExpression

type Expression_InfixExpression struct {
	InfixExpression *InfixExpression `protobuf:"bytes,6,opt,name=infix_expression,json=infixExpression,proto3,oneof"`
}

type Expression_IntegerLiteral

type Expression_IntegerLiteral struct {
	IntegerLiteral *IntegerLiteral `protobuf:"bytes,2,opt,name=integer_literal,json=integerLiteral,proto3,oneof"`
}

type Identifier

type Identifier struct {
	Token *token.Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Value string       `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Identifier) Descriptor deprecated

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

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetToken

func (x *Identifier) GetToken() *token.Token

func (*Identifier) GetValue

func (x *Identifier) GetValue() string

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

func (x *Identifier) ProtoReflect() protoreflect.Message

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

type InfixExpression

type InfixExpression struct {
	Token    *token.Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Left     *Expression  `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"`
	Operator string       `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	Right    *Expression  `protobuf:"bytes,4,opt,name=right,proto3" json:"right,omitempty"`
	// contains filtered or unexported fields
}

func (*InfixExpression) Descriptor deprecated

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

Deprecated: Use InfixExpression.ProtoReflect.Descriptor instead.

func (*InfixExpression) GetLeft

func (x *InfixExpression) GetLeft() *Expression

func (*InfixExpression) GetOperator

func (x *InfixExpression) GetOperator() string

func (*InfixExpression) GetRight

func (x *InfixExpression) GetRight() *Expression

func (*InfixExpression) GetToken

func (x *InfixExpression) GetToken() *token.Token

func (*InfixExpression) ProtoMessage

func (*InfixExpression) ProtoMessage()

func (*InfixExpression) ProtoReflect

func (x *InfixExpression) ProtoReflect() protoreflect.Message

func (*InfixExpression) Reset

func (x *InfixExpression) Reset()

func (*InfixExpression) String

func (x *InfixExpression) String() string

type IntegerLiteral

type IntegerLiteral struct {
	Token *token.Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Value int64        `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*IntegerLiteral) Descriptor deprecated

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

Deprecated: Use IntegerLiteral.ProtoReflect.Descriptor instead.

func (*IntegerLiteral) GetToken

func (x *IntegerLiteral) GetToken() *token.Token

func (*IntegerLiteral) GetValue

func (x *IntegerLiteral) GetValue() int64

func (*IntegerLiteral) ProtoMessage

func (*IntegerLiteral) ProtoMessage()

func (*IntegerLiteral) ProtoReflect

func (x *IntegerLiteral) ProtoReflect() protoreflect.Message

func (*IntegerLiteral) Reset

func (x *IntegerLiteral) Reset()

func (*IntegerLiteral) String

func (x *IntegerLiteral) String() string

Jump to

Keyboard shortcuts

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