Versions in this module Expand all Collapse all v1 v1.3.0 Jan 22, 2025 v1.2.0 Nov 2, 2023 Changes in this version + var File_ast_ast_proto protoreflect.FileDescriptor + type Alias struct + Name string + func (*Alias) Descriptor() ([]byte, []int) + func (*Alias) ProtoMessage() + func (x *Alias) GetName() string + func (x *Alias) ProtoReflect() protoreflect.Message + func (x *Alias) Reset() + func (x *Alias) String() string + type AnnAssign struct + Annotation *Node + Comment string + Simple int32 + Target *Name + func (*AnnAssign) Descriptor() ([]byte, []int) + func (*AnnAssign) ProtoMessage() + func (x *AnnAssign) GetAnnotation() *Node + func (x *AnnAssign) GetComment() string + func (x *AnnAssign) GetSimple() int32 + func (x *AnnAssign) GetTarget() *Name + func (x *AnnAssign) ProtoReflect() protoreflect.Message + func (x *AnnAssign) Reset() + func (x *AnnAssign) String() string + type Arg struct + Annotation *Node + Arg string + func (*Arg) Descriptor() ([]byte, []int) + func (*Arg) ProtoMessage() + func (x *Arg) GetAnnotation() *Node + func (x *Arg) GetArg() string + func (x *Arg) ProtoReflect() protoreflect.Message + func (x *Arg) Reset() + func (x *Arg) String() string + type Arguments struct + Args []*Arg + KwOnlyArgs []*Arg + func (*Arguments) Descriptor() ([]byte, []int) + func (*Arguments) ProtoMessage() + func (x *Arguments) GetArgs() []*Arg + func (x *Arguments) GetKwOnlyArgs() []*Arg + func (x *Arguments) ProtoReflect() protoreflect.Message + func (x *Arguments) Reset() + func (x *Arguments) String() string + type Assign struct + Comment string + Targets []*Node + Value *Node + func (*Assign) Descriptor() ([]byte, []int) + func (*Assign) ProtoMessage() + func (x *Assign) GetComment() string + func (x *Assign) GetTargets() []*Node + func (x *Assign) GetValue() *Node + func (x *Assign) ProtoReflect() protoreflect.Message + func (x *Assign) Reset() + func (x *Assign) String() string + type AsyncFor struct + Body []*Node + Iter *Node + Target *Node + func (*AsyncFor) Descriptor() ([]byte, []int) + func (*AsyncFor) ProtoMessage() + func (x *AsyncFor) GetBody() []*Node + func (x *AsyncFor) GetIter() *Node + func (x *AsyncFor) GetTarget() *Node + func (x *AsyncFor) ProtoReflect() protoreflect.Message + func (x *AsyncFor) Reset() + func (x *AsyncFor) String() string + type AsyncFunctionDef struct + Args *Arguments + Body []*Node + Name string + Returns *Node + func (*AsyncFunctionDef) Descriptor() ([]byte, []int) + func (*AsyncFunctionDef) ProtoMessage() + func (x *AsyncFunctionDef) GetArgs() *Arguments + func (x *AsyncFunctionDef) GetBody() []*Node + func (x *AsyncFunctionDef) GetName() string + func (x *AsyncFunctionDef) GetReturns() *Node + func (x *AsyncFunctionDef) ProtoReflect() protoreflect.Message + func (x *AsyncFunctionDef) Reset() + func (x *AsyncFunctionDef) String() string + type Attribute struct + Attr string + Value *Node + func (*Attribute) Descriptor() ([]byte, []int) + func (*Attribute) ProtoMessage() + func (x *Attribute) GetAttr() string + func (x *Attribute) GetValue() *Node + func (x *Attribute) ProtoReflect() protoreflect.Message + func (x *Attribute) Reset() + func (x *Attribute) String() string + type Await struct + Value *Node + func (*Await) Descriptor() ([]byte, []int) + func (*Await) ProtoMessage() + func (x *Await) GetValue() *Node + func (x *Await) ProtoReflect() protoreflect.Message + func (x *Await) Reset() + func (x *Await) String() string + type Call struct + Args []*Node + Func *Node + Keywords []*Keyword + func (*Call) Descriptor() ([]byte, []int) + func (*Call) ProtoMessage() + func (x *Call) GetArgs() []*Node + func (x *Call) GetFunc() *Node + func (x *Call) GetKeywords() []*Keyword + func (x *Call) ProtoReflect() protoreflect.Message + func (x *Call) Reset() + func (x *Call) String() string + type ClassDef struct + Bases []*Node + Body []*Node + DecoratorList []*Node + Keywords []*Node + Name string + func (*ClassDef) Descriptor() ([]byte, []int) + func (*ClassDef) ProtoMessage() + 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 (x *ClassDef) ProtoReflect() protoreflect.Message + func (x *ClassDef) Reset() + func (x *ClassDef) String() string + type Comment struct + Text string + func (*Comment) Descriptor() ([]byte, []int) + func (*Comment) ProtoMessage() + func (x *Comment) GetText() string + func (x *Comment) ProtoReflect() protoreflect.Message + func (x *Comment) Reset() + func (x *Comment) String() string + type Compare struct + Comparators []*Node + Left *Node + Ops []*Node + func (*Compare) Descriptor() ([]byte, []int) + func (*Compare) ProtoMessage() + func (x *Compare) GetComparators() []*Node + func (x *Compare) GetLeft() *Node + func (x *Compare) GetOps() []*Node + func (x *Compare) ProtoReflect() protoreflect.Message + func (x *Compare) Reset() + func (x *Compare) String() string + type Constant struct + Value isConstant_Value + func (*Constant) Descriptor() ([]byte, []int) + func (*Constant) ProtoMessage() + func (m *Constant) GetValue() isConstant_Value + func (x *Constant) GetInt() int32 + func (x *Constant) GetNone() bool + func (x *Constant) GetStr() string + func (x *Constant) ProtoReflect() protoreflect.Message + func (x *Constant) Reset() + func (x *Constant) String() string + type Constant_Int struct + Int int32 + type Constant_None struct + None bool + type Constant_Str struct + Str string + type Dict struct + Keys []*Node + Values []*Node + func (*Dict) Descriptor() ([]byte, []int) + func (*Dict) ProtoMessage() + func (x *Dict) GetKeys() []*Node + func (x *Dict) GetValues() []*Node + func (x *Dict) ProtoReflect() protoreflect.Message + func (x *Dict) Reset() + func (x *Dict) String() string + type Expr struct + Value *Node + func (*Expr) Descriptor() ([]byte, []int) + func (*Expr) ProtoMessage() + func (x *Expr) GetValue() *Node + func (x *Expr) ProtoReflect() protoreflect.Message + func (x *Expr) Reset() + func (x *Expr) String() string + type For struct + Body []*Node + Iter *Node + Target *Node + func (*For) Descriptor() ([]byte, []int) + func (*For) ProtoMessage() + func (x *For) GetBody() []*Node + func (x *For) GetIter() *Node + func (x *For) GetTarget() *Node + func (x *For) ProtoReflect() protoreflect.Message + func (x *For) Reset() + func (x *For) String() string + type FunctionDef struct + Args *Arguments + Body []*Node + Name string + Returns *Node + func (*FunctionDef) Descriptor() ([]byte, []int) + func (*FunctionDef) ProtoMessage() + func (x *FunctionDef) GetArgs() *Arguments + func (x *FunctionDef) GetBody() []*Node + func (x *FunctionDef) GetName() string + func (x *FunctionDef) GetReturns() *Node + func (x *FunctionDef) ProtoReflect() protoreflect.Message + func (x *FunctionDef) Reset() + func (x *FunctionDef) String() string + type If struct + Body []*Node + OrElse []*Node + Test *Node + func (*If) Descriptor() ([]byte, []int) + func (*If) ProtoMessage() + func (x *If) GetBody() []*Node + func (x *If) GetOrElse() []*Node + func (x *If) GetTest() *Node + func (x *If) ProtoReflect() protoreflect.Message + func (x *If) Reset() + func (x *If) String() string + type Import struct + Names []*Node + func (*Import) Descriptor() ([]byte, []int) + func (*Import) ProtoMessage() + func (x *Import) GetNames() []*Node + func (x *Import) ProtoReflect() protoreflect.Message + func (x *Import) Reset() + func (x *Import) String() string + type ImportFrom struct + Level int32 + Module string + Names []*Node + func (*ImportFrom) Descriptor() ([]byte, []int) + func (*ImportFrom) ProtoMessage() + func (x *ImportFrom) GetLevel() int32 + func (x *ImportFrom) GetModule() string + func (x *ImportFrom) GetNames() []*Node + func (x *ImportFrom) ProtoReflect() protoreflect.Message + func (x *ImportFrom) Reset() + func (x *ImportFrom) String() string + type ImportGroup struct + Imports []*Node + func (*ImportGroup) Descriptor() ([]byte, []int) + func (*ImportGroup) ProtoMessage() + func (x *ImportGroup) GetImports() []*Node + func (x *ImportGroup) ProtoReflect() protoreflect.Message + func (x *ImportGroup) Reset() + func (x *ImportGroup) String() string + type Is struct + func (*Is) Descriptor() ([]byte, []int) + func (*Is) ProtoMessage() + func (x *Is) ProtoReflect() protoreflect.Message + func (x *Is) Reset() + func (x *Is) String() string + type Keyword struct + Arg string + Value *Node + func (*Keyword) Descriptor() ([]byte, []int) + func (*Keyword) ProtoMessage() + func (x *Keyword) GetArg() string + func (x *Keyword) GetValue() *Node + func (x *Keyword) ProtoReflect() protoreflect.Message + func (x *Keyword) Reset() + func (x *Keyword) String() string + type Module struct + Body []*Node + func (*Module) Descriptor() ([]byte, []int) + func (*Module) ProtoMessage() + func (x *Module) GetBody() []*Node + func (x *Module) ProtoReflect() protoreflect.Message + func (x *Module) Reset() + func (x *Module) String() string + type Name struct + Id string + func (*Name) Descriptor() ([]byte, []int) + func (*Name) ProtoMessage() + func (x *Name) GetId() string + func (x *Name) ProtoReflect() protoreflect.Message + func (x *Name) Reset() + func (x *Name) String() string + type Node struct + Node isNode_Node + func (*Node) Descriptor() ([]byte, []int) + func (*Node) ProtoMessage() + func (m *Node) GetNode() isNode_Node + 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 (x *Node) GetPass() *Pass + func (x *Node) GetReturn() *Return + func (x *Node) GetSubscript() *Subscript + func (x *Node) GetYield() *Yield + func (x *Node) ProtoReflect() protoreflect.Message + func (x *Node) Reset() + func (x *Node) String() string + type Node_Alias struct + Alias *Alias + type Node_AnnAssign struct + AnnAssign *AnnAssign + type Node_Arg struct + Arg *Arg + type Node_Arguments struct + Arguments *Arguments + type Node_Assign struct + Assign *Assign + type Node_AsyncFor struct + AsyncFor *AsyncFor + type Node_AsyncFunctionDef struct + AsyncFunctionDef *AsyncFunctionDef + type Node_Attribute struct + Attribute *Attribute + type Node_Await struct + Await *Await + type Node_Call struct + Call *Call + type Node_ClassDef struct + ClassDef *ClassDef + type Node_Comment struct + Comment *Comment + type Node_Compare struct + Compare *Compare + type Node_Constant struct + Constant *Constant + type Node_Dict struct + Dict *Dict + type Node_Expr struct + Expr *Expr + type Node_For struct + For *For + type Node_FunctionDef struct + FunctionDef *FunctionDef + type Node_If struct + If *If + type Node_Import struct + Import *Import + type Node_ImportFrom struct + ImportFrom *ImportFrom + type Node_ImportGroup struct + ImportGroup *ImportGroup + type Node_Is struct + Is *Is + type Node_Keyword struct + Keyword *Keyword + type Node_Module struct + Module *Module + type Node_Name struct + Name *Name + type Node_Pass struct + Pass *Pass + type Node_Return struct + Return *Return + type Node_Subscript struct + Subscript *Subscript + type Node_Yield struct + Yield *Yield + type Pass struct + func (*Pass) Descriptor() ([]byte, []int) + func (*Pass) ProtoMessage() + func (x *Pass) ProtoReflect() protoreflect.Message + func (x *Pass) Reset() + func (x *Pass) String() string + type Return struct + Value *Node + func (*Return) Descriptor() ([]byte, []int) + func (*Return) ProtoMessage() + func (x *Return) GetValue() *Node + func (x *Return) ProtoReflect() protoreflect.Message + func (x *Return) Reset() + func (x *Return) String() string + type Subscript struct + Slice *Node + Value *Name + func (*Subscript) Descriptor() ([]byte, []int) + func (*Subscript) ProtoMessage() + func (x *Subscript) GetSlice() *Node + func (x *Subscript) GetValue() *Name + func (x *Subscript) ProtoReflect() protoreflect.Message + func (x *Subscript) Reset() + func (x *Subscript) String() string + type Yield struct + Value *Node + func (*Yield) Descriptor() ([]byte, []int) + func (*Yield) ProtoMessage() + func (x *Yield) GetValue() *Node + func (x *Yield) ProtoReflect() protoreflect.Message + func (x *Yield) Reset() + func (x *Yield) String() string