package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.39.1.tar.gz
md5=19e3eb1003161d8e7ed65c96c4f69d52
sha512=37834e1726a004272fbc153fc4cd0a6afdf02b7918acf27492acd60890c32591eb8f5b22fcfd99dd707d8507b8208bdb24c99de9fd940cc2ad0171f1d103743f
doc/pfff-lang_python/Ast_python/index.html
Module Ast_python
type tok = Parse_info.info
type 'a wrap = 'a * tok
type name = string wrap
type dotted_name = name list
type expr =
| Num of number
| Str of string wrap list
| Bool of bool wrap
| ExprNone of tok
| Name of name * expr_context * resolved_name ref
| Tuple of expr list_or_comprehension * expr_context
| List of expr list_or_comprehension * expr_context
| DictOrSet of dictorset_elt list_or_comprehension
| ExprStar of expr
| TypedExpr of expr * type_
| Ellipses of tok
| BoolOp of boolop * expr list
| BinOp of expr * operator * expr
| UnaryOp of unaryop * expr
| Compare of expr * cmpop list * expr list
| Call of expr * argument list
| Subscript of expr * slice list * expr_context
| Lambda of parameters * expr
| IfExp of expr * expr * expr
| Yield of expr option
| Await of expr
| Repr of expr
| Attribute of expr * name * expr_context
and 'a comprehension = 'a * for_if list
and parameters = parameter list
and type_ = expr
and type_parent = argument
type pattern = expr
type stmt =
| ExprStmt of expr
| Assign of expr list * expr
| AugAssign of expr * operator * expr
| For of pattern * expr * stmt list * stmt list
| While of expr * stmt list * stmt list
| If of expr * stmt list * stmt list
| With of expr * expr option * stmt list
| Return of expr option
| Break
| Continue
| Pass
| Raise of (expr * expr option) option
| TryExcept of stmt list * excepthandler list * stmt list
| TryFinally of stmt list * stmt list
| Assert of expr * expr option
| Global of name list
| Delete of expr list
| NonLocal of name list
| Async of stmt
| Import of alias_dotted list
| ImportFrom of dotted_name * alias list * int option
| FunctionDef of name * parameters * type_ option * stmt list * decorator list
| ClassDef of name * type_parent list * stmt list * decorator list
and decorator = expr
and alias_dotted = dotted_name * name option
type program = stmt list
type any =
| Expr of expr
| Stmt of stmt
| Stmts of stmt list
| Program of program
| DictElem of dictorset_elt
val context_of_expr : expr -> expr_context option
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>