Versions in this module Expand all Collapse all v0 v0.0.1 Feb 26, 2023 Changes in this version + const Add + const And + const AugLoad + const AugStore + const BitAnd + const BitOr + const BitXor + const Del + const Div + const Eq + const FloorDiv + const Gt + const GtE + const In + const Invert + const Is + const IsNot + const LShift + const Load + const Lt + const LtE + const Modulo + const Mult + const Not + const NotEq + const NotIn + const Or + const Param + const Pow + const RShift + const Store + const Sub + const UAdd + const USub + var ASTType = py.ObjectType.NewTypeFlags("AST", "AST Node", nil, nil, ...) + var AliasType = ASTType.NewType("Alias", "Alias Node", nil, nil) + var ArgType = ASTType.NewType("Arg", "Arg Node", nil, nil) + var ArgumentsType = ASTType.NewType("Arguments", "Arguments Node", nil, nil) + var AssertType = StmtBaseType.NewType("Assert", "Assert Node", nil, nil) + var AssignType = StmtBaseType.NewType("Assign", "Assign Node", nil, nil) + var AttributeType = ExprBaseType.NewType("Attribute", "Attribute Node", nil, nil) + var AugAssignType = StmtBaseType.NewType("AugAssign", "AugAssign Node", nil, nil) + var BinOpType = ExprBaseType.NewType("BinOp", "BinOp Node", nil, nil) + var BoolOpType = ExprBaseType.NewType("BoolOp", "BoolOp Node", nil, nil) + var BreakType = StmtBaseType.NewType("Break", "Break Node", nil, nil) + var BytesType = ExprBaseType.NewType("Bytes", "Bytes Node", nil, nil) + var CallType = ExprBaseType.NewType("Call", "Call Node", nil, nil) + var ClassDefType = StmtBaseType.NewType("ClassDef", "ClassDef Node", nil, nil) + var CompareType = ExprBaseType.NewType("Compare", "Compare Node", nil, nil) + var ContinueType = StmtBaseType.NewType("Continue", "Continue Node", nil, nil) + var DeleteType = StmtBaseType.NewType("Delete", "Delete Node", nil, nil) + var DictCompType = ExprBaseType.NewType("DictComp", "DictComp Node", nil, nil) + var DictType = ExprBaseType.NewType("Dict", "Dict Node", nil, nil) + var EllipsisType = ExprBaseType.NewType("Ellipsis", "Ellipsis Node", nil, nil) + var ExceptHandlerType = ASTType.NewType("ExceptHandler", "ExceptHandler Node", nil, nil) + var ExprBaseType = ASTType.NewType("Expr", "Expr Node", nil, nil) + var ExprStmtType = StmtBaseType.NewType("ExprStmt", "ExprStmt Node", nil, nil) + var ExpressionType = ModBaseType.NewType("Expression", "Expression Node", nil, nil) + var ExtSliceType = SliceBaseType.NewType("ExtSlice", "ExtSlice Node", nil, nil) + var ForType = StmtBaseType.NewType("For", "For Node", nil, nil) + var FunctionDefType = StmtBaseType.NewType("FunctionDef", "FunctionDef Node", nil, nil) + var GeneratorExpType = ExprBaseType.NewType("GeneratorExp", "GeneratorExp Node", nil, nil) + var GlobalType = StmtBaseType.NewType("Global", "Global Node", nil, nil) + var IfExpType = ExprBaseType.NewType("IfExp", "IfExp Node", nil, nil) + var IfType = StmtBaseType.NewType("If", "If Node", nil, nil) + var ImportFromType = StmtBaseType.NewType("ImportFrom", "ImportFrom Node", nil, nil) + var ImportType = StmtBaseType.NewType("Import", "Import Node", nil, nil) + var IndexType = SliceBaseType.NewType("Index", "Index Node", nil, nil) + var InteractiveType = ModBaseType.NewType("Interactive", "Interactive Node", nil, nil) + var KeywordType = ASTType.NewType("Keyword", "Keyword Node", nil, nil) + var LambdaType = ExprBaseType.NewType("Lambda", "Lambda Node", nil, nil) + var ListCompType = ExprBaseType.NewType("ListComp", "ListComp Node", nil, nil) + var ListType = ExprBaseType.NewType("List", "List Node", nil, nil) + var ModBaseType = ASTType.NewType("Mod", "Mod Node", nil, nil) + var ModuleType = ModBaseType.NewType("Module", "Module Node", nil, nil) + var NameConstantType = ExprBaseType.NewType("NameConstant", "NameConstant Node", nil, nil) + var NameType = ExprBaseType.NewType("Name", "Name Node", nil, nil) + var NonlocalType = StmtBaseType.NewType("Nonlocal", "Nonlocal Node", nil, nil) + var NumType = ExprBaseType.NewType("Num", "Num Node", nil, nil) + var PassType = StmtBaseType.NewType("Pass", "Pass Node", nil, nil) + var RaiseType = StmtBaseType.NewType("Raise", "Raise Node", nil, nil) + var ReturnType = StmtBaseType.NewType("Return", "Return Node", nil, nil) + var SetCompType = ExprBaseType.NewType("SetComp", "SetComp Node", nil, nil) + var SetType = ExprBaseType.NewType("Set", "Set Node", nil, nil) + var SliceBaseType = ASTType.NewType("SliceBase", "SliceBase Node", nil, nil) + var SliceType = SliceBaseType.NewType("Slice", "Slice Node", nil, nil) + var StarredType = ExprBaseType.NewType("Starred", "Starred Node", nil, nil) + var StmtBaseType = ASTType.NewType("Stmt", "Stmt Node", nil, nil) + var StrType = ExprBaseType.NewType("Str", "Str Node", nil, nil) + var SubscriptType = ExprBaseType.NewType("Subscript", "Subscript Node", nil, nil) + var SuiteType = ModBaseType.NewType("Suite", "Suite Node", nil, nil) + var TryType = StmtBaseType.NewType("Try", "Try Node", nil, nil) + var TupleType = ExprBaseType.NewType("Tuple", "Tuple Node", nil, nil) + var UnaryOpType = ExprBaseType.NewType("UnaryOp", "UnaryOp Node", nil, nil) + var WhileType = StmtBaseType.NewType("While", "While Node", nil, nil) + var WithItemType = ASTType.NewType("WithItem", "WithItem Node", nil, nil) + var WithType = StmtBaseType.NewType("With", "With Node", nil, nil) + var YieldFromType = ExprBaseType.NewType("YieldFrom", "YieldFrom Node", nil, nil) + var YieldType = ExprBaseType.NewType("Yield", "Yield Node", nil, nil) + func Dump(ast Ast) string + func Walk(ast Ast, Visit func(Ast) bool) + type AST struct + func (o *AST) Type() *py.Type + type Alias struct + AsName Identifier + Name Identifier + func (o *Alias) Type() *py.Type + type Arg struct + Annotation Expr + Arg Identifier + func (o *Arg) Type() *py.Type + type Arguments struct + Args []*Arg + Defaults []Expr + KwDefaults []Expr + Kwarg *Arg + Kwonlyargs []*Arg + Vararg *Arg + func (o *Arguments) Type() *py.Type + type Assert struct + Msg Expr + Test Expr + func (o *Assert) Type() *py.Type + type Assign struct + Targets []Expr + Value Expr + func (o *Assign) Type() *py.Type + type Ast interface + GetColOffset func() int + GetLineno func() int + type Attribute struct + Attr Identifier + Ctx ExprContext + Value Expr + func (o *Attribute) SetCtx(Ctx ExprContext) + func (o *Attribute) Type() *py.Type + type AugAssign struct + Op OperatorNumber + Target Expr + Value Expr + func (o *AugAssign) Type() *py.Type + type BinOp struct + Left Expr + Op OperatorNumber + Right Expr + func (o *BinOp) Type() *py.Type + type BoolOp struct + Op BoolOpNumber + Values []Expr + func (o *BoolOp) Type() *py.Type + type BoolOpNumber int + func (o BoolOpNumber) String() string + type Break struct + func (o *Break) Type() *py.Type + type Bytes struct + S py.Bytes + func (o *Bytes) Type() *py.Type + type Call struct + Args []Expr + Func Expr + Keywords []*Keyword + Kwargs Expr + Starargs Expr + func (o *Call) Type() *py.Type + type ClassDef struct + Bases []Expr + Body []Stmt + DecoratorList []Expr + Keywords []*Keyword + Kwargs Expr + Name Identifier + Starargs Expr + func (o *ClassDef) Type() *py.Type + type CmpOp int + func (o CmpOp) String() string + type Compare struct + Comparators []Expr + Left Expr + Ops []CmpOp + func (o *Compare) Type() *py.Type + type Comprehension struct + Ifs []Expr + Iter Expr + Target Expr + type Continue struct + func (o *Continue) Type() *py.Type + type Delete struct + Targets []Expr + func (o *Delete) Type() *py.Type + type Dict struct + Keys []Expr + Values []Expr + func (o *Dict) Type() *py.Type + type DictComp struct + Generators []Comprehension + Key Expr + Value Expr + func (o *DictComp) Type() *py.Type + type Ellipsis struct + func (o *Ellipsis) Type() *py.Type + type ExceptHandler struct + Body []Stmt + ExprType Expr + Name Identifier + func (o *ExceptHandler) Type() *py.Type + type Expr interface + type ExprBase struct + func (o *ExprBase) Type() *py.Type + type ExprContext int + func (o ExprContext) String() string + type ExprStmt struct + Value Expr + func (o *ExprStmt) Type() *py.Type + type Expression struct + Body Expr + func (o *Expression) Type() *py.Type + type ExtSlice struct + Dims []Slicer + func (o *ExtSlice) Type() *py.Type + type For struct + Body []Stmt + Iter Expr + Orelse []Stmt + Target Expr + func (o *For) Type() *py.Type + type FunctionDef struct + Args *Arguments + Body []Stmt + DecoratorList []Expr + Name Identifier + Returns Expr + func (o *FunctionDef) Type() *py.Type + type GeneratorExp struct + Elt Expr + Generators []Comprehension + func (o *GeneratorExp) Type() *py.Type + type Global struct + Names []Identifier + func (o *Global) Type() *py.Type + type Identifier py.String + type If struct + Body []Stmt + Orelse []Stmt + Test Expr + func (o *If) Type() *py.Type + type IfExp struct + Body Expr + Orelse Expr + Test Expr + func (o *IfExp) Type() *py.Type + type Import struct + Names []*Alias + func (o *Import) Type() *py.Type + type ImportFrom struct + Level int + Module Identifier + Names []*Alias + func (o *ImportFrom) Type() *py.Type + type Index struct + Value Expr + func (o *Index) Type() *py.Type + type Interactive struct + Body []Stmt + func (o *Interactive) Type() *py.Type + type Keyword struct + Arg Identifier + Value Expr + func (o *Keyword) Type() *py.Type + type Lambda struct + Args *Arguments + Body Expr + func (o *Lambda) Type() *py.Type + type List struct + Ctx ExprContext + Elts []Expr + func (o *List) SetCtx(Ctx ExprContext) + func (o *List) Type() *py.Type + type ListComp struct + Elt Expr + Generators []Comprehension + func (o *ListComp) Type() *py.Type + type Mod interface + type ModBase struct + func (o *ModBase) Type() *py.Type + type Module struct + Body []Stmt + func (o *Module) Type() *py.Type + type Name struct + Ctx ExprContext + Id Identifier + func (o *Name) SetCtx(Ctx ExprContext) + func (o *Name) Type() *py.Type + type NameConstant struct + Value Singleton + func (o *NameConstant) Type() *py.Type + type Nonlocal struct + Names []Identifier + func (o *Nonlocal) Type() *py.Type + type Num struct + N Object + func (o *Num) Type() *py.Type + type Object py.Object + type OperatorNumber int + func (o OperatorNumber) String() string + type Pass struct + func (o *Pass) Type() *py.Type + type Pos struct + ColOffset int + Lineno int + func (o *Pos) GetColOffset() int + func (o *Pos) GetLineno() int + type Raise struct + Cause Expr + Exc Expr + func (o *Raise) Type() *py.Type + type Return struct + Value Expr + func (o *Return) Type() *py.Type + type Set struct + Elts []Expr + func (o *Set) Type() *py.Type + type SetComp struct + Elt Expr + Generators []Comprehension + func (o *SetComp) Type() *py.Type + type SetCtxer interface + SetCtx func(ExprContext) + type Singleton py.Object + type Slice struct + Lower Expr + Step Expr + Upper Expr + func (o *Slice) Type() *py.Type + type SliceBase struct + func (o *SliceBase) Type() *py.Type + type Slicer interface + type Starred struct + Ctx ExprContext + Value Expr + func (o *Starred) SetCtx(Ctx ExprContext) + func (o *Starred) Type() *py.Type + type Stmt interface + type StmtBase struct + func (o *StmtBase) Type() *py.Type + type Str struct + S py.String + func (o *Str) Type() *py.Type + type String py.String + type Subscript struct + Ctx ExprContext + Slice Slicer + Value Expr + func (o *Subscript) SetCtx(Ctx ExprContext) + func (o *Subscript) Type() *py.Type + type Suite struct + Body []Stmt + func (o *Suite) Type() *py.Type + type Try struct + Body []Stmt + Finalbody []Stmt + Handlers []*ExceptHandler + Orelse []Stmt + func (o *Try) Type() *py.Type + type Tuple struct + Ctx ExprContext + Elts []Expr + func (o *Tuple) SetCtx(Ctx ExprContext) + func (o *Tuple) Type() *py.Type + type UnaryOp struct + Op UnaryOpNumber + Operand Expr + func (o *UnaryOp) Type() *py.Type + type UnaryOpNumber int + func (o UnaryOpNumber) String() string + type While struct + Body []Stmt + Orelse []Stmt + Test Expr + func (o *While) Type() *py.Type + type With struct + Body []Stmt + Items []*WithItem + func (o *With) Type() *py.Type + type WithItem struct + ContextExpr Expr + OptionalVars Expr + func (o *WithItem) Type() *py.Type + type Yield struct + Value Expr + func (o *Yield) Type() *py.Type + type YieldFrom struct + Value Expr + func (o *YieldFrom) Type() *py.Type