{"modulePath":"github.com/ncw/gpython","version":"v0.0.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ast\n\n## Constants\n\n```go\nconst (\n\tLoad = ExprContext(iota + 1)\n\tStore\n\tDel\n\tAugLoad\n\tAugStore\n\tParam\n)\n```\n\n```go\nconst (\n\tAnd = BoolOpNumber(iota + 1)\n\tOr\n)\n```\n\n```go\nconst (\n\tAdd = OperatorNumber(iota + 1)\n\tSub\n\tMult\n\tDiv\n\tModulo\n\tPow\n\tLShift\n\tRShift\n\tBitOr\n\tBitXor\n\tBitAnd\n\tFloorDiv\n)\n```\n\n```go\nconst (\n\tInvert = UnaryOpNumber(iota + 1)\n\tNot\n\tUAdd\n\tUSub\n)\n```\n\n```go\nconst (\n\tEq = CmpOp(iota + 1)\n\tNotEq\n\tLt\n\tLtE\n\tGt\n\tGtE\n\tIs\n\tIsNot\n\tIn\n\tNotIn\n)\n```\n\n## Variables\n\n```go\nvar ASTType = py.ObjectType.NewTypeFlags(\"AST\", \"AST Node\", nil, nil, py.ObjectType.Flags|py.TPFLAGS_BASE_EXC_SUBCLASS)\n```\nPython types\n\n```go\nvar AliasType = ASTType.NewType(\"Alias\", \"Alias Node\", nil, nil)\n```\n\n```go\nvar ArgType = ASTType.NewType(\"Arg\", \"Arg Node\", nil, nil)\n```\n\n```go\nvar ArgumentsType = ASTType.NewType(\"Arguments\", \"Arguments Node\", nil, nil)\n```\n\n```go\nvar AssertType = StmtBaseType.NewType(\"Assert\", \"Assert Node\", nil, nil)\n```\n\n```go\nvar AssignType = StmtBaseType.NewType(\"Assign\", \"Assign Node\", nil, nil)\n```\n\n```go\nvar AttributeType = ExprBaseType.NewType(\"Attribute\", \"Attribute Node\", nil, nil)\n```\n\n```go\nvar AugAssignType = StmtBaseType.NewType(\"AugAssign\", \"AugAssign Node\", nil, nil)\n```\n\n```go\nvar BinOpType = ExprBaseType.NewType(\"BinOp\", \"BinOp Node\", nil, nil)\n```\n\n```go\nvar BoolOpType = ExprBaseType.NewType(\"BoolOp\", \"BoolOp Node\", nil, nil)\n```\n\n```go\nvar BreakType = StmtBaseType.NewType(\"Break\", \"Break Node\", nil, nil)\n```\n\n```go\nvar BytesType = ExprBaseType.NewType(\"Bytes\", \"Bytes Node\", nil, nil)\n```\n\n```go\nvar CallType = ExprBaseType.NewType(\"Call\", \"Call Node\", nil, nil)\n```\n\n```go\nvar ClassDefType = StmtBaseType.NewType(\"ClassDef\", \"ClassDef Node\", nil, nil)\n```\n\n```go\nvar CompareType = ExprBaseType.NewType(\"Compare\", \"Compare Node\", nil, nil)\n```\n\n```go\nvar ContinueType = StmtBaseType.NewType(\"Continue\", \"Continue Node\", nil, nil)\n```\n\n```go\nvar DeleteType = StmtBaseType.NewType(\"Delete\", \"Delete Node\", nil, nil)\n```\n\n```go\nvar DictCompType = ExprBaseType.NewType(\"DictComp\", \"DictComp Node\", nil, nil)\n```\n\n```go\nvar DictType = ExprBaseType.NewType(\"Dict\", \"Dict Node\", nil, nil)\n```\n\n```go\nvar EllipsisType = ExprBaseType.NewType(\"Ellipsis\", \"Ellipsis Node\", nil, nil)\n```\n\n```go\nvar ExceptHandlerType = ASTType.NewType(\"ExceptHandler\", \"ExceptHandler Node\", nil, nil)\n```\nMisc\n\n```go\nvar ExprBaseType = ASTType.NewType(\"Expr\", \"Expr Node\", nil, nil)\n```\nExpr\n\n```go\nvar ExprStmtType = StmtBaseType.NewType(\"ExprStmt\", \"ExprStmt Node\", nil, nil)\n```\n\n```go\nvar ExpressionType = ModBaseType.NewType(\"Expression\", \"Expression Node\", nil, nil)\n```\n\n```go\nvar ExtSliceType = SliceBaseType.NewType(\"ExtSlice\", \"ExtSlice Node\", nil, nil)\n```\n\n```go\nvar ForType = StmtBaseType.NewType(\"For\", \"For Node\", nil, nil)\n```\n\n```go\nvar FunctionDefType = StmtBaseType.NewType(\"FunctionDef\", \"FunctionDef Node\", nil, nil)\n```\n\n```go\nvar GeneratorExpType = ExprBaseType.NewType(\"GeneratorExp\", \"GeneratorExp Node\", nil, nil)\n```\n\n```go\nvar GlobalType = StmtBaseType.NewType(\"Global\", \"Global Node\", nil, nil)\n```\n\n```go\nvar IfExpType = ExprBaseType.NewType(\"IfExp\", \"IfExp Node\", nil, nil)\n```\n\n```go\nvar IfType = StmtBaseType.NewType(\"If\", \"If Node\", nil, nil)\n```\n\n```go\nvar ImportFromType = StmtBaseType.NewType(\"ImportFrom\", \"ImportFrom Node\", nil, nil)\n```\n\n```go\nvar ImportType = StmtBaseType.NewType(\"Import\", \"Import Node\", nil, nil)\n```\n\n```go\nvar IndexType = SliceBaseType.NewType(\"Index\", \"Index Node\", nil, nil)\n```\n\n```go\nvar InteractiveType = ModBaseType.NewType(\"Interactive\", \"Interactive Node\", nil, nil)\n```\n\n```go\nvar KeywordType = ASTType.NewType(\"Keyword\", \"Keyword Node\", nil, nil)\n```\n\n```go\nvar LambdaType = ExprBaseType.NewType(\"Lambda\", \"Lambda Node\", nil, nil)\n```\n\n```go\nvar ListCompType = ExprBaseType.NewType(\"ListComp\", \"ListComp Node\", nil, nil)\n```\n\n```go\nvar ListType = ExprBaseType.NewType(\"List\", \"List Node\", nil, nil)\n```\n\n```go\nvar ModBaseType = ASTType.NewType(\"Mod\", \"Mod Node\", nil, nil)\n```\nMod\n\n```go\nvar ModuleType = ModBaseType.NewType(\"Module\", \"Module Node\", nil, nil)\n```\n\n```go\nvar NameConstantType = ExprBaseType.NewType(\"NameConstant\", \"NameConstant Node\", nil, nil)\n```\n\n```go\nvar NameType = ExprBaseType.NewType(\"Name\", \"Name Node\", nil, nil)\n```\n\n```go\nvar NonlocalType = StmtBaseType.NewType(\"Nonlocal\", \"Nonlocal Node\", nil, nil)\n```\n\n```go\nvar NumType = ExprBaseType.NewType(\"Num\", \"Num Node\", nil, nil)\n```\n\n```go\nvar PassType = StmtBaseType.NewType(\"Pass\", \"Pass Node\", nil, nil)\n```\n\n```go\nvar RaiseType = StmtBaseType.NewType(\"Raise\", \"Raise Node\", nil, nil)\n```\n\n```go\nvar ReturnType = StmtBaseType.NewType(\"Return\", \"Return Node\", nil, nil)\n```\n\n```go\nvar SetCompType = ExprBaseType.NewType(\"SetComp\", \"SetComp Node\", nil, nil)\n```\n\n```go\nvar SetType = ExprBaseType.NewType(\"Set\", \"Set Node\", nil, nil)\n```\n\n```go\nvar SliceBaseType = ASTType.NewType(\"SliceBase\", \"SliceBase Node\", nil, nil)\n```\n\n```go\nvar SliceType = SliceBaseType.NewType(\"Slice\", \"Slice Node\", nil, nil)\n```\nSlicer\n\n```go\nvar StarredType = ExprBaseType.NewType(\"Starred\", \"Starred Node\", nil, nil)\n```\n\n```go\nvar StmtBaseType = ASTType.NewType(\"Stmt\", \"Stmt Node\", nil, nil)\n```\nStmt\n\n```go\nvar StrType = ExprBaseType.NewType(\"Str\", \"Str Node\", nil, nil)\n```\n\n```go\nvar SubscriptType = ExprBaseType.NewType(\"Subscript\", \"Subscript Node\", nil, nil)\n```\n\n```go\nvar SuiteType = ModBaseType.NewType(\"Suite\", \"Suite Node\", nil, nil)\n```\n\n```go\nvar TryType = StmtBaseType.NewType(\"Try\", \"Try Node\", nil, nil)\n```\n\n```go\nvar TupleType = ExprBaseType.NewType(\"Tuple\", \"Tuple Node\", nil, nil)\n```\n\n```go\nvar UnaryOpType = ExprBaseType.NewType(\"UnaryOp\", \"UnaryOp Node\", nil, nil)\n```\n\n```go\nvar WhileType = StmtBaseType.NewType(\"While\", \"While Node\", nil, nil)\n```\n\n```go\nvar WithItemType = ASTType.NewType(\"WithItem\", \"WithItem Node\", nil, nil)\n```\n\n```go\nvar WithType = StmtBaseType.NewType(\"With\", \"With Node\", nil, nil)\n```\n\n```go\nvar YieldFromType = ExprBaseType.NewType(\"YieldFrom\", \"YieldFrom Node\", nil, nil)\n```\n\n```go\nvar YieldType = ExprBaseType.NewType(\"Yield\", \"Yield Node\", nil, nil)\n```\n\n## Functions\n\n```go\nfunc Dump(ast Ast) string\n```\nDump an Ast node as a string\n\n```go\nfunc Walk(ast Ast, Visit func(Ast) bool)\n```\nWalk calls Visit on every node in the ast.  The parent is visited first, then the children\n\nVisit returns true to continue the walk\n\n## Types\n\n```go\ntype AST struct {\n\tPos\n}\n```\nBase AST node\n\n```go\nfunc (o *AST) Type() *py.Type\n```\nPython type definitions\n\n```go\ntype Alias struct {\n\tPos\n\tName   Identifier\n\tAsName Identifier\n}\n```\n\n```go\nfunc (o *Alias) Type() *py.Type\n```\n\n```go\ntype Arg struct {\n\tPos\n\tArg        Identifier\n\tAnnotation Expr\n}\n```\n\n```go\nfunc (o *Arg) Type() *py.Type\n```\n\n```go\ntype Arguments struct {\n\tPos\n\tArgs       []*Arg\n\tVararg     *Arg\n\tKwonlyargs []*Arg\n\tKwDefaults []Expr\n\tKwarg      *Arg\n\tDefaults   []Expr\n}\n```\n\n```go\nfunc (o *Arguments) Type() *py.Type\n```\n\n```go\ntype Assert struct {\n\tStmtBase\n\tTest Expr\n\tMsg  Expr\n}\n```\n\n```go\nfunc (o *Assert) Type() *py.Type\n```\n\n```go\ntype Assign struct {\n\tStmtBase\n\tTargets []Expr\n\tValue   Expr\n}\n```\n\n```go\nfunc (o *Assign) Type() *py.Type\n```\n\n```go\ntype Ast interface {\n\tpy.Object\n\tGetLineno() int\n\tGetColOffset() int\n}\n```\nAll node types implement the Ast interface\n\n```go\ntype Attribute struct {\n\tExprBase\n\tValue Expr\n\tAttr  Identifier\n\tCtx   ExprContext\n}\n```\n\n```go\nfunc (o *Attribute) SetCtx(Ctx ExprContext)\n```\n\n```go\nfunc (o *Attribute) Type() *py.Type\n```\n\n```go\ntype AugAssign struct {\n\tStmtBase\n\tTarget Expr\n\tOp     OperatorNumber\n\tValue  Expr\n}\n```\n\n```go\nfunc (o *AugAssign) Type() *py.Type\n```\n\n```go\ntype BinOp struct {\n\tExprBase\n\tLeft  Expr\n\tOp    OperatorNumber\n\tRight Expr\n}\n```\n\n```go\nfunc (o *BinOp) Type() *py.Type\n```\n\n```go\ntype BoolOp struct {\n\tExprBase\n\tOp     BoolOpNumber\n\tValues []Expr\n}\n```\n\n```go\nfunc (o *BoolOp) Type() *py.Type\n```\n\n```go\ntype BoolOpNumber int\n```\n\n```go\nfunc (o BoolOpNumber) String() string\n```\n\n```go\ntype Break struct {\n\tStmtBase\n}\n```\n\n```go\nfunc (o *Break) Type() *py.Type\n```\n\n```go\ntype Bytes struct {\n\tExprBase\n\tS py.Bytes\n}\n```\n\n```go\nfunc (o *Bytes) Type() *py.Type\n```\n\n```go\ntype Call struct {\n\tExprBase\n\tFunc     Expr\n\tArgs     []Expr\n\tKeywords []*Keyword\n\tStarargs Expr\n\tKwargs   Expr\n}\n```\n\n```go\nfunc (o *Call) Type() *py.Type\n```\n\n```go\ntype ClassDef struct {\n\tStmtBase\n\tName          Identifier\n\tBases         []Expr\n\tKeywords      []*Keyword\n\tStarargs      Expr\n\tKwargs        Expr\n\tBody          []Stmt\n\tDecoratorList []Expr\n}\n```\n\n```go\nfunc (o *ClassDef) Type() *py.Type\n```\n\n```go\ntype CmpOp int\n```\n\n```go\nfunc (o CmpOp) String() string\n```\n\n```go\ntype Compare struct {\n\tExprBase\n\tLeft        Expr\n\tOps         []CmpOp\n\tComparators []Expr\n}\n```\nneed sequences for compare to distinguish between\n\n```go\nfunc (o *Compare) Type() *py.Type\n```\n\n```go\ntype Comprehension struct {\n\tTarget Expr\n\tIter   Expr\n\tIfs    []Expr\n}\n```\n\n```go\ntype Continue struct {\n\tStmtBase\n}\n```\n\n```go\nfunc (o *Continue) Type() *py.Type\n```\n\n```go\ntype Delete struct {\n\tStmtBase\n\tTargets []Expr\n}\n```\n\n```go\nfunc (o *Delete) Type() *py.Type\n```\n\n```go\ntype Dict struct {\n\tExprBase\n\tKeys   []Expr\n\tValues []Expr\n}\n```\n\n```go\nfunc (o *Dict) Type() *py.Type\n```\n\n```go\ntype DictComp struct {\n\tExprBase\n\tKey        Expr\n\tValue      Expr\n\tGenerators []Comprehension\n}\n```\n\n```go\nfunc (o *DictComp) Type() *py.Type\n```\n\n```go\ntype Ellipsis struct {\n\tExprBase\n}\n```\n\n```go\nfunc (o *Ellipsis) Type() *py.Type\n```\n\n```go\ntype ExceptHandler struct {\n\tPos\n\tExprType Expr\n\tName     Identifier\n\tBody     []Stmt\n}\n```\n\n```go\nfunc (o *ExceptHandler) Type() *py.Type\n```\n\n```go\ntype Expr interface {\n\tAst\n\t// contains filtered or unexported methods\n}\n```\nAll ExprBase notes implement the Expr interface\n\n```go\ntype ExprBase struct{ Pos }\n```\n\n```go\nfunc (o *ExprBase) Type() *py.Type\n```\n\n```go\ntype ExprContext int\n```\n\n```go\nfunc (o ExprContext) String() string\n```\n\n```go\ntype ExprStmt struct {\n\tStmtBase\n\tValue Expr\n}\n```\n\n```go\nfunc (o *ExprStmt) Type() *py.Type\n```\n\n```go\ntype Expression struct {\n\tModBase\n\tBody Expr\n}\n```\n\n```go\nfunc (o *Expression) Type() *py.Type\n```\n\n```go\ntype ExtSlice struct {\n\tSliceBase\n\tDims []Slicer\n}\n```\n\n```go\nfunc (o *ExtSlice) Type() *py.Type\n```\n\n```go\ntype For struct {\n\tStmtBase\n\tTarget Expr\n\tIter   Expr\n\tBody   []Stmt\n\tOrelse []Stmt\n}\n```\n\n```go\nfunc (o *For) Type() *py.Type\n```\n\n```go\ntype FunctionDef struct {\n\tStmtBase\n\tName          Identifier\n\tArgs          *Arguments\n\tBody          []Stmt\n\tDecoratorList []Expr\n\tReturns       Expr\n}\n```\n\n```go\nfunc (o *FunctionDef) Type() *py.Type\n```\n\n```go\ntype GeneratorExp struct {\n\tExprBase\n\tElt        Expr\n\tGenerators []Comprehension\n}\n```\n\n```go\nfunc (o *GeneratorExp) Type() *py.Type\n```\n\n```go\ntype Global struct {\n\tStmtBase\n\tNames []Identifier\n}\n```\n\n```go\nfunc (o *Global) Type() *py.Type\n```\n\n```go\ntype Identifier py.String\n```\n\n```go\ntype If struct {\n\tStmtBase\n\tTest   Expr\n\tBody   []Stmt\n\tOrelse []Stmt\n}\n```\n\n```go\nfunc (o *If) Type() *py.Type\n```\n\n```go\ntype IfExp struct {\n\tExprBase\n\tTest   Expr\n\tBody   Expr\n\tOrelse Expr\n}\n```\n\n```go\nfunc (o *IfExp) Type() *py.Type\n```\n\n```go\ntype Import struct {\n\tStmtBase\n\tNames []*Alias\n}\n```\n\n```go\nfunc (o *Import) Type() *py.Type\n```\n\n```go\ntype ImportFrom struct {\n\tStmtBase\n\tModule Identifier\n\tNames  []*Alias\n\tLevel  int\n}\n```\n\n```go\nfunc (o *ImportFrom) Type() *py.Type\n```\n\n```go\ntype Index struct {\n\tSliceBase\n\tValue Expr\n}\n```\n\n```go\nfunc (o *Index) Type() *py.Type\n```\n\n```go\ntype Interactive struct {\n\tModBase\n\tBody []Stmt\n}\n```\n\n```go\nfunc (o *Interactive) Type() *py.Type\n```\n\n```go\ntype Keyword struct {\n\tPos\n\tArg   Identifier\n\tValue Expr\n}\n```\n\n```go\nfunc (o *Keyword) Type() *py.Type\n```\n\n```go\ntype Lambda struct {\n\tExprBase\n\tArgs *Arguments\n\tBody Expr\n}\n```\n\n```go\nfunc (o *Lambda) Type() *py.Type\n```\n\n```go\ntype List struct {\n\tExprBase\n\tElts []Expr\n\tCtx  ExprContext\n}\n```\n\n```go\nfunc (o *List) SetCtx(Ctx ExprContext)\n```\n\n```go\nfunc (o *List) Type() *py.Type\n```\n\n```go\ntype ListComp struct {\n\tExprBase\n\tElt        Expr\n\tGenerators []Comprehension\n}\n```\n\n```go\nfunc (o *ListComp) Type() *py.Type\n```\n\n```go\ntype Mod interface {\n\tAst\n\t// contains filtered or unexported methods\n}\n```\nAll ModBase nodes implement the Mod interface\n\n```go\ntype ModBase struct {\n\tPos\n}\n```\n\n```go\nfunc (o *ModBase) Type() *py.Type\n```\n\n```go\ntype Module struct {\n\tModBase\n\tBody []Stmt\n}\n```\n\n```go\nfunc (o *Module) Type() *py.Type\n```\n\n```go\ntype Name struct {\n\tExprBase\n\tId  Identifier\n\tCtx ExprContext\n}\n```\n\n```go\nfunc (o *Name) SetCtx(Ctx ExprContext)\n```\n\n```go\nfunc (o *Name) Type() *py.Type\n```\n\n```go\ntype NameConstant struct {\n\tExprBase\n\tValue Singleton\n}\n```\n\n```go\nfunc (o *NameConstant) Type() *py.Type\n```\n\n```go\ntype Nonlocal struct {\n\tStmtBase\n\tNames []Identifier\n}\n```\n\n```go\nfunc (o *Nonlocal) Type() *py.Type\n```\n\n```go\ntype Num struct {\n\tExprBase\n\tN Object\n}\n```\n\n```go\nfunc (o *Num) Type() *py.Type\n```\n\n```go\ntype Object py.Object\n```\n\n```go\ntype OperatorNumber int\n```\n\n```go\nfunc (o OperatorNumber) String() string\n```\n\n```go\ntype Pass struct {\n\tStmtBase\n}\n```\n\n```go\nfunc (o *Pass) Type() *py.Type\n```\n\n```go\ntype Pos struct {\n\tLineno    int\n\tColOffset int\n}\n```\nPosition in the parse tree\n\n```go\nfunc (o *Pos) GetColOffset() int\n```\n\n```go\nfunc (o *Pos) GetLineno() int\n```\n\n```go\ntype Raise struct {\n\tStmtBase\n\tExc   Expr\n\tCause Expr\n}\n```\n\n```go\nfunc (o *Raise) Type() *py.Type\n```\n\n```go\ntype Return struct {\n\tStmtBase\n\tValue Expr\n}\n```\n\n```go\nfunc (o *Return) Type() *py.Type\n```\n\n```go\ntype Set struct {\n\tExprBase\n\tElts []Expr\n}\n```\n\n```go\nfunc (o *Set) Type() *py.Type\n```\n\n```go\ntype SetComp struct {\n\tExprBase\n\tElt        Expr\n\tGenerators []Comprehension\n}\n```\n\n```go\nfunc (o *SetComp) Type() *py.Type\n```\n\n```go\ntype SetCtxer interface {\n\tSetCtx(ExprContext)\n}\n```\nExprNodes which have a settable context implement this\n\n```go\ntype Singleton py.Object\n```\n\n```go\ntype Slice struct {\n\tSliceBase\n\tLower Expr\n\tUpper Expr\n\tStep  Expr\n}\n```\n\n```go\nfunc (o *Slice) Type() *py.Type\n```\n\n```go\ntype SliceBase struct {\n\tPos\n}\n```\n\n```go\nfunc (o *SliceBase) Type() *py.Type\n```\n\n```go\ntype Slicer interface {\n\tAst\n\t// contains filtered or unexported methods\n}\n```\nAll SliceBase nodes implement the Slicer interface\n\n```go\ntype Starred struct {\n\tExprBase\n\tValue Expr\n\tCtx   ExprContext\n}\n```\n\n```go\nfunc (o *Starred) SetCtx(Ctx ExprContext)\n```\n\n```go\nfunc (o *Starred) Type() *py.Type\n```\n\n```go\ntype Stmt interface {\n\tAst\n\t// contains filtered or unexported methods\n}\n```\nAll StmtBase nodes implement the Stmt interface\n\n```go\ntype StmtBase struct {\n\tPos\n}\n```\n\n```go\nfunc (o *StmtBase) Type() *py.Type\n```\n\n```go\ntype Str struct {\n\tExprBase\n\tS py.String\n}\n```\n\n```go\nfunc (o *Str) Type() *py.Type\n```\n\n```go\ntype String py.String\n```\n\n```go\ntype Subscript struct {\n\tExprBase\n\tValue Expr\n\tSlice Slicer\n\tCtx   ExprContext\n}\n```\n\n```go\nfunc (o *Subscript) SetCtx(Ctx ExprContext)\n```\n\n```go\nfunc (o *Subscript) Type() *py.Type\n```\n\n```go\ntype Suite struct {\n\tModBase\n\tBody []Stmt\n}\n```\n\n```go\nfunc (o *Suite) Type() *py.Type\n```\n\n```go\ntype Try struct {\n\tStmtBase\n\tBody      []Stmt\n\tHandlers  []*ExceptHandler\n\tOrelse    []Stmt\n\tFinalbody []Stmt\n}\n```\n\n```go\nfunc (o *Try) Type() *py.Type\n```\n\n```go\ntype Tuple struct {\n\tExprBase\n\tElts []Expr\n\tCtx  ExprContext\n}\n```\n\n```go\nfunc (o *Tuple) SetCtx(Ctx ExprContext)\n```\n\n```go\nfunc (o *Tuple) Type() *py.Type\n```\n\n```go\ntype UnaryOp struct {\n\tExprBase\n\tOp      UnaryOpNumber\n\tOperand Expr\n}\n```\n\n```go\nfunc (o *UnaryOp) Type() *py.Type\n```\n\n```go\ntype UnaryOpNumber int\n```\n\n```go\nfunc (o UnaryOpNumber) String() string\n```\n\n```go\ntype While struct {\n\tStmtBase\n\tTest   Expr\n\tBody   []Stmt\n\tOrelse []Stmt\n}\n```\n\n```go\nfunc (o *While) Type() *py.Type\n```\n\n```go\ntype With struct {\n\tStmtBase\n\tItems []*WithItem\n\tBody  []Stmt\n}\n```\n\n```go\nfunc (o *With) Type() *py.Type\n```\n\n```go\ntype WithItem struct {\n\tPos\n\tContextExpr  Expr\n\tOptionalVars Expr\n}\n```\n\n```go\nfunc (o *WithItem) Type() *py.Type\n```\n\n```go\ntype Yield struct {\n\tExprBase\n\tValue Expr\n}\n```\n\n```go\nfunc (o *Yield) Type() *py.Type\n```\n\n```go\ntype YieldFrom struct {\n\tExprBase\n\tValue Expr\n}\n```\n\n```go\nfunc (o *YieldFrom) Type() *py.Type\n```\n\n","path":"github.com/ncw/gpython/ast","name":"ast","synopsis":"","isRedistributable":true}
