package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.39.5.tar.gz
md5=e23dbd320a8681b74315162a02bf97a7
sha512=2998432bcd6d9a459331d733c4446d35459d42787fcf2fd332d3ec5131a4d358bb8f060b45d38696bcd584e1eaa8c1b21b82d7d3005e83c1ecefd22fec842ee7
doc/pfff-lang_python/Ast_python/index.html
Module Ast_python
type tok = Parse_info.t
type 'a wrap = 'a * tok
type name = string wrap
type dotted_name = name list
type resolved_name =
| LocalVar
| Parameter
| GlobalVar
| ClassField
| ImportedModule of dotted_name
| ImportedEntity of dotted_name
| NotResolved
type expr =
| Num of number
| Str of string wrap
| Bool of bool wrap
| None_ 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
| InterpolatedString of interpolated list
| TypedExpr of expr * type_
| Ellipses of tok
| BoolOp of boolop wrap * expr list
| BinOp of expr * operator wrap * expr
| UnaryOp of unaryop wrap * expr
| Compare of expr * cmpop wrap 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 interpolated = expr
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 wrap * 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)"
>