Documentation ¶
Index ¶
- Variables
- type Alias
- type AnnAssign
- func (*AnnAssign) Descriptor() ([]byte, []int)deprecated
- func (x *AnnAssign) GetAnnotation() *Node
- func (x *AnnAssign) GetComment() string
- func (x *AnnAssign) GetSimple() int32
- func (x *AnnAssign) GetTarget() *Name
- func (*AnnAssign) ProtoMessage()
- func (x *AnnAssign) ProtoReflect() protoreflect.Message
- func (x *AnnAssign) Reset()
- func (x *AnnAssign) String() string
- type Arg
- type Arguments
- type Assign
- func (*Assign) Descriptor() ([]byte, []int)deprecated
- func (x *Assign) GetComment() string
- func (x *Assign) GetTargets() []*Node
- func (x *Assign) GetValue() *Node
- func (*Assign) ProtoMessage()
- func (x *Assign) ProtoReflect() protoreflect.Message
- func (x *Assign) Reset()
- func (x *Assign) String() string
- type AsyncFor
- func (*AsyncFor) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncFor) GetBody() []*Node
- func (x *AsyncFor) GetIter() *Node
- func (x *AsyncFor) GetTarget() *Node
- func (*AsyncFor) ProtoMessage()
- func (x *AsyncFor) ProtoReflect() protoreflect.Message
- func (x *AsyncFor) Reset()
- func (x *AsyncFor) String() string
- type AsyncFunctionDef
- func (*AsyncFunctionDef) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncFunctionDef) GetArgs() *Arguments
- func (x *AsyncFunctionDef) GetBody() []*Node
- func (x *AsyncFunctionDef) GetName() string
- func (x *AsyncFunctionDef) GetReturns() *Node
- func (*AsyncFunctionDef) ProtoMessage()
- func (x *AsyncFunctionDef) ProtoReflect() protoreflect.Message
- func (x *AsyncFunctionDef) Reset()
- func (x *AsyncFunctionDef) String() string
- type Attribute
- type Await
- type Call
- type ClassDef
- func (*ClassDef) Descriptor() ([]byte, []int)deprecated
- func (x *ClassDef) GetBases() []*Node
- func (x *ClassDef) GetBody() []*Node
- func (x *ClassDef) GetDecoratorList() []*Node
- func (x *ClassDef) GetKeywords() []*Node
- func (x *ClassDef) GetName() string
- func (*ClassDef) ProtoMessage()
- func (x *ClassDef) ProtoReflect() protoreflect.Message
- func (x *ClassDef) Reset()
- func (x *ClassDef) String() string
- type Comment
- type Compare
- func (*Compare) Descriptor() ([]byte, []int)deprecated
- func (x *Compare) GetComparators() []*Node
- func (x *Compare) GetLeft() *Node
- func (x *Compare) GetOps() []*Node
- func (*Compare) ProtoMessage()
- func (x *Compare) ProtoReflect() protoreflect.Message
- func (x *Compare) Reset()
- func (x *Compare) String() string
- type Constant
- func (*Constant) Descriptor() ([]byte, []int)deprecated
- func (x *Constant) GetInt() int32
- func (x *Constant) GetNone() bool
- func (x *Constant) GetStr() string
- func (m *Constant) GetValue() isConstant_Value
- func (*Constant) ProtoMessage()
- func (x *Constant) ProtoReflect() protoreflect.Message
- func (x *Constant) Reset()
- func (x *Constant) String() string
- type Constant_Int
- type Constant_None
- type Constant_Str
- type Dict
- type Expr
- type For
- type FunctionDef
- func (*FunctionDef) Descriptor() ([]byte, []int)deprecated
- func (x *FunctionDef) GetArgs() *Arguments
- func (x *FunctionDef) GetBody() []*Node
- func (x *FunctionDef) GetName() string
- func (x *FunctionDef) GetReturns() *Node
- func (*FunctionDef) ProtoMessage()
- func (x *FunctionDef) ProtoReflect() protoreflect.Message
- func (x *FunctionDef) Reset()
- func (x *FunctionDef) String() string
- type If
- type Import
- type ImportFrom
- func (*ImportFrom) Descriptor() ([]byte, []int)deprecated
- func (x *ImportFrom) GetLevel() int32
- func (x *ImportFrom) GetModule() string
- func (x *ImportFrom) GetNames() []*Node
- func (*ImportFrom) ProtoMessage()
- func (x *ImportFrom) ProtoReflect() protoreflect.Message
- func (x *ImportFrom) Reset()
- func (x *ImportFrom) String() string
- type ImportGroup
- type Is
- type Keyword
- type Module
- type Name
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAlias() *Alias
- func (x *Node) GetAnnAssign() *AnnAssign
- func (x *Node) GetArg() *Arg
- func (x *Node) GetArguments() *Arguments
- func (x *Node) GetAssign() *Assign
- func (x *Node) GetAsyncFor() *AsyncFor
- func (x *Node) GetAsyncFunctionDef() *AsyncFunctionDef
- func (x *Node) GetAttribute() *Attribute
- func (x *Node) GetAwait() *Await
- func (x *Node) GetCall() *Call
- func (x *Node) GetClassDef() *ClassDef
- func (x *Node) GetComment() *Comment
- func (x *Node) GetCompare() *Compare
- func (x *Node) GetConstant() *Constant
- func (x *Node) GetDict() *Dict
- func (x *Node) GetExpr() *Expr
- func (x *Node) GetFor() *For
- func (x *Node) GetFunctionDef() *FunctionDef
- func (x *Node) GetIf() *If
- func (x *Node) GetImport() *Import
- func (x *Node) GetImportFrom() *ImportFrom
- func (x *Node) GetImportGroup() *ImportGroup
- func (x *Node) GetIs() *Is
- func (x *Node) GetKeyword() *Keyword
- func (x *Node) GetModule() *Module
- func (x *Node) GetName() *Name
- func (m *Node) GetNode() isNode_Node
- func (x *Node) GetPass() *Pass
- func (x *Node) GetReturn() *Return
- func (x *Node) GetSubscript() *Subscript
- func (x *Node) GetYield() *Yield
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type Node_Alias
- type Node_AnnAssign
- type Node_Arg
- type Node_Arguments
- type Node_Assign
- type Node_AsyncFor
- type Node_AsyncFunctionDef
- type Node_Attribute
- type Node_Await
- type Node_Call
- type Node_ClassDef
- type Node_Comment
- type Node_Compare
- type Node_Constant
- type Node_Dict
- type Node_Expr
- type Node_For
- type Node_FunctionDef
- type Node_If
- type Node_Import
- type Node_ImportFrom
- type Node_ImportGroup
- type Node_Is
- type Node_Keyword
- type Node_Module
- type Node_Name
- type Node_Pass
- type Node_Return
- type Node_Subscript
- type Node_Yield
- type Pass
- type Return
- type Subscript
- type Yield
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Alias) ProtoMessage()
func (*Alias) ProtoReflect ¶
func (x *Alias) ProtoReflect() protoreflect.Message
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) GetAnnotation ¶
func (*AnnAssign) GetComment ¶
func (*AnnAssign) ProtoMessage ¶
func (*AnnAssign) ProtoMessage()
func (*AnnAssign) ProtoReflect ¶
func (x *AnnAssign) ProtoReflect() protoreflect.Message
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) GetAnnotation ¶
func (*Arg) ProtoMessage ¶
func (*Arg) ProtoMessage()
func (*Arg) ProtoReflect ¶
func (x *Arg) ProtoReflect() protoreflect.Message
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) GetKwOnlyArgs ¶
func (*Arguments) ProtoMessage ¶
func (*Arguments) ProtoMessage()
func (*Arguments) ProtoReflect ¶
func (x *Arguments) ProtoReflect() protoreflect.Message
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) GetComment ¶
func (*Assign) GetTargets ¶
func (*Assign) ProtoMessage ¶
func (*Assign) ProtoMessage()
func (*Assign) ProtoReflect ¶
func (x *Assign) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*AsyncFor) ProtoMessage()
func (*AsyncFor) ProtoReflect ¶
func (x *AsyncFor) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Await) ProtoMessage()
func (*Await) ProtoReflect ¶
func (x *Await) ProtoReflect() protoreflect.Message
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) GetKeywords ¶
func (*Call) ProtoMessage ¶
func (*Call) ProtoMessage()
func (*Call) ProtoReflect ¶
func (x *Call) ProtoReflect() protoreflect.Message
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) GetDecoratorList ¶
func (*ClassDef) GetKeywords ¶
func (*ClassDef) ProtoMessage ¶
func (*ClassDef) ProtoMessage()
func (*ClassDef) ProtoReflect ¶
func (x *ClassDef) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
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) GetComparators ¶
func (*Compare) ProtoMessage ¶
func (*Compare) ProtoMessage()
func (*Compare) ProtoReflect ¶
func (x *Compare) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Constant) ProtoMessage()
func (*Constant) ProtoReflect ¶
func (x *Constant) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Dict) ProtoMessage()
func (*Dict) ProtoReflect ¶
func (x *Dict) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Expr) ProtoMessage()
func (*Expr) ProtoReflect ¶
func (x *Expr) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*For) ProtoMessage()
func (*For) ProtoReflect ¶
func (x *For) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*If) ProtoMessage()
func (*If) ProtoReflect ¶
func (x *If) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Import) ProtoMessage()
func (*Import) ProtoReflect ¶
func (x *Import) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Is) ProtoMessage()
func (*Is) ProtoReflect ¶
func (x *Is) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Keyword) ProtoMessage()
func (*Keyword) ProtoReflect ¶
func (x *Keyword) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Name) ProtoMessage()
func (*Name) ProtoReflect ¶
func (x *Name) ProtoReflect() protoreflect.Message
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) GetAnnAssign ¶
func (*Node) GetArguments ¶
func (*Node) GetAsyncFor ¶
func (*Node) GetAsyncFunctionDef ¶
func (x *Node) GetAsyncFunctionDef() *AsyncFunctionDef
func (*Node) GetAttribute ¶
func (*Node) GetClassDef ¶
func (*Node) GetComment ¶
func (*Node) GetCompare ¶
func (*Node) GetConstant ¶
func (*Node) GetFunctionDef ¶
func (x *Node) GetFunctionDef() *FunctionDef
func (*Node) GetImportFrom ¶
func (x *Node) GetImportFrom() *ImportFrom
func (*Node) GetImportGroup ¶
func (x *Node) GetImportGroup() *ImportGroup
func (*Node) GetKeyword ¶
func (*Node) GetSubscript ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Pass) ProtoMessage()
func (*Pass) ProtoReflect ¶
func (x *Pass) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Return) ProtoMessage()
func (*Return) ProtoReflect ¶
func (x *Return) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Subscript) ProtoMessage()
func (*Subscript) ProtoReflect ¶
func (x *Subscript) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Yield) ProtoMessage()
func (*Yield) ProtoReflect ¶
func (x *Yield) ProtoReflect() protoreflect.Message