ast

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_python_ast_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Alias

type Alias struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Alias) Descriptor deprecated

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

Deprecated: Use Alias.ProtoReflect.Descriptor instead.

func (*Alias) GetName

func (x *Alias) GetName() string

func (*Alias) ProtoMessage

func (*Alias) ProtoMessage()

func (*Alias) ProtoReflect

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

func (*Alias) Reset

func (x *Alias) Reset()

func (*Alias) String

func (x *Alias) String() string

type AnnAssign

type AnnAssign struct {
	Target     *Name  `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Annotation *Node  `protobuf:"bytes,2,opt,name=annotation,proto3" json:"annotation,omitempty"`
	Simple     int32  `protobuf:"varint,3,opt,name=simple,proto3" json:"simple,omitempty"`
	Comment    string `protobuf:"bytes,4,opt,name=Comment,json=comment,proto3" json:"Comment,omitempty"`
	// contains filtered or unexported fields
}

func (*AnnAssign) Descriptor deprecated

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

Deprecated: Use AnnAssign.ProtoReflect.Descriptor instead.

func (*AnnAssign) GetAnnotation

func (x *AnnAssign) GetAnnotation() *Node

func (*AnnAssign) GetComment

func (x *AnnAssign) GetComment() string

func (*AnnAssign) GetSimple

func (x *AnnAssign) GetSimple() int32

func (*AnnAssign) GetTarget

func (x *AnnAssign) GetTarget() *Name

func (*AnnAssign) ProtoMessage

func (*AnnAssign) ProtoMessage()

func (*AnnAssign) ProtoReflect

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

func (*AnnAssign) Reset

func (x *AnnAssign) Reset()

func (*AnnAssign) String

func (x *AnnAssign) String() string

type Arg

type Arg struct {
	Arg        string `protobuf:"bytes,1,opt,name=arg,proto3" json:"arg,omitempty"`
	Annotation *Node  `protobuf:"bytes,2,opt,name=annotation,proto3" json:"annotation,omitempty"`
	// contains filtered or unexported fields
}

func (*Arg) Descriptor deprecated

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

Deprecated: Use Arg.ProtoReflect.Descriptor instead.

func (*Arg) GetAnnotation

func (x *Arg) GetAnnotation() *Node

func (*Arg) GetArg

func (x *Arg) GetArg() string

func (*Arg) ProtoMessage

func (*Arg) ProtoMessage()

func (*Arg) ProtoReflect

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

func (*Arg) Reset

func (x *Arg) Reset()

func (*Arg) String

func (x *Arg) String() string

type Arguments

type Arguments struct {
	Args       []*Arg `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	KwOnlyArgs []*Arg `protobuf:"bytes,2,rep,name=kw_only_args,json=kwonlyargs,proto3" json:"kw_only_args,omitempty"`
	// contains filtered or unexported fields
}

func (*Arguments) Descriptor deprecated

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

Deprecated: Use Arguments.ProtoReflect.Descriptor instead.

func (*Arguments) GetArgs

func (x *Arguments) GetArgs() []*Arg

func (*Arguments) GetKwOnlyArgs

func (x *Arguments) GetKwOnlyArgs() []*Arg

func (*Arguments) ProtoMessage

func (*Arguments) ProtoMessage()

func (*Arguments) ProtoReflect

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

func (*Arguments) Reset

func (x *Arguments) Reset()

func (*Arguments) String

func (x *Arguments) String() string

type Assign

type Assign struct {
	Targets []*Node `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"`
	Value   *Node   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Comment string  `protobuf:"bytes,3,opt,name=Comment,json=comment,proto3" json:"Comment,omitempty"`
	// contains filtered or unexported fields
}

func (*Assign) Descriptor deprecated

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

Deprecated: Use Assign.ProtoReflect.Descriptor instead.

func (*Assign) GetComment

func (x *Assign) GetComment() string

func (*Assign) GetTargets

func (x *Assign) GetTargets() []*Node

func (*Assign) GetValue

func (x *Assign) GetValue() *Node

func (*Assign) ProtoMessage

func (*Assign) ProtoMessage()

func (*Assign) ProtoReflect

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

func (*Assign) Reset

func (x *Assign) Reset()

func (*Assign) String

func (x *Assign) String() string

type AsyncFor

type AsyncFor struct {
	Target *Node   `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Iter   *Node   `protobuf:"bytes,2,opt,name=iter,proto3" json:"iter,omitempty"`
	Body   []*Node `protobuf:"bytes,3,rep,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*AsyncFor) Descriptor deprecated

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

Deprecated: Use AsyncFor.ProtoReflect.Descriptor instead.

func (*AsyncFor) GetBody

func (x *AsyncFor) GetBody() []*Node

func (*AsyncFor) GetIter

func (x *AsyncFor) GetIter() *Node

func (*AsyncFor) GetTarget

func (x *AsyncFor) GetTarget() *Node

func (*AsyncFor) ProtoMessage

func (*AsyncFor) ProtoMessage()

func (*AsyncFor) ProtoReflect

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

func (*AsyncFor) Reset

func (x *AsyncFor) Reset()

func (*AsyncFor) String

func (x *AsyncFor) String() string

type AsyncFunctionDef

type AsyncFunctionDef struct {
	Name    string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Args    *Arguments `protobuf:"bytes,2,opt,name=Args,json=args,proto3" json:"Args,omitempty"`
	Body    []*Node    `protobuf:"bytes,3,rep,name=body,proto3" json:"body,omitempty"`
	Returns *Node      `protobuf:"bytes,4,opt,name=returns,proto3" json:"returns,omitempty"`
	// contains filtered or unexported fields
}

func (*AsyncFunctionDef) Descriptor deprecated

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

Deprecated: Use AsyncFunctionDef.ProtoReflect.Descriptor instead.

func (*AsyncFunctionDef) GetArgs

func (x *AsyncFunctionDef) GetArgs() *Arguments

func (*AsyncFunctionDef) GetBody

func (x *AsyncFunctionDef) GetBody() []*Node

func (*AsyncFunctionDef) GetName

func (x *AsyncFunctionDef) GetName() string

func (*AsyncFunctionDef) GetReturns

func (x *AsyncFunctionDef) GetReturns() *Node

func (*AsyncFunctionDef) ProtoMessage

func (*AsyncFunctionDef) ProtoMessage()

func (*AsyncFunctionDef) ProtoReflect

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

func (*AsyncFunctionDef) Reset

func (x *AsyncFunctionDef) Reset()

func (*AsyncFunctionDef) String

func (x *AsyncFunctionDef) String() string

type Attribute

type Attribute struct {
	Value *Node  `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Attr  string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated

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

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetAttr

func (x *Attribute) GetAttr() string

func (*Attribute) GetValue

func (x *Attribute) GetValue() *Node

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

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

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type Await

type Await struct {
	Value *Node `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Await) Descriptor deprecated

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

Deprecated: Use Await.ProtoReflect.Descriptor instead.

func (*Await) GetValue

func (x *Await) GetValue() *Node

func (*Await) ProtoMessage

func (*Await) ProtoMessage()

func (*Await) ProtoReflect

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

func (*Await) Reset

func (x *Await) Reset()

func (*Await) String

func (x *Await) String() string

type Call

type Call struct {
	Func     *Node      `protobuf:"bytes,1,opt,name=func,proto3" json:"func,omitempty"`
	Args     []*Node    `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	Keywords []*Keyword `protobuf:"bytes,3,rep,name=keywords,proto3" json:"keywords,omitempty"`
	// contains filtered or unexported fields
}

func (*Call) Descriptor deprecated

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

Deprecated: Use Call.ProtoReflect.Descriptor instead.

func (*Call) GetArgs

func (x *Call) GetArgs() []*Node

func (*Call) GetFunc

func (x *Call) GetFunc() *Node

func (*Call) GetKeywords

func (x *Call) GetKeywords() []*Keyword

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) ProtoReflect

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

func (*Call) Reset

func (x *Call) Reset()

func (*Call) String

func (x *Call) String() string

type ClassDef

type ClassDef struct {
	Name          string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Bases         []*Node `protobuf:"bytes,2,rep,name=bases,proto3" json:"bases,omitempty"`
	Keywords      []*Node `protobuf:"bytes,3,rep,name=keywords,proto3" json:"keywords,omitempty"`
	Body          []*Node `protobuf:"bytes,4,rep,name=body,proto3" json:"body,omitempty"`
	DecoratorList []*Node `protobuf:"bytes,5,rep,name=decorator_list,proto3" json:"decorator_list,omitempty"`
	// contains filtered or unexported fields
}

func (*ClassDef) Descriptor deprecated

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

Deprecated: Use ClassDef.ProtoReflect.Descriptor instead.

func (*ClassDef) GetBases

func (x *ClassDef) GetBases() []*Node

func (*ClassDef) GetBody

func (x *ClassDef) GetBody() []*Node

func (*ClassDef) GetDecoratorList

func (x *ClassDef) GetDecoratorList() []*Node

func (*ClassDef) GetKeywords

func (x *ClassDef) GetKeywords() []*Node

func (*ClassDef) GetName

func (x *ClassDef) GetName() string

func (*ClassDef) ProtoMessage

func (*ClassDef) ProtoMessage()

func (*ClassDef) ProtoReflect

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

func (*ClassDef) Reset

func (x *ClassDef) Reset()

func (*ClassDef) String

func (x *ClassDef) String() string

type Comment

type Comment struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

The Python ast module does not parse comments. It's not clear if this is the best way to support them in the AST

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetText

func (x *Comment) GetText() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type Compare

type Compare struct {
	Left        *Node   `protobuf:"bytes,1,opt,name=left,proto3" json:"left,omitempty"`
	Ops         []*Node `protobuf:"bytes,2,rep,name=ops,proto3" json:"ops,omitempty"`
	Comparators []*Node `protobuf:"bytes,3,rep,name=comparators,proto3" json:"comparators,omitempty"`
	// contains filtered or unexported fields
}

func (*Compare) Descriptor deprecated

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

Deprecated: Use Compare.ProtoReflect.Descriptor instead.

func (*Compare) GetComparators

func (x *Compare) GetComparators() []*Node

func (*Compare) GetLeft

func (x *Compare) GetLeft() *Node

func (*Compare) GetOps

func (x *Compare) GetOps() []*Node

func (*Compare) ProtoMessage

func (*Compare) ProtoMessage()

func (*Compare) ProtoReflect

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

func (*Compare) Reset

func (x *Compare) Reset()

func (*Compare) String

func (x *Compare) String() string

type Constant

type Constant struct {

	// Types that are assignable to Value:
	//	*Constant_Str
	//	*Constant_Int
	//	*Constant_None
	Value isConstant_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Constant) Descriptor deprecated

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

Deprecated: Use Constant.ProtoReflect.Descriptor instead.

func (*Constant) GetInt

func (x *Constant) GetInt() int32

func (*Constant) GetNone

func (x *Constant) GetNone() bool

func (*Constant) GetStr

func (x *Constant) GetStr() string

func (*Constant) GetValue

func (m *Constant) GetValue() isConstant_Value

func (*Constant) ProtoMessage

func (*Constant) ProtoMessage()

func (*Constant) ProtoReflect

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

func (*Constant) Reset

func (x *Constant) Reset()

func (*Constant) String

func (x *Constant) String() string

type Constant_Int

type Constant_Int struct {
	Int int32 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
}

type Constant_None

type Constant_None struct {
	None bool `protobuf:"varint,3,opt,name=none,proto3,oneof"`
}

type Constant_Str

type Constant_Str struct {
	Str string `protobuf:"bytes,1,opt,name=str,json=string,proto3,oneof"`
}

type Dict

type Dict struct {
	Keys   []*Node `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	Values []*Node `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Dict) Descriptor deprecated

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

Deprecated: Use Dict.ProtoReflect.Descriptor instead.

func (*Dict) GetKeys

func (x *Dict) GetKeys() []*Node

func (*Dict) GetValues

func (x *Dict) GetValues() []*Node

func (*Dict) ProtoMessage

func (*Dict) ProtoMessage()

func (*Dict) ProtoReflect

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

func (*Dict) Reset

func (x *Dict) Reset()

func (*Dict) String

func (x *Dict) String() string

type Expr

type Expr struct {
	Value *Node `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Expr) Descriptor deprecated

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

Deprecated: Use Expr.ProtoReflect.Descriptor instead.

func (*Expr) GetValue

func (x *Expr) GetValue() *Node

func (*Expr) ProtoMessage

func (*Expr) ProtoMessage()

func (*Expr) ProtoReflect

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

func (*Expr) Reset

func (x *Expr) Reset()

func (*Expr) String

func (x *Expr) String() string

type For

type For struct {
	Target *Node   `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Iter   *Node   `protobuf:"bytes,2,opt,name=iter,proto3" json:"iter,omitempty"`
	Body   []*Node `protobuf:"bytes,3,rep,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*For) Descriptor deprecated

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

Deprecated: Use For.ProtoReflect.Descriptor instead.

func (*For) GetBody

func (x *For) GetBody() []*Node

func (*For) GetIter

func (x *For) GetIter() *Node

func (*For) GetTarget

func (x *For) GetTarget() *Node

func (*For) ProtoMessage

func (*For) ProtoMessage()

func (*For) ProtoReflect

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

func (*For) Reset

func (x *For) Reset()

func (*For) String

func (x *For) String() string

type FunctionDef

type FunctionDef struct {
	Name    string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Args    *Arguments `protobuf:"bytes,2,opt,name=Args,json=args,proto3" json:"Args,omitempty"`
	Body    []*Node    `protobuf:"bytes,3,rep,name=body,proto3" json:"body,omitempty"`
	Returns *Node      `protobuf:"bytes,4,opt,name=returns,proto3" json:"returns,omitempty"`
	// contains filtered or unexported fields
}

func (*FunctionDef) Descriptor deprecated

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

Deprecated: Use FunctionDef.ProtoReflect.Descriptor instead.

func (*FunctionDef) GetArgs

func (x *FunctionDef) GetArgs() *Arguments

func (*FunctionDef) GetBody

func (x *FunctionDef) GetBody() []*Node

func (*FunctionDef) GetName

func (x *FunctionDef) GetName() string

func (*FunctionDef) GetReturns

func (x *FunctionDef) GetReturns() *Node

func (*FunctionDef) ProtoMessage

func (*FunctionDef) ProtoMessage()

func (*FunctionDef) ProtoReflect

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

func (*FunctionDef) Reset

func (x *FunctionDef) Reset()

func (*FunctionDef) String

func (x *FunctionDef) String() string

type If

type If struct {
	Test   *Node   `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`
	Body   []*Node `protobuf:"bytes,2,rep,name=body,proto3" json:"body,omitempty"`
	OrElse []*Node `protobuf:"bytes,3,rep,name=or_else,json=orelse,proto3" json:"or_else,omitempty"`
	// contains filtered or unexported fields
}

func (*If) Descriptor deprecated

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

Deprecated: Use If.ProtoReflect.Descriptor instead.

func (*If) GetBody

func (x *If) GetBody() []*Node

func (*If) GetOrElse

func (x *If) GetOrElse() []*Node

func (*If) GetTest

func (x *If) GetTest() *Node

func (*If) ProtoMessage

func (*If) ProtoMessage()

func (*If) ProtoReflect

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

func (*If) Reset

func (x *If) Reset()

func (*If) String

func (x *If) String() string

type Import

type Import struct {
	Names []*Node `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*Import) Descriptor deprecated

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

Deprecated: Use Import.ProtoReflect.Descriptor instead.

func (*Import) GetNames

func (x *Import) GetNames() []*Node

func (*Import) ProtoMessage

func (*Import) ProtoMessage()

func (*Import) ProtoReflect

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

func (*Import) Reset

func (x *Import) Reset()

func (*Import) String

func (x *Import) String() string

type ImportFrom

type ImportFrom struct {
	Module string  `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	Names  []*Node `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
	Level  int32   `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportFrom) Descriptor deprecated

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

Deprecated: Use ImportFrom.ProtoReflect.Descriptor instead.

func (*ImportFrom) GetLevel

func (x *ImportFrom) GetLevel() int32

func (*ImportFrom) GetModule

func (x *ImportFrom) GetModule() string

func (*ImportFrom) GetNames

func (x *ImportFrom) GetNames() []*Node

func (*ImportFrom) ProtoMessage

func (*ImportFrom) ProtoMessage()

func (*ImportFrom) ProtoReflect

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

func (*ImportFrom) Reset

func (x *ImportFrom) Reset()

func (*ImportFrom) String

func (x *ImportFrom) String() string

type ImportGroup

type ImportGroup struct {
	Imports []*Node `protobuf:"bytes,1,rep,name=imports,proto3" json:"imports,omitempty"`
	// contains filtered or unexported fields
}

Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.

Imports should be grouped in the following order:

Standard library imports.
Related third party imports.
Local application/library specific imports.

You should put a blank line between each group of imports.

https://www.python.org/dev/peps/pep-0008/#imports

func (*ImportGroup) Descriptor deprecated

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

Deprecated: Use ImportGroup.ProtoReflect.Descriptor instead.

func (*ImportGroup) GetImports

func (x *ImportGroup) GetImports() []*Node

func (*ImportGroup) ProtoMessage

func (*ImportGroup) ProtoMessage()

func (*ImportGroup) ProtoReflect

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

func (*ImportGroup) Reset

func (x *ImportGroup) Reset()

func (*ImportGroup) String

func (x *ImportGroup) String() string

type Is

type Is struct {
	// contains filtered or unexported fields
}

func (*Is) Descriptor deprecated

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

Deprecated: Use Is.ProtoReflect.Descriptor instead.

func (*Is) ProtoMessage

func (*Is) ProtoMessage()

func (*Is) ProtoReflect

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

func (*Is) Reset

func (x *Is) Reset()

func (*Is) String

func (x *Is) String() string

type Keyword

type Keyword struct {
	Arg   string `protobuf:"bytes,1,opt,name=arg,proto3" json:"arg,omitempty"`
	Value *Node  `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Keyword) Descriptor deprecated

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

Deprecated: Use Keyword.ProtoReflect.Descriptor instead.

func (*Keyword) GetArg

func (x *Keyword) GetArg() string

func (*Keyword) GetValue

func (x *Keyword) GetValue() *Node

func (*Keyword) ProtoMessage

func (*Keyword) ProtoMessage()

func (*Keyword) ProtoReflect

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

func (*Keyword) Reset

func (x *Keyword) Reset()

func (*Keyword) String

func (x *Keyword) String() string

type Module

type Module struct {
	Body []*Node `protobuf:"bytes,1,rep,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Module) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetBody

func (x *Module) GetBody() []*Node

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

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

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type Name

type Name struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Name) Descriptor deprecated

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

Deprecated: Use Name.ProtoReflect.Descriptor instead.

func (*Name) GetId

func (x *Name) GetId() string

func (*Name) ProtoMessage

func (*Name) ProtoMessage()

func (*Name) ProtoReflect

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

func (*Name) Reset

func (x *Name) Reset()

func (*Name) String

func (x *Name) String() string

type Node

type Node struct {

	// Types that are assignable to Node:
	//	*Node_ClassDef
	//	*Node_Import
	//	*Node_ImportFrom
	//	*Node_Module
	//	*Node_Alias
	//	*Node_AnnAssign
	//	*Node_Name
	//	*Node_Subscript
	//	*Node_Attribute
	//	*Node_Constant
	//	*Node_Assign
	//	*Node_Comment
	//	*Node_Expr
	//	*Node_Call
	//	*Node_FunctionDef
	//	*Node_Arg
	//	*Node_Arguments
	//	*Node_AsyncFunctionDef
	//	*Node_Pass
	//	*Node_Dict
	//	*Node_If
	//	*Node_Compare
	//	*Node_Return
	//	*Node_Is
	//	*Node_Keyword
	//	*Node_Yield
	//	*Node_For
	//	*Node_Await
	//	*Node_AsyncFor
	//	*Node_ImportGroup
	Node isNode_Node `protobuf_oneof:"node"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAlias

func (x *Node) GetAlias() *Alias

func (*Node) GetAnnAssign

func (x *Node) GetAnnAssign() *AnnAssign

func (*Node) GetArg

func (x *Node) GetArg() *Arg

func (*Node) GetArguments

func (x *Node) GetArguments() *Arguments

func (*Node) GetAssign

func (x *Node) GetAssign() *Assign

func (*Node) GetAsyncFor

func (x *Node) GetAsyncFor() *AsyncFor

func (*Node) GetAsyncFunctionDef

func (x *Node) GetAsyncFunctionDef() *AsyncFunctionDef

func (*Node) GetAttribute

func (x *Node) GetAttribute() *Attribute

func (*Node) GetAwait

func (x *Node) GetAwait() *Await

func (*Node) GetCall

func (x *Node) GetCall() *Call

func (*Node) GetClassDef

func (x *Node) GetClassDef() *ClassDef

func (*Node) GetComment

func (x *Node) GetComment() *Comment

func (*Node) GetCompare

func (x *Node) GetCompare() *Compare

func (*Node) GetConstant

func (x *Node) GetConstant() *Constant

func (*Node) GetDict

func (x *Node) GetDict() *Dict

func (*Node) GetExpr

func (x *Node) GetExpr() *Expr

func (*Node) GetFor

func (x *Node) GetFor() *For

func (*Node) GetFunctionDef

func (x *Node) GetFunctionDef() *FunctionDef

func (*Node) GetIf

func (x *Node) GetIf() *If

func (*Node) GetImport

func (x *Node) GetImport() *Import

func (*Node) GetImportFrom

func (x *Node) GetImportFrom() *ImportFrom

func (*Node) GetImportGroup

func (x *Node) GetImportGroup() *ImportGroup

func (*Node) GetIs

func (x *Node) GetIs() *Is

func (*Node) GetKeyword

func (x *Node) GetKeyword() *Keyword

func (*Node) GetModule

func (x *Node) GetModule() *Module

func (*Node) GetName

func (x *Node) GetName() *Name

func (*Node) GetNode

func (m *Node) GetNode() isNode_Node

func (*Node) GetPass

func (x *Node) GetPass() *Pass

func (*Node) GetReturn

func (x *Node) GetReturn() *Return

func (*Node) GetSubscript

func (x *Node) GetSubscript() *Subscript

func (*Node) GetYield

func (x *Node) GetYield() *Yield

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type Node_Alias

type Node_Alias struct {
	Alias *Alias `protobuf:"bytes,5,opt,name=alias,json=Alias,proto3,oneof"`
}

type Node_AnnAssign

type Node_AnnAssign struct {
	AnnAssign *AnnAssign `protobuf:"bytes,6,opt,name=ann_assign,json=AnnAssign,proto3,oneof"`
}

type Node_Arg

type Node_Arg struct {
	Arg *Arg `protobuf:"bytes,16,opt,name=arg,json=Arg,proto3,oneof"`
}

type Node_Arguments

type Node_Arguments struct {
	Arguments *Arguments `protobuf:"bytes,17,opt,name=arguments,json=Arguments,proto3,oneof"`
}

type Node_Assign

type Node_Assign struct {
	Assign *Assign `protobuf:"bytes,11,opt,name=assign,json=Assign,proto3,oneof"`
}

type Node_AsyncFor

type Node_AsyncFor struct {
	AsyncFor *AsyncFor `protobuf:"bytes,29,opt,name=async_for,json=AsyncFor,proto3,oneof"`
}

type Node_AsyncFunctionDef

type Node_AsyncFunctionDef struct {
	AsyncFunctionDef *AsyncFunctionDef `protobuf:"bytes,18,opt,name=async_function_def,json=AsyncFunctionDef,proto3,oneof"`
}

type Node_Attribute

type Node_Attribute struct {
	Attribute *Attribute `protobuf:"bytes,9,opt,name=attribute,json=Attribute,proto3,oneof"`
}

type Node_Await

type Node_Await struct {
	Await *Await `protobuf:"bytes,28,opt,name=await,json=Await,proto3,oneof"`
}

type Node_Call

type Node_Call struct {
	Call *Call `protobuf:"bytes,14,opt,name=call,json=Call,proto3,oneof"`
}

type Node_ClassDef

type Node_ClassDef struct {
	ClassDef *ClassDef `protobuf:"bytes,1,opt,name=class_def,json=ClassDef,proto3,oneof"`
}

type Node_Comment

type Node_Comment struct {
	Comment *Comment `protobuf:"bytes,12,opt,name=comment,json=Comment,proto3,oneof"`
}

type Node_Compare

type Node_Compare struct {
	Compare *Compare `protobuf:"bytes,22,opt,name=compare,json=Compare,proto3,oneof"`
}

type Node_Constant

type Node_Constant struct {
	Constant *Constant `protobuf:"bytes,10,opt,name=constant,json=Constant,proto3,oneof"`
}

type Node_Dict

type Node_Dict struct {
	Dict *Dict `protobuf:"bytes,20,opt,name=dict,json=Dict,proto3,oneof"`
}

type Node_Expr

type Node_Expr struct {
	Expr *Expr `protobuf:"bytes,13,opt,name=expr,json=Expr,proto3,oneof"`
}

type Node_For

type Node_For struct {
	For *For `protobuf:"bytes,27,opt,name=for,json=For,proto3,oneof"`
}

type Node_FunctionDef

type Node_FunctionDef struct {
	FunctionDef *FunctionDef `protobuf:"bytes,15,opt,name=function_def,json=FunctionDef,proto3,oneof"`
}

type Node_If

type Node_If struct {
	If *If `protobuf:"bytes,21,opt,name=if,json=If,proto3,oneof"`
}

type Node_Import

type Node_Import struct {
	Import *Import `protobuf:"bytes,2,opt,name=import,json=Import,proto3,oneof"`
}

type Node_ImportFrom

type Node_ImportFrom struct {
	ImportFrom *ImportFrom `protobuf:"bytes,3,opt,name=import_from,json=ImportFrom,proto3,oneof"`
}

type Node_ImportGroup

type Node_ImportGroup struct {
	ImportGroup *ImportGroup `protobuf:"bytes,30,opt,name=import_group,json=ImportGroup,proto3,oneof"`
}

type Node_Is

type Node_Is struct {
	Is *Is `protobuf:"bytes,24,opt,name=is,json=Is,proto3,oneof"`
}

type Node_Keyword

type Node_Keyword struct {
	Keyword *Keyword `protobuf:"bytes,25,opt,name=keyword,json=Keyword,proto3,oneof"`
}

type Node_Module

type Node_Module struct {
	Module *Module `protobuf:"bytes,4,opt,name=module,json=Module,proto3,oneof"`
}

type Node_Name

type Node_Name struct {
	Name *Name `protobuf:"bytes,7,opt,name=name,json=Name,proto3,oneof"`
}

type Node_Pass

type Node_Pass struct {
	Pass *Pass `protobuf:"bytes,19,opt,name=pass,json=Pass,proto3,oneof"`
}

type Node_Return

type Node_Return struct {
	Return *Return `protobuf:"bytes,23,opt,name=return,json=Return,proto3,oneof"`
}

type Node_Subscript

type Node_Subscript struct {
	Subscript *Subscript `protobuf:"bytes,8,opt,name=subscript,json=Subscript,proto3,oneof"`
}

type Node_Yield

type Node_Yield struct {
	Yield *Yield `protobuf:"bytes,26,opt,name=yield,json=Yield,proto3,oneof"`
}

type Pass

type Pass struct {
	// contains filtered or unexported fields
}

func (*Pass) Descriptor deprecated

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

Deprecated: Use Pass.ProtoReflect.Descriptor instead.

func (*Pass) ProtoMessage

func (*Pass) ProtoMessage()

func (*Pass) ProtoReflect

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

func (*Pass) Reset

func (x *Pass) Reset()

func (*Pass) String

func (x *Pass) String() string

type Return

type Return struct {
	Value *Node `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Return) Descriptor deprecated

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

Deprecated: Use Return.ProtoReflect.Descriptor instead.

func (*Return) GetValue

func (x *Return) GetValue() *Node

func (*Return) ProtoMessage

func (*Return) ProtoMessage()

func (*Return) ProtoReflect

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

func (*Return) Reset

func (x *Return) Reset()

func (*Return) String

func (x *Return) String() string

type Subscript

type Subscript struct {
	Value *Name `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Slice *Node `protobuf:"bytes,2,opt,name=slice,proto3" json:"slice,omitempty"`
	// contains filtered or unexported fields
}

func (*Subscript) Descriptor deprecated

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

Deprecated: Use Subscript.ProtoReflect.Descriptor instead.

func (*Subscript) GetSlice

func (x *Subscript) GetSlice() *Node

func (*Subscript) GetValue

func (x *Subscript) GetValue() *Name

func (*Subscript) ProtoMessage

func (*Subscript) ProtoMessage()

func (*Subscript) ProtoReflect

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

func (*Subscript) Reset

func (x *Subscript) Reset()

func (*Subscript) String

func (x *Subscript) String() string

type Yield

type Yield struct {
	Value *Node `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Yield) Descriptor deprecated

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

Deprecated: Use Yield.ProtoReflect.Descriptor instead.

func (*Yield) GetValue

func (x *Yield) GetValue() *Node

func (*Yield) ProtoMessage

func (*Yield) ProtoMessage()

func (*Yield) ProtoReflect

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

func (*Yield) Reset

func (x *Yield) Reset()

func (*Yield) String

func (x *Yield) String() string

Jump to

Keyboard shortcuts

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