WebBits-0.9.2: JavaScript analysis tools
Source code
Contents
Index
WebBits.JavaScript.Environment
Synopsis
staticEnvironment
:: [
Statement
SourcePos
] -> ([
Statement
Ann
],
Env
,
Int
)
type
Ann
= (
Env
,
Int
,
SourcePos
)
type
LabelledStatement
=
Statement
Ann
type
LabelledExpression
=
Expression
Ann
type
Env
=
Map
String
Int
Documentation
staticEnvironment
:: [
Statement
SourcePos
] -> ([
Statement
Ann
],
Env
,
Int
)
Source
Annotates each expression with its static environment. In addition, a map of free identifiers is returned, along with the next valid label.
type
Ann
= (
Env
,
Int
,
SourcePos
)
Source
type
LabelledStatement
=
Statement
Ann
Source
type
LabelledExpression
=
Expression
Ann
Source
type
Env
=
Map
String
Int
Source
Produced by
Haddock
version 2.3.0