package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.37.1.tar.gz
sha256=d5be49a8ee9d26bff98b902533e0bde59cf1613a6e8f15651492205434f35c0e
md5=637a4f055de86bf02ad372b45e5567a9
doc/pfff-lang_js-analyze/Ast_js/index.html
Module Ast_js
type tok = Parse_info.info
and 'a wrap = 'a * tok
type name = string wrap
type special =
| Null
| Undefined
| This
| Super
| Exports
| Module
| New
| NewTarget
| Eval
| Require
| Seq
| Void
| Typeof
| Instanceof
| In
| Delete
| Spread
| Yield
| YieldStar
| Await
| Encaps of name option
| UseStrict
| And
| Or
| Not
| Xor
| BitNot
| BitAnd
| BitOr
| BitXor
| Lsr
| Asr
| Lsl
| Equal
| PhysEqual
| Lower
| Greater
| Plus
| Minus
| Mul
| Div
| Mod
| Expo
| Incr of bool
| Decr of bool
type label = string wrap
type filename = string wrap
and expr =
| Bool of bool wrap
| Num of string wrap
| String of string wrap
| Regexp of string wrap
| Id of name * resolved_name ref
| IdSpecial of special wrap
| Nop
| Assign of expr * expr
| Obj of obj_
| Class of class_
| ObjAccess of expr * property_name
| Arr of expr list
| ArrAccess of expr * expr
| Fun of fun_ * name option
| Apply of expr * expr list
| Conditional of expr * expr * expr
and stmt =
| VarDecl of var
| Block of stmt list
| ExprStmt of expr
| If of expr * stmt * stmt
| Do of stmt * expr
| While of expr * stmt
| For of for_header * stmt
| Switch of expr * case list
| Continue of label option
| Break of label option
| Return of expr
| Label of label * stmt
| Throw of expr
| Try of stmt * catch option * stmt option
and for_header =
| ForClassic of vars_or_expr * expr * expr
| ForIn of var_or_expr * expr
| ForOf of var_or_expr * expr
and vars_or_expr = (var list, expr) Common.either
and var_or_expr = (var, expr) Common.either
and obj_ = property list
type program = toplevel list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>