package pfff
Tools and APIs for program analysis, code visualization, refactoring
Install
Dune Dependency
Authors
Maintainers
Sources
0.39.4.tar.gz
md5=9aabf597b6de59ced5a3ecfadb1c9a13
sha512=8f4762840b8de0a76a8cbd972e6a4babd7b17e3830b65b5eaff017711bd247f88a29d04d64b6bd31fa3610d5e045bb48ddaaf58b279fcac19a1c53590f0b411e
doc/pfff-lang_js-analyze/Module_pre_es6/index.html
Module Module_pre_es6
type shape =
| LiteralShape
| ArrayShape
| ObjectShape of (int * shape Common.smap * shape list) ref
| FunctionShape of shape Common.smap ref * shape
| RequireShape of module_
| UnknownShape of string
| ClassShape of shape * shape
| NewShape of shape
| MixinShape of shape
| ClassWithMixinShape of shape * shape
| PropertyShape of shape * string
| ApplyShape of shape
| ElementShape of shape
lexical shapes that describe the environment *
val rootclass : shape
constant shape representing the empty class *
val new_object : shape Common.smap -> shape
generates an object shape containing a given property map *
val new_class : unit -> shape
generates a class object shape containing a new prototype object *
val string_of_shape : int -> shape -> string
Example: string_of_shape indent shape *
type parseinfo = Cst_js.program * Parser_js.token list
parse info for JS files, containing an AST and a token list with comments *
type parseinfo_map = parseinfo Common.smap
map of file names to parse info cached after parsing *
type moduleinfo = {
module_ : module_;
local_requires : module_ list;
local_bindings : shape Common.smap;
}
local info computed per module, containing exports and local shapes *
type moduleinfo_map = moduleinfo Common.smap
map of module names to module info cached after analysis *
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>