language-javascript-0.7.1.0: Parser for JavaScript

Safe Haskell | Safe-Inferred
Language | Haskell98

Language.JavaScript.Parser.AST

Synopsis

- data JSExpression
  - = JSIdentifier !JSAnnot !String
  - | JSDecimal !JSAnnot !String
  - | JSLiteral !JSAnnot !String
  - | JSHexInteger !JSAnnot !String
  - | JSOctal !JSAnnot !String
  - | JSStringLiteral !JSAnnot !String
  - | JSRegEx !JSAnnot !String
  - | JSArrayLiteral !JSAnnot ![JSArrayElement] !JSAnnot
  - | JSAssignExpression !JSExpression !JSAssignOp !JSExpression
  - | JSAwaitExpression !JSAnnot !JSExpression
  - | JSCallExpression !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot
  - | JSCallExpressionDot !JSExpression !JSAnnot !JSExpression
  - | JSCallExpressionSquare !JSExpression !JSAnnot !JSExpression !JSAnnot
  - | JSClassExpression !JSAnnot !JSIdent !JSClassHeritage !JSAnnot ![JSClassElement] !JSAnnot
  - | JSCommaExpression !JSExpression !JSAnnot !JSExpression
  - | JSExpressionBinary !JSExpression !JSBinOp !JSExpression
  - | JSExpressionParen !JSAnnot !JSExpression !JSAnnot
  - | JSExpressionPostfix !JSExpression !JSUnaryOp
  - | JSExpressionTernary !JSExpression !JSAnnot !JSExpression !JSAnnot !JSExpression
  - | JSArrowExpression !JSArrowParameterList !JSAnnot !JSStatement
  - | JSFunctionExpression !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock
  - | JSGeneratorExpression !JSAnnot !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock
  - | JSMemberDot !JSExpression !JSAnnot !JSExpression
  - | JSMemberExpression !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot
  - | JSMemberNew !JSAnnot !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot
  - | JSMemberSquare !JSExpression !JSAnnot !JSExpression !JSAnnot
  - | JSNewExpression !JSAnnot !JSExpression
  - | JSObjectLiteral !JSAnnot !JSObjectPropertyList !JSAnnot
  - | JSSpreadExpression !JSAnnot !JSExpression
  - | JSTemplateLiteral !(Maybe JSExpression) !JSAnnot !String ![JSTemplatePart]
  - | JSUnaryExpression !JSUnaryOp !JSExpression
  - | JSVarInitExpression !JSExpression !JSVarInitializer
  - | JSYieldExpression !JSAnnot !(Maybe JSExpression)
  - | JSYieldFromExpression !JSAnnot !JSAnnot !JSExpression
- data JSAnnot
  - = JSAnnot !TokenPosn ![CommentAnnotation]
  - | JSAnnotSpace
  - | JSNoAnnot
- data JSBinOp
  - = JSBinOpAnd !JSAnnot
  - | JSBinOpBitAnd !JSAnnot
  - | JSBinOpBitOr !JSAnnot
  - | JSBinOpBitXor !JSAnnot
  - | JSBinOpDivide !JSAnnot
  - | JSBinOpEq !JSAnnot
  - | JSBinOpGe !JSAnnot
  - | JSBinOpGt !JSAnnot
  - | JSBinOpIn !JSAnnot
  - | JSBinOpInstanceOf !JSAnnot
  - | JSBinOpLe !JSAnnot
  - | JSBinOpLsh !JSAnnot
  - | JSBinOpLt !JSAnnot
  - | JSBinOpMinus !JSAnnot
  - | JSBinOpMod !JSAnnot
  - | JSBinOpNeq !JSAnnot
  - | JSBinOpOf !JSAnnot
  - | JSBinOpOr !JSAnnot
  - | JSBinOpPlus !JSAnnot
  - | JSBinOpRsh !JSAnnot
  - | JSBinOpStrictEq !JSAnnot
  - | JSBinOpStrictNeq !JSAnnot
  - | JSBinOpTimes !JSAnnot
  - | JSBinOpUrsh !JSAnnot
- data JSUnaryOp
  - = JSUnaryOpDecr !JSAnnot
  - | JSUnaryOpDelete !JSAnnot
  - | JSUnaryOpIncr !JSAnnot
  - | JSUnaryOpMinus !JSAnnot
  - | JSUnaryOpNot !JSAnnot
  - | JSUnaryOpPlus !JSAnnot
  - | JSUnaryOpTilde !JSAnnot
  - | JSUnaryOpTypeof !JSAnnot
  - | JSUnaryOpVoid !JSAnnot
- data JSSemi
  - = JSSemi !JSAnnot
  - | JSSemiAuto
- data JSAssignOp
  - = JSAssign !JSAnnot
  - | JSTimesAssign !JSAnnot
  - | JSDivideAssign !JSAnnot
  - | JSModAssign !JSAnnot
  - | JSPlusAssign !JSAnnot
  - | JSMinusAssign !JSAnnot
  - | JSLshAssign !JSAnnot
  - | JSRshAssign !JSAnnot
  - | JSUrshAssign !JSAnnot
  - | JSBwAndAssign !JSAnnot
  - | JSBwXorAssign !JSAnnot
  - | JSBwOrAssign !JSAnnot
- data JSTryCatch
  - = JSCatch !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSBlock
  - | JSCatchIf !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSExpression !JSAnnot !JSBlock
- data JSTryFinally
  - = JSFinally !JSAnnot !JSBlock
  - | JSNoFinally
- data JSStatement
  - = JSStatementBlock !JSAnnot ![JSStatement] !JSAnnot !JSSemi
  - | JSBreak !JSAnnot !JSIdent !JSSemi
  - | JSLet !JSAnnot !(JSCommaList JSExpression) !JSSemi
  - | JSClass !JSAnnot !JSIdent !JSClassHeritage !JSAnnot ![JSClassElement] !JSAnnot !JSSemi
  - | JSConstant !JSAnnot !(JSCommaList JSExpression) !JSSemi
  - | JSContinue !JSAnnot !JSIdent !JSSemi
  - | JSDoWhile !JSAnnot !JSStatement !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSSemi
  - | JSFor !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement
  - | JSForIn !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForVar !JSAnnot !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement
  - | JSForVarIn !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForLet !JSAnnot !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement
  - | JSForLetIn !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForLetOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForConst !JSAnnot !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement
  - | JSForConstIn !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForConstOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForOf !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSForVarOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
  - | JSAsyncFunction !JSAnnot !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock !JSSemi
  - | JSFunction !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock !JSSemi
  - | JSGenerator !JSAnnot !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock !JSSemi
  - | JSIf !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement
  - | JSIfElse !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement !JSAnnot !JSStatement
  - | JSLabelled !JSIdent !JSAnnot !JSStatement
  - | JSEmptyStatement !JSAnnot
  - | JSExpressionStatement !JSExpression !JSSemi
  - | JSAssignStatement !JSExpression !JSAssignOp !JSExpression !JSSemi
  - | JSMethodCall !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSSemi
  - | JSReturn !JSAnnot !(Maybe JSExpression) !JSSemi
  - | JSSwitch !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSAnnot ![JSSwitchParts] !JSAnnot !JSSemi
  - | JSThrow !JSAnnot !JSExpression !JSSemi
  - | JSTry !JSAnnot !JSBlock ![JSTryCatch] !JSTryFinally
  - | JSVariable !JSAnnot !(JSCommaList JSExpression) !JSSemi
  - | JSWhile !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement
  - | JSWith !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement !JSSemi
- data JSBlock = JSBlock !JSAnnot ![JSStatement] !JSAnnot
- data JSSwitchParts
  - = JSCase !JSAnnot !JSExpression !JSAnnot ![JSStatement]
  - | JSDefault !JSAnnot !JSAnnot ![JSStatement]
- data JSAST
  - = JSAstProgram ![JSStatement] !JSAnnot
  - | JSAstModule ![JSModuleItem] !JSAnnot
  - | JSAstStatement !JSStatement !JSAnnot
  - | JSAstExpression !JSExpression !JSAnnot
  - | JSAstLiteral !JSExpression !JSAnnot
- data JSObjectProperty
  - = JSPropertyNameandValue !JSPropertyName !JSAnnot ![JSExpression]
  - | JSPropertyIdentRef !JSAnnot !String
  - | JSObjectMethod !JSMethodDefinition
- data JSPropertyName
  - = JSPropertyIdent !JSAnnot !String
  - | JSPropertyString !JSAnnot !String
  - | JSPropertyNumber !JSAnnot !String
  - | JSPropertyComputed !JSAnnot !JSExpression !JSAnnot
- type JSObjectPropertyList = JSCommaTrailingList JSObjectProperty
- data JSAccessor
  - = JSAccessorGet !JSAnnot
  - | JSAccessorSet !JSAnnot
- data JSMethodDefinition
  - = JSMethodDefinition !JSPropertyName !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock
  - | JSGeneratorMethodDefinition !JSAnnot !JSPropertyName !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock
  - | JSPropertyAccessor !JSAccessor !JSPropertyName !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock
- data JSIdent
  - = JSIdentName !JSAnnot !String
  - | JSIdentNone
- data JSVarInitializer
  - = JSVarInit !JSAnnot !JSExpression
  - | JSVarInitNone
- data JSArrayElement
  - = JSArrayElement !JSExpression
  - | JSArrayComma !JSAnnot
- data JSCommaList a
  - = JSLCons !(JSCommaList a) !JSAnnot !a
  - | JSLOne !a
  - | JSLNil
- data JSCommaTrailingList a
  - = JSCTLComma !(JSCommaList a) !JSAnnot
  - | JSCTLNone !(JSCommaList a)
- data JSArrowParameterList
  - = JSUnparenthesizedArrowParameter !JSIdent
  - | JSParenthesizedArrowParameterList !JSAnnot !(JSCommaList JSExpression) !JSAnnot
- data JSTemplatePart = JSTemplatePart !JSExpression !JSAnnot !String
- data JSClassHeritage
  - = JSExtends !JSAnnot !JSExpression
  - | JSExtendsNone
- data JSClassElement
  - = JSClassInstanceMethod !JSMethodDefinition
  - | JSClassStaticMethod !JSAnnot !JSMethodDefinition
  - | JSClassSemi !JSAnnot
- data JSModuleItem
  - = JSModuleImportDeclaration !JSAnnot !JSImportDeclaration
  - | JSModuleExportDeclaration !JSAnnot !JSExportDeclaration
  - | JSModuleStatementListItem !JSStatement
- data JSImportDeclaration
  - = JSImportDeclaration !JSImportClause !JSFromClause !JSSemi
  - | JSImportDeclarationBare !JSAnnot !String !JSSemi
- data JSImportClause
  - = JSImportClauseDefault !JSIdent
  - | JSImportClauseNameSpace !JSImportNameSpace
  - | JSImportClauseNamed !JSImportsNamed
  - | JSImportClauseDefaultNameSpace !JSIdent !JSAnnot !JSImportNameSpace
  - | JSImportClauseDefaultNamed !JSIdent !JSAnnot !JSImportsNamed
- data JSFromClause = JSFromClause !JSAnnot !JSAnnot !String
- data JSImportNameSpace = JSImportNameSpace !JSBinOp !JSAnnot !JSIdent
- data JSImportsNamed = JSImportsNamed !JSAnnot !(JSCommaList JSImportSpecifier) !JSAnnot
- data JSImportSpecifier
  - = JSImportSpecifier !JSIdent
  - | JSImportSpecifierAs !JSIdent !JSAnnot !JSIdent
- data JSExportDeclaration
  - = JSExportFrom JSExportClause JSFromClause !JSSemi
  - | JSExportLocals JSExportClause !JSSemi
  - | JSExport !JSStatement !JSSemi
- data JSExportClause = JSExportClause !JSAnnot !(JSCommaList JSExportSpecifier) !JSAnnot
- data JSExportSpecifier
  - = JSExportSpecifier !JSIdent
  - | JSExportSpecifierAs !JSIdent !JSAnnot !JSIdent
- binOpEq :: JSBinOp -> JSBinOp -> Bool
- showStripped :: JSAST -> String

# Documentation

data JSExpression Source #

Constructors

JSIdentifier !JSAnnot !String | Terminals
JSDecimal !JSAnnot !String |
JSLiteral !JSAnnot !String |
JSHexInteger !JSAnnot !String |
JSOctal !JSAnnot !String |
JSStringLiteral !JSAnnot !String |
JSRegEx !JSAnnot !String |
JSArrayLiteral | Non Terminals

Fields

- !JSAnnot
- ![JSArrayElement]
- !JSAnnot

  lb, contents, rb

JSAssignExpression !JSExpression !JSAssignOp !JSExpression | lhs, assignop, rhs
JSAwaitExpression !JSAnnot !JSExpression | await, expr
JSCallExpression !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot | expr, bl, args, rb
JSCallExpressionDot !JSExpression !JSAnnot !JSExpression | expr, dot, expr
JSCallExpressionSquare !JSExpression !JSAnnot !JSExpression !JSAnnot | expr, [, expr, ]
JSClassExpression !JSAnnot !JSIdent !JSClassHeritage !JSAnnot ![JSClassElement] !JSAnnot | class, optional identifier, optional extends clause, lb, body, rb
JSCommaExpression !JSExpression !JSAnnot !JSExpression | expression components
JSExpressionBinary !JSExpression !JSBinOp !JSExpression | lhs, op, rhs
JSExpressionParen !JSAnnot !JSExpression !JSAnnot | lb,expression,rb
JSExpressionPostfix !JSExpression !JSUnaryOp | expression, operator
JSExpressionTernary !JSExpression !JSAnnot !JSExpression !JSAnnot !JSExpression | cond, ?, trueval, :, falseval
JSArrowExpression !JSArrowParameterList !JSAnnot !JSStatement | parameter list,arrow,block`
JSFunctionExpression !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock | fn,name,lb, parameter list,rb,block`
JSGeneratorExpression !JSAnnot !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock | fn,*,name,lb, parameter list,rb,block`
JSMemberDot !JSExpression !JSAnnot !JSExpression | firstpart, dot, name
JSMemberExpression !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot |
JSMemberNew !JSAnnot !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot | new, name, lb, args, rb
JSMemberSquare !JSExpression !JSAnnot !JSExpression !JSAnnot | firstpart, lb, expr, rb
JSNewExpression !JSAnnot !JSExpression | new, expr
JSObjectLiteral !JSAnnot !JSObjectPropertyList !JSAnnot | lbrace contents rbrace
JSSpreadExpression !JSAnnot !JSExpression |
JSTemplateLiteral !(Maybe JSExpression) !JSAnnot !String ![JSTemplatePart] | optional tag, lquot, head, parts
JSUnaryExpression !JSUnaryOp !JSExpression |
JSVarInitExpression !JSExpression !JSVarInitializer | identifier, initializer
JSYieldExpression !JSAnnot !(Maybe JSExpression) | yield, optional expr
JSYieldFromExpression !JSAnnot !JSAnnot !JSExpression | yield, *, expr

#### Instances

Instances details

Data JSExpression Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSExpression -> c JSExpression Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSExpression Source #

toConstr :: JSExpression -> Constr Source #

dataTypeOf :: JSExpression -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSExpression) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSExpression) Source #

gmapT :: (forall b. Data b => b -> b) -> JSExpression -> JSExpression Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSExpression -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSExpression -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSExpression -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSExpression -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSExpression -> m JSExpression Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExpression -> m JSExpression Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExpression -> m JSExpression Source #

Show JSExpression Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSExpression -> ShowS Source # show :: JSExpression -> String Source # showList :: [JSExpression] -> ShowS Source #
Eq JSExpression Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSExpression -> JSExpression -> Bool Source # (/=) :: JSExpression -> JSExpression -> Bool Source #

data JSAnnot Source #

Constructors

JSAnnot !TokenPosn ![CommentAnnotation] | Annotation: position and comment/whitespace information
JSAnnotSpace | A single space character
JSNoAnnot | No annotation

#### Instances

Instances details

Data JSAnnot Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSAnnot -> c JSAnnot Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSAnnot Source #

toConstr :: JSAnnot -> Constr Source #

dataTypeOf :: JSAnnot -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSAnnot) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSAnnot) Source #

gmapT :: (forall b. Data b => b -> b) -> JSAnnot -> JSAnnot Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSAnnot -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSAnnot -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSAnnot -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSAnnot -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSAnnot -> m JSAnnot Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAnnot -> m JSAnnot Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAnnot -> m JSAnnot Source #

Show JSAnnot Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSAnnot -> ShowS Source # show :: JSAnnot -> String Source # showList :: [JSAnnot] -> ShowS Source #
Eq JSAnnot Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSAnnot -> JSAnnot -> Bool Source # (/=) :: JSAnnot -> JSAnnot -> Bool Source #

data JSBinOp Source #

Constructors

JSBinOpAnd !JSAnnot |
JSBinOpBitAnd !JSAnnot |
JSBinOpBitOr !JSAnnot |
JSBinOpBitXor !JSAnnot |
JSBinOpDivide !JSAnnot |
JSBinOpEq !JSAnnot |
JSBinOpGe !JSAnnot |
JSBinOpGt !JSAnnot |
JSBinOpIn !JSAnnot |
JSBinOpInstanceOf !JSAnnot |
JSBinOpLe !JSAnnot |
JSBinOpLsh !JSAnnot |
JSBinOpLt !JSAnnot |
JSBinOpMinus !JSAnnot |
JSBinOpMod !JSAnnot |
JSBinOpNeq !JSAnnot |
JSBinOpOf !JSAnnot |
JSBinOpOr !JSAnnot |
JSBinOpPlus !JSAnnot |
JSBinOpRsh !JSAnnot |
JSBinOpStrictEq !JSAnnot |
JSBinOpStrictNeq !JSAnnot |
JSBinOpTimes !JSAnnot |
JSBinOpUrsh !JSAnnot |

#### Instances

Instances details

Data JSBinOp Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSBinOp -> c JSBinOp Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSBinOp Source #

toConstr :: JSBinOp -> Constr Source #

dataTypeOf :: JSBinOp -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSBinOp) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSBinOp) Source #

gmapT :: (forall b. Data b => b -> b) -> JSBinOp -> JSBinOp Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSBinOp -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSBinOp -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSBinOp -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSBinOp -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSBinOp -> m JSBinOp Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSBinOp -> m JSBinOp Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSBinOp -> m JSBinOp Source #

Show JSBinOp Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSBinOp -> ShowS Source # show :: JSBinOp -> String Source # showList :: [JSBinOp] -> ShowS Source #
Eq JSBinOp Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSBinOp -> JSBinOp -> Bool Source # (/=) :: JSBinOp -> JSBinOp -> Bool Source #

data JSUnaryOp Source #

Constructors

JSUnaryOpDecr !JSAnnot |
JSUnaryOpDelete !JSAnnot |
JSUnaryOpIncr !JSAnnot |
JSUnaryOpMinus !JSAnnot |
JSUnaryOpNot !JSAnnot |
JSUnaryOpPlus !JSAnnot |
JSUnaryOpTilde !JSAnnot |
JSUnaryOpTypeof !JSAnnot |
JSUnaryOpVoid !JSAnnot |

#### Instances

Instances details

Data JSUnaryOp Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSUnaryOp -> c JSUnaryOp Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSUnaryOp Source #

toConstr :: JSUnaryOp -> Constr Source #

dataTypeOf :: JSUnaryOp -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSUnaryOp) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSUnaryOp) Source #

gmapT :: (forall b. Data b => b -> b) -> JSUnaryOp -> JSUnaryOp Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSUnaryOp -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSUnaryOp -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSUnaryOp -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSUnaryOp -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSUnaryOp -> m JSUnaryOp Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSUnaryOp -> m JSUnaryOp Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSUnaryOp -> m JSUnaryOp Source #

Show JSUnaryOp Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSUnaryOp -> ShowS Source # show :: JSUnaryOp -> String Source # showList :: [JSUnaryOp] -> ShowS Source #
Eq JSUnaryOp Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSUnaryOp -> JSUnaryOp -> Bool Source # (/=) :: JSUnaryOp -> JSUnaryOp -> Bool Source #

data JSSemi Source #

Constructors

JSSemi !JSAnnot |
JSSemiAuto |

#### Instances

Instances details

Data JSSemi Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSSemi -> c JSSemi Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSSemi Source #

toConstr :: JSSemi -> Constr Source #

dataTypeOf :: JSSemi -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSSemi) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSSemi) Source #

gmapT :: (forall b. Data b => b -> b) -> JSSemi -> JSSemi Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSSemi -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSSemi -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSSemi -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSSemi -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSSemi -> m JSSemi Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSSemi -> m JSSemi Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSSemi -> m JSSemi Source #

Show JSSemi Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSSemi -> ShowS Source # show :: JSSemi -> String Source # showList :: [JSSemi] -> ShowS Source #
Eq JSSemi Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSSemi -> JSSemi -> Bool Source # (/=) :: JSSemi -> JSSemi -> Bool Source #

data JSAssignOp Source #

Constructors

JSAssign !JSAnnot |
JSTimesAssign !JSAnnot |
JSDivideAssign !JSAnnot |
JSModAssign !JSAnnot |
JSPlusAssign !JSAnnot |
JSMinusAssign !JSAnnot |
JSLshAssign !JSAnnot |
JSRshAssign !JSAnnot |
JSUrshAssign !JSAnnot |
JSBwAndAssign !JSAnnot |
JSBwXorAssign !JSAnnot |
JSBwOrAssign !JSAnnot |

#### Instances

Instances details

Data JSAssignOp Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSAssignOp -> c JSAssignOp Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSAssignOp Source #

toConstr :: JSAssignOp -> Constr Source #

dataTypeOf :: JSAssignOp -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSAssignOp) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSAssignOp) Source #

gmapT :: (forall b. Data b => b -> b) -> JSAssignOp -> JSAssignOp Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSAssignOp -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSAssignOp -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSAssignOp -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSAssignOp -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSAssignOp -> m JSAssignOp Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAssignOp -> m JSAssignOp Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAssignOp -> m JSAssignOp Source #

Show JSAssignOp Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSAssignOp -> ShowS Source # show :: JSAssignOp -> String Source # showList :: [JSAssignOp] -> ShowS Source #
Eq JSAssignOp Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSAssignOp -> JSAssignOp -> Bool Source # (/=) :: JSAssignOp -> JSAssignOp -> Bool Source #

data JSTryCatch Source #

Constructors

JSCatch !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSBlock | catch,lb,ident,rb,block
JSCatchIf !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSExpression !JSAnnot !JSBlock | catch,lb,ident,if,expr,rb,block

#### Instances

Instances details

Data JSTryCatch Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSTryCatch -> c JSTryCatch Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSTryCatch Source #

toConstr :: JSTryCatch -> Constr Source #

dataTypeOf :: JSTryCatch -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSTryCatch) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSTryCatch) Source #

gmapT :: (forall b. Data b => b -> b) -> JSTryCatch -> JSTryCatch Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSTryCatch -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSTryCatch -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSTryCatch -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSTryCatch -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSTryCatch -> m JSTryCatch Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSTryCatch -> m JSTryCatch Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSTryCatch -> m JSTryCatch Source #

Show JSTryCatch Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSTryCatch -> ShowS Source # show :: JSTryCatch -> String Source # showList :: [JSTryCatch] -> ShowS Source #
Eq JSTryCatch Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSTryCatch -> JSTryCatch -> Bool Source # (/=) :: JSTryCatch -> JSTryCatch -> Bool Source #

data JSTryFinally Source #

Constructors

JSFinally !JSAnnot !JSBlock | finally,block
JSNoFinally |

#### Instances

Instances details

Data JSTryFinally Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSTryFinally -> c JSTryFinally Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSTryFinally Source #

toConstr :: JSTryFinally -> Constr Source #

dataTypeOf :: JSTryFinally -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSTryFinally) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSTryFinally) Source #

gmapT :: (forall b. Data b => b -> b) -> JSTryFinally -> JSTryFinally Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSTryFinally -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSTryFinally -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSTryFinally -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSTryFinally -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSTryFinally -> m JSTryFinally Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSTryFinally -> m JSTryFinally Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSTryFinally -> m JSTryFinally Source #

Show JSTryFinally Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSTryFinally -> ShowS Source # show :: JSTryFinally -> String Source # showList :: [JSTryFinally] -> ShowS Source #
Eq JSTryFinally Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSTryFinally -> JSTryFinally -> Bool Source # (/=) :: JSTryFinally -> JSTryFinally -> Bool Source #

data JSStatement Source #

Constructors

JSStatementBlock !JSAnnot ![JSStatement] !JSAnnot !JSSemi | lbrace, stmts, rbrace, autosemi
JSBreak !JSAnnot !JSIdent !JSSemi | break,optional identifier, autosemi
JSLet !JSAnnot !(JSCommaList JSExpression) !JSSemi | const, decl, autosemi
JSClass !JSAnnot !JSIdent !JSClassHeritage !JSAnnot ![JSClassElement] !JSAnnot !JSSemi | class, name, optional extends clause, lb, body, rb, autosemi
JSConstant !JSAnnot !(JSCommaList JSExpression) !JSSemi | const, decl, autosemi
JSContinue !JSAnnot !JSIdent !JSSemi | continue, optional identifier,autosemi
JSDoWhile !JSAnnot !JSStatement !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSSemi | do,stmt,while,lb,expr,rb,autosemi
JSFor !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement | for,lb,expr,semi,expr,semi,expr,rb.stmt
JSForIn !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,expr,in,expr,rb,stmt
JSForVar !JSAnnot !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement | for,lb,var,vardecl,semi,expr,semi,expr,rb,stmt
JSForVarIn !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,var,vardecl,in,expr,rb,stmt
JSForLet !JSAnnot !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement | for,lb,var,vardecl,semi,expr,semi,expr,rb,stmt
JSForLetIn !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,var,vardecl,in,expr,rb,stmt
JSForLetOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,var,vardecl,in,expr,rb,stmt
JSForConst !JSAnnot !JSAnnot !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSStatement | for,lb,var,vardecl,semi,expr,semi,expr,rb,stmt
JSForConstIn !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,var,vardecl,in,expr,rb,stmt
JSForConstOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,var,vardecl,in,expr,rb,stmt
JSForOf !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,expr,in,expr,rb,stmt
JSForVarOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement | for,lb,var,vardecl,in,expr,rb,stmt
JSAsyncFunction !JSAnnot !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock !JSSemi | fn,name, lb,parameter list,rb,block,autosemi
JSFunction !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock !JSSemi | fn,name, lb,parameter list,rb,block,autosemi
JSGenerator !JSAnnot !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock !JSSemi | fn,*,name, lb,parameter list,rb,block,autosemi
JSIf !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement | if,(,expr,),stmt
JSIfElse !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement !JSAnnot !JSStatement | if,(,expr,),stmt,else,rest
JSLabelled !JSIdent !JSAnnot !JSStatement | identifier,colon,stmt
JSEmptyStatement !JSAnnot |
JSExpressionStatement !JSExpression !JSSemi |
JSAssignStatement !JSExpression !JSAssignOp !JSExpression !JSSemi | lhs, assignop, rhs, autosemi
JSMethodCall !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSSemi |
JSReturn !JSAnnot !(Maybe JSExpression) !JSSemi | optional expression,autosemi
JSSwitch !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSAnnot ![JSSwitchParts] !JSAnnot !JSSemi | switch,lb,expr,rb,caseblock,autosemi
JSThrow !JSAnnot !JSExpression !JSSemi | throw val autosemi
JSTry !JSAnnot !JSBlock ![JSTryCatch] !JSTryFinally | try,block,catches,finally
JSVariable !JSAnnot !(JSCommaList JSExpression) !JSSemi | var, decl, autosemi
JSWhile !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement | while,lb,expr,rb,stmt
JSWith !JSAnnot !JSAnnot !JSExpression !JSAnnot !JSStatement !JSSemi | with,lb,expr,rb,stmt list

#### Instances

Instances details

Data JSStatement Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSStatement -> c JSStatement Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSStatement Source #

toConstr :: JSStatement -> Constr Source #

dataTypeOf :: JSStatement -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSStatement) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSStatement) Source #

gmapT :: (forall b. Data b => b -> b) -> JSStatement -> JSStatement Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSStatement -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSStatement -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSStatement -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSStatement -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSStatement -> m JSStatement Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSStatement -> m JSStatement Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSStatement -> m JSStatement Source #

Show JSStatement Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSStatement -> ShowS Source # show :: JSStatement -> String Source # showList :: [JSStatement] -> ShowS Source #
Eq JSStatement Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSStatement -> JSStatement -> Bool Source # (/=) :: JSStatement -> JSStatement -> Bool Source #

data JSBlock Source #

Constructors

JSBlock !JSAnnot ![JSStatement] !JSAnnot | lbrace, stmts, rbrace

#### Instances

Instances details

Data JSBlock Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSBlock -> c JSBlock Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSBlock Source #

toConstr :: JSBlock -> Constr Source #

dataTypeOf :: JSBlock -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSBlock) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSBlock) Source #

gmapT :: (forall b. Data b => b -> b) -> JSBlock -> JSBlock Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSBlock -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSBlock -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSBlock -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSBlock -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSBlock -> m JSBlock Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSBlock -> m JSBlock Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSBlock -> m JSBlock Source #

Show JSBlock Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSBlock -> ShowS Source # show :: JSBlock -> String Source # showList :: [JSBlock] -> ShowS Source #
Eq JSBlock Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSBlock -> JSBlock -> Bool Source # (/=) :: JSBlock -> JSBlock -> Bool Source #

data JSSwitchParts Source #

Constructors

JSCase !JSAnnot !JSExpression !JSAnnot ![JSStatement] | expr,colon,stmtlist
JSDefault !JSAnnot !JSAnnot ![JSStatement] | colon,stmtlist

#### Instances

Instances details

Data JSSwitchParts Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSSwitchParts -> c JSSwitchParts Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSSwitchParts Source #

toConstr :: JSSwitchParts -> Constr Source #

dataTypeOf :: JSSwitchParts -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSSwitchParts) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSSwitchParts) Source #

gmapT :: (forall b. Data b => b -> b) -> JSSwitchParts -> JSSwitchParts Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSSwitchParts -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSSwitchParts -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSSwitchParts -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSSwitchParts -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSSwitchParts -> m JSSwitchParts Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSSwitchParts -> m JSSwitchParts Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSSwitchParts -> m JSSwitchParts Source #

Show JSSwitchParts Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSSwitchParts -> ShowS Source # show :: JSSwitchParts -> String Source # showList :: [JSSwitchParts] -> ShowS Source #
Eq JSSwitchParts Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSSwitchParts -> JSSwitchParts -> Bool Source # (/=) :: JSSwitchParts -> JSSwitchParts -> Bool Source #

data JSAST Source #

Constructors

JSAstProgram ![JSStatement] !JSAnnot | source elements, trailing whitespace
JSAstModule ![JSModuleItem] !JSAnnot |
JSAstStatement !JSStatement !JSAnnot |
JSAstExpression !JSExpression !JSAnnot |
JSAstLiteral !JSExpression !JSAnnot |

#### Instances

Instances details

Data JSAST Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSAST -> c JSAST Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSAST Source #

toConstr :: JSAST -> Constr Source #

dataTypeOf :: JSAST -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSAST) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSAST) Source #

gmapT :: (forall b. Data b => b -> b) -> JSAST -> JSAST Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSAST -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSAST -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSAST -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSAST -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSAST -> m JSAST Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAST -> m JSAST Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAST -> m JSAST Source #

Show JSAST Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSAST -> ShowS Source # show :: JSAST -> String Source # showList :: [JSAST] -> ShowS Source #
Eq JSAST Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSAST -> JSAST -> Bool Source # (/=) :: JSAST -> JSAST -> Bool Source #

data JSObjectProperty Source #

Constructors

JSPropertyNameandValue !JSPropertyName !JSAnnot ![JSExpression] | name, colon, value
JSPropertyIdentRef !JSAnnot !String |
JSObjectMethod !JSMethodDefinition |

#### Instances

Instances details

Data JSObjectProperty Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSObjectProperty -> c JSObjectProperty Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSObjectProperty Source #

toConstr :: JSObjectProperty -> Constr Source #

dataTypeOf :: JSObjectProperty -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSObjectProperty) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSObjectProperty) Source #

gmapT :: (forall b. Data b => b -> b) -> JSObjectProperty -> JSObjectProperty Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSObjectProperty -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSObjectProperty -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSObjectProperty -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSObjectProperty -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSObjectProperty -> m JSObjectProperty Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSObjectProperty -> m JSObjectProperty Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSObjectProperty -> m JSObjectProperty Source #

Show JSObjectProperty Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSObjectProperty -> ShowS Source # show :: JSObjectProperty -> String Source # showList :: [JSObjectProperty] -> ShowS Source #
Eq JSObjectProperty Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSObjectProperty -> JSObjectProperty -> Bool Source # (/=) :: JSObjectProperty -> JSObjectProperty -> Bool Source #

data JSPropertyName Source #

Constructors

JSPropertyIdent !JSAnnot !String |
JSPropertyString !JSAnnot !String |
JSPropertyNumber !JSAnnot !String |
JSPropertyComputed !JSAnnot !JSExpression !JSAnnot | lb, expr, rb

#### Instances

Instances details

Data JSPropertyName Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSPropertyName -> c JSPropertyName Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSPropertyName Source #

toConstr :: JSPropertyName -> Constr Source #

dataTypeOf :: JSPropertyName -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSPropertyName) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSPropertyName) Source #

gmapT :: (forall b. Data b => b -> b) -> JSPropertyName -> JSPropertyName Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSPropertyName -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSPropertyName -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSPropertyName -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSPropertyName -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSPropertyName -> m JSPropertyName Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSPropertyName -> m JSPropertyName Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSPropertyName -> m JSPropertyName Source #

Show JSPropertyName Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSPropertyName -> ShowS Source # show :: JSPropertyName -> String Source # showList :: [JSPropertyName] -> ShowS Source #
Eq JSPropertyName Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSPropertyName -> JSPropertyName -> Bool Source # (/=) :: JSPropertyName -> JSPropertyName -> Bool Source #

type JSObjectPropertyList = JSCommaTrailingList JSObjectProperty Source #

data JSAccessor Source #

Accessors for JSObjectProperty is either `get` or `set`.

Constructors

JSAccessorGet !JSAnnot |
JSAccessorSet !JSAnnot |

#### Instances

Instances details

Data JSAccessor Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSAccessor -> c JSAccessor Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSAccessor Source #

toConstr :: JSAccessor -> Constr Source #

dataTypeOf :: JSAccessor -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSAccessor) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSAccessor) Source #

gmapT :: (forall b. Data b => b -> b) -> JSAccessor -> JSAccessor Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSAccessor -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSAccessor -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSAccessor -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSAccessor -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSAccessor -> m JSAccessor Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAccessor -> m JSAccessor Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSAccessor -> m JSAccessor Source #

Show JSAccessor Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSAccessor -> ShowS Source # show :: JSAccessor -> String Source # showList :: [JSAccessor] -> ShowS Source #
Eq JSAccessor Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSAccessor -> JSAccessor -> Bool Source # (/=) :: JSAccessor -> JSAccessor -> Bool Source #

data JSMethodDefinition Source #

Constructors

JSMethodDefinition !JSPropertyName !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock |

JSGeneratorMethodDefinition !JSAnnot !JSPropertyName !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock

- , name, lb, params, rb, block

JSPropertyAccessor !JSAccessor !JSPropertyName !JSAnnot !(JSCommaList JSExpression) !JSAnnot !JSBlock | get/set, name, lb, params, rb, block

#### Instances

Instances details

Data JSMethodDefinition Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSMethodDefinition -> c JSMethodDefinition Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSMethodDefinition Source #

toConstr :: JSMethodDefinition -> Constr Source #

dataTypeOf :: JSMethodDefinition -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSMethodDefinition) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSMethodDefinition) Source #

gmapT :: (forall b. Data b => b -> b) -> JSMethodDefinition -> JSMethodDefinition Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSMethodDefinition -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSMethodDefinition -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSMethodDefinition -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSMethodDefinition -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSMethodDefinition -> m JSMethodDefinition Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSMethodDefinition -> m JSMethodDefinition Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSMethodDefinition -> m JSMethodDefinition Source #

Show JSMethodDefinition Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSMethodDefinition -> ShowS Source # show :: JSMethodDefinition -> String Source # showList :: [JSMethodDefinition] -> ShowS Source #
Eq JSMethodDefinition Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSMethodDefinition -> JSMethodDefinition -> Bool Source # (/=) :: JSMethodDefinition -> JSMethodDefinition -> Bool Source #

data JSIdent Source #

Constructors

JSIdentName !JSAnnot !String |
JSIdentNone |

#### Instances

Instances details

Data JSIdent Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSIdent -> c JSIdent Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSIdent Source #

toConstr :: JSIdent -> Constr Source #

dataTypeOf :: JSIdent -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSIdent) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSIdent) Source #

gmapT :: (forall b. Data b => b -> b) -> JSIdent -> JSIdent Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSIdent -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSIdent -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSIdent -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSIdent -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSIdent -> m JSIdent Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSIdent -> m JSIdent Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSIdent -> m JSIdent Source #

Show JSIdent Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSIdent -> ShowS Source # show :: JSIdent -> String Source # showList :: [JSIdent] -> ShowS Source #
Eq JSIdent Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSIdent -> JSIdent -> Bool Source # (/=) :: JSIdent -> JSIdent -> Bool Source #

data JSVarInitializer Source #

Constructors

JSVarInit !JSAnnot !JSExpression | assignop, initializer
JSVarInitNone |

#### Instances

Instances details

Data JSVarInitializer Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSVarInitializer -> c JSVarInitializer Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSVarInitializer Source #

toConstr :: JSVarInitializer -> Constr Source #

dataTypeOf :: JSVarInitializer -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSVarInitializer) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSVarInitializer) Source #

gmapT :: (forall b. Data b => b -> b) -> JSVarInitializer -> JSVarInitializer Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSVarInitializer -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSVarInitializer -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSVarInitializer -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSVarInitializer -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSVarInitializer -> m JSVarInitializer Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSVarInitializer -> m JSVarInitializer Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSVarInitializer -> m JSVarInitializer Source #

Show JSVarInitializer Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSVarInitializer -> ShowS Source # show :: JSVarInitializer -> String Source # showList :: [JSVarInitializer] -> ShowS Source #
Eq JSVarInitializer Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSVarInitializer -> JSVarInitializer -> Bool Source # (/=) :: JSVarInitializer -> JSVarInitializer -> Bool Source #

data JSArrayElement Source #

Constructors

JSArrayElement !JSExpression |
JSArrayComma !JSAnnot |

#### Instances

Instances details

Data JSArrayElement Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSArrayElement -> c JSArrayElement Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSArrayElement Source #

toConstr :: JSArrayElement -> Constr Source #

dataTypeOf :: JSArrayElement -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSArrayElement) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSArrayElement) Source #

gmapT :: (forall b. Data b => b -> b) -> JSArrayElement -> JSArrayElement Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSArrayElement -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSArrayElement -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSArrayElement -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSArrayElement -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSArrayElement -> m JSArrayElement Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSArrayElement -> m JSArrayElement Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSArrayElement -> m JSArrayElement Source #

Show JSArrayElement Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSArrayElement -> ShowS Source # show :: JSArrayElement -> String Source # showList :: [JSArrayElement] -> ShowS Source #
Eq JSArrayElement Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSArrayElement -> JSArrayElement -> Bool Source # (/=) :: JSArrayElement -> JSArrayElement -> Bool Source #

data JSCommaList a Source #

Constructors

JSLCons !(JSCommaList a) !JSAnnot !a | head, comma, a
JSLOne !a | single element (no comma)
JSLNil |

#### Instances

Instances details

Data a => Data (JSCommaList a) Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSCommaList a -> c (JSCommaList a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (JSCommaList a) Source #

toConstr :: JSCommaList a -> Constr Source #

dataTypeOf :: JSCommaList a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (JSCommaList a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (JSCommaList a)) Source #

gmapT :: (forall b. Data b => b -> b) -> JSCommaList a -> JSCommaList a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSCommaList a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSCommaList a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSCommaList a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSCommaList a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSCommaList a -> m (JSCommaList a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSCommaList a -> m (JSCommaList a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSCommaList a -> m (JSCommaList a) Source #

Show a => Show (JSCommaList a) Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSCommaList a -> ShowS Source # show :: JSCommaList a -> String Source # showList :: [JSCommaList a] -> ShowS Source #
Eq a => Eq (JSCommaList a) Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSCommaList a -> JSCommaList a -> Bool Source # (/=) :: JSCommaList a -> JSCommaList a -> Bool Source #

data JSCommaTrailingList a Source #

Constructors

JSCTLComma !(JSCommaList a) !JSAnnot | list, trailing comma
JSCTLNone !(JSCommaList a) | list

#### Instances

Instances details

Data a => Data (JSCommaTrailingList a) Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSCommaTrailingList a -> c (JSCommaTrailingList a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (JSCommaTrailingList a) Source #

toConstr :: JSCommaTrailingList a -> Constr Source #

dataTypeOf :: JSCommaTrailingList a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (JSCommaTrailingList a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (JSCommaTrailingList a)) Source #

gmapT :: (forall b. Data b => b -> b) -> JSCommaTrailingList a -> JSCommaTrailingList a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSCommaTrailingList a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSCommaTrailingList a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSCommaTrailingList a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSCommaTrailingList a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSCommaTrailingList a -> m (JSCommaTrailingList a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSCommaTrailingList a -> m (JSCommaTrailingList a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSCommaTrailingList a -> m (JSCommaTrailingList a) Source #

Show a => Show (JSCommaTrailingList a) Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSCommaTrailingList a -> ShowS Source # show :: JSCommaTrailingList a -> String Source # showList :: [JSCommaTrailingList a] -> ShowS Source #
Eq a => Eq (JSCommaTrailingList a) Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSCommaTrailingList a -> JSCommaTrailingList a -> Bool Source # (/=) :: JSCommaTrailingList a -> JSCommaTrailingList a -> Bool Source #

data JSArrowParameterList Source #

Constructors

JSUnparenthesizedArrowParameter !JSIdent |
JSParenthesizedArrowParameterList !JSAnnot !(JSCommaList JSExpression) !JSAnnot |

#### Instances

Instances details

Data JSArrowParameterList Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSArrowParameterList -> c JSArrowParameterList Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSArrowParameterList Source #

toConstr :: JSArrowParameterList -> Constr Source #

dataTypeOf :: JSArrowParameterList -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSArrowParameterList) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSArrowParameterList) Source #

gmapT :: (forall b. Data b => b -> b) -> JSArrowParameterList -> JSArrowParameterList Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSArrowParameterList -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSArrowParameterList -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSArrowParameterList -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSArrowParameterList -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSArrowParameterList -> m JSArrowParameterList Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSArrowParameterList -> m JSArrowParameterList Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSArrowParameterList -> m JSArrowParameterList Source #

Show JSArrowParameterList Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSArrowParameterList -> ShowS Source # show :: JSArrowParameterList -> String Source # showList :: [JSArrowParameterList] -> ShowS Source #
Eq JSArrowParameterList Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSArrowParameterList -> JSArrowParameterList -> Bool Source # (/=) :: JSArrowParameterList -> JSArrowParameterList -> Bool Source #

data JSTemplatePart Source #

Constructors

JSTemplatePart !JSExpression !JSAnnot !String | expr, rb, suffix

#### Instances

Instances details

Data JSTemplatePart Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSTemplatePart -> c JSTemplatePart Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSTemplatePart Source #

toConstr :: JSTemplatePart -> Constr Source #

dataTypeOf :: JSTemplatePart -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSTemplatePart) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSTemplatePart) Source #

gmapT :: (forall b. Data b => b -> b) -> JSTemplatePart -> JSTemplatePart Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSTemplatePart -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSTemplatePart -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSTemplatePart -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSTemplatePart -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSTemplatePart -> m JSTemplatePart Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSTemplatePart -> m JSTemplatePart Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSTemplatePart -> m JSTemplatePart Source #

Show JSTemplatePart Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSTemplatePart -> ShowS Source # show :: JSTemplatePart -> String Source # showList :: [JSTemplatePart] -> ShowS Source #
Eq JSTemplatePart Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSTemplatePart -> JSTemplatePart -> Bool Source # (/=) :: JSTemplatePart -> JSTemplatePart -> Bool Source #

data JSClassHeritage Source #

Constructors

JSExtends !JSAnnot !JSExpression |
JSExtendsNone |

#### Instances

Instances details

Data JSClassHeritage Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSClassHeritage -> c JSClassHeritage Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSClassHeritage Source #

toConstr :: JSClassHeritage -> Constr Source #

dataTypeOf :: JSClassHeritage -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSClassHeritage) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSClassHeritage) Source #

gmapT :: (forall b. Data b => b -> b) -> JSClassHeritage -> JSClassHeritage Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSClassHeritage -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSClassHeritage -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSClassHeritage -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSClassHeritage -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSClassHeritage -> m JSClassHeritage Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSClassHeritage -> m JSClassHeritage Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSClassHeritage -> m JSClassHeritage Source #

Show JSClassHeritage Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSClassHeritage -> ShowS Source # show :: JSClassHeritage -> String Source # showList :: [JSClassHeritage] -> ShowS Source #
Eq JSClassHeritage Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSClassHeritage -> JSClassHeritage -> Bool Source # (/=) :: JSClassHeritage -> JSClassHeritage -> Bool Source #

data JSClassElement Source #

Constructors

JSClassInstanceMethod !JSMethodDefinition |
JSClassStaticMethod !JSAnnot !JSMethodDefinition |
JSClassSemi !JSAnnot |

#### Instances

Instances details

Data JSClassElement Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSClassElement -> c JSClassElement Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSClassElement Source #

toConstr :: JSClassElement -> Constr Source #

dataTypeOf :: JSClassElement -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSClassElement) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSClassElement) Source #

gmapT :: (forall b. Data b => b -> b) -> JSClassElement -> JSClassElement Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSClassElement -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSClassElement -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSClassElement -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSClassElement -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSClassElement -> m JSClassElement Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSClassElement -> m JSClassElement Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSClassElement -> m JSClassElement Source #

Show JSClassElement Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSClassElement -> ShowS Source # show :: JSClassElement -> String Source # showList :: [JSClassElement] -> ShowS Source #
Eq JSClassElement Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSClassElement -> JSClassElement -> Bool Source # (/=) :: JSClassElement -> JSClassElement -> Bool Source #

data JSModuleItem Source #

Constructors

JSModuleImportDeclaration !JSAnnot !JSImportDeclaration | import,decl
JSModuleExportDeclaration !JSAnnot !JSExportDeclaration | export,decl
JSModuleStatementListItem !JSStatement |

#### Instances

Instances details

Data JSModuleItem Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSModuleItem -> c JSModuleItem Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSModuleItem Source #

toConstr :: JSModuleItem -> Constr Source #

dataTypeOf :: JSModuleItem -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSModuleItem) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSModuleItem) Source #

gmapT :: (forall b. Data b => b -> b) -> JSModuleItem -> JSModuleItem Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSModuleItem -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSModuleItem -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSModuleItem -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSModuleItem -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSModuleItem -> m JSModuleItem Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSModuleItem -> m JSModuleItem Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSModuleItem -> m JSModuleItem Source #

Show JSModuleItem Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSModuleItem -> ShowS Source # show :: JSModuleItem -> String Source # showList :: [JSModuleItem] -> ShowS Source #
Eq JSModuleItem Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSModuleItem -> JSModuleItem -> Bool Source # (/=) :: JSModuleItem -> JSModuleItem -> Bool Source #

data JSImportDeclaration Source #

Constructors

JSImportDeclaration !JSImportClause !JSFromClause !JSSemi | imports, module, semi
JSImportDeclarationBare !JSAnnot !String !JSSemi | module, module, semi

#### Instances

Instances details

Data JSImportDeclaration Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSImportDeclaration -> c JSImportDeclaration Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSImportDeclaration Source #

toConstr :: JSImportDeclaration -> Constr Source #

dataTypeOf :: JSImportDeclaration -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSImportDeclaration) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSImportDeclaration) Source #

gmapT :: (forall b. Data b => b -> b) -> JSImportDeclaration -> JSImportDeclaration Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSImportDeclaration -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSImportDeclaration -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSImportDeclaration -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSImportDeclaration -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSImportDeclaration -> m JSImportDeclaration Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportDeclaration -> m JSImportDeclaration Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportDeclaration -> m JSImportDeclaration Source #

Show JSImportDeclaration Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSImportDeclaration -> ShowS Source # show :: JSImportDeclaration -> String Source # showList :: [JSImportDeclaration] -> ShowS Source #
Eq JSImportDeclaration Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSImportDeclaration -> JSImportDeclaration -> Bool Source # (/=) :: JSImportDeclaration -> JSImportDeclaration -> Bool Source #

data JSImportClause Source #

Constructors

JSImportClauseDefault !JSIdent | default
JSImportClauseNameSpace !JSImportNameSpace | namespace
JSImportClauseNamed !JSImportsNamed | named imports
JSImportClauseDefaultNameSpace !JSIdent !JSAnnot !JSImportNameSpace | default, comma, namespace
JSImportClauseDefaultNamed !JSIdent !JSAnnot !JSImportsNamed | default, comma, named imports

#### Instances

Instances details

Data JSImportClause Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSImportClause -> c JSImportClause Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSImportClause Source #

toConstr :: JSImportClause -> Constr Source #

dataTypeOf :: JSImportClause -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSImportClause) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSImportClause) Source #

gmapT :: (forall b. Data b => b -> b) -> JSImportClause -> JSImportClause Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSImportClause -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSImportClause -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSImportClause -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSImportClause -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSImportClause -> m JSImportClause Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportClause -> m JSImportClause Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportClause -> m JSImportClause Source #

Show JSImportClause Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSImportClause -> ShowS Source # show :: JSImportClause -> String Source # showList :: [JSImportClause] -> ShowS Source #
Eq JSImportClause Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSImportClause -> JSImportClause -> Bool Source # (/=) :: JSImportClause -> JSImportClause -> Bool Source #

data JSFromClause Source #

Constructors

JSFromClause !JSAnnot !JSAnnot !String | from, string literal, string literal contents

#### Instances

Instances details

Data JSFromClause Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSFromClause -> c JSFromClause Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSFromClause Source #

toConstr :: JSFromClause -> Constr Source #

dataTypeOf :: JSFromClause -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSFromClause) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSFromClause) Source #

gmapT :: (forall b. Data b => b -> b) -> JSFromClause -> JSFromClause Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSFromClause -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSFromClause -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSFromClause -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSFromClause -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSFromClause -> m JSFromClause Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSFromClause -> m JSFromClause Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSFromClause -> m JSFromClause Source #

Show JSFromClause Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSFromClause -> ShowS Source # show :: JSFromClause -> String Source # showList :: [JSFromClause] -> ShowS Source #
Eq JSFromClause Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSFromClause -> JSFromClause -> Bool Source # (/=) :: JSFromClause -> JSFromClause -> Bool Source #

data JSImportNameSpace Source #

Import namespace, e.g. '* as whatever'

Constructors

JSImportNameSpace !JSBinOp !JSAnnot !JSIdent

- , as, ident

#### Instances

Instances details

Data JSImportNameSpace Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSImportNameSpace -> c JSImportNameSpace Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSImportNameSpace Source #

toConstr :: JSImportNameSpace -> Constr Source #

dataTypeOf :: JSImportNameSpace -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSImportNameSpace) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSImportNameSpace) Source #

gmapT :: (forall b. Data b => b -> b) -> JSImportNameSpace -> JSImportNameSpace Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSImportNameSpace -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSImportNameSpace -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSImportNameSpace -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSImportNameSpace -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSImportNameSpace -> m JSImportNameSpace Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportNameSpace -> m JSImportNameSpace Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportNameSpace -> m JSImportNameSpace Source #

Show JSImportNameSpace Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSImportNameSpace -> ShowS Source # show :: JSImportNameSpace -> String Source # showList :: [JSImportNameSpace] -> ShowS Source #
Eq JSImportNameSpace Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSImportNameSpace -> JSImportNameSpace -> Bool Source # (/=) :: JSImportNameSpace -> JSImportNameSpace -> Bool Source #

data JSImportsNamed Source #

Named imports, e.g. '{ foo, bar, baz as quux }'

Constructors

JSImportsNamed !JSAnnot !(JSCommaList JSImportSpecifier) !JSAnnot | lb, specifiers, rb

#### Instances

Instances details

Data JSImportsNamed Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSImportsNamed -> c JSImportsNamed Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSImportsNamed Source #

toConstr :: JSImportsNamed -> Constr Source #

dataTypeOf :: JSImportsNamed -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSImportsNamed) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSImportsNamed) Source #

gmapT :: (forall b. Data b => b -> b) -> JSImportsNamed -> JSImportsNamed Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSImportsNamed -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSImportsNamed -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSImportsNamed -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSImportsNamed -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSImportsNamed -> m JSImportsNamed Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportsNamed -> m JSImportsNamed Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportsNamed -> m JSImportsNamed Source #

Show JSImportsNamed Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSImportsNamed -> ShowS Source # show :: JSImportsNamed -> String Source # showList :: [JSImportsNamed] -> ShowS Source #
Eq JSImportsNamed Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSImportsNamed -> JSImportsNamed -> Bool Source # (/=) :: JSImportsNamed -> JSImportsNamed -> Bool Source #

data JSImportSpecifier Source #

Note that this data type is separate from ExportSpecifier because the grammar is slightly different (e.g. in handling of reserved words).

Constructors

JSImportSpecifier !JSIdent | ident
JSImportSpecifierAs !JSIdent !JSAnnot !JSIdent | ident, as, ident

#### Instances

Instances details

Data JSImportSpecifier Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSImportSpecifier -> c JSImportSpecifier Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSImportSpecifier Source #

toConstr :: JSImportSpecifier -> Constr Source #

dataTypeOf :: JSImportSpecifier -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSImportSpecifier) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSImportSpecifier) Source #

gmapT :: (forall b. Data b => b -> b) -> JSImportSpecifier -> JSImportSpecifier Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSImportSpecifier -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSImportSpecifier -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSImportSpecifier -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSImportSpecifier -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSImportSpecifier -> m JSImportSpecifier Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportSpecifier -> m JSImportSpecifier Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSImportSpecifier -> m JSImportSpecifier Source #

Show JSImportSpecifier Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSImportSpecifier -> ShowS Source # show :: JSImportSpecifier -> String Source # showList :: [JSImportSpecifier] -> ShowS Source #
Eq JSImportSpecifier Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSImportSpecifier -> JSImportSpecifier -> Bool Source # (/=) :: JSImportSpecifier -> JSImportSpecifier -> Bool Source #

data JSExportDeclaration Source #

Constructors

JSExportFrom JSExportClause JSFromClause !JSSemi | exports, module, semi
JSExportLocals JSExportClause !JSSemi | exports, autosemi
JSExport !JSStatement !JSSemi | body, autosemi | JSExportDefault

#### Instances

Instances details

Data JSExportDeclaration Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSExportDeclaration -> c JSExportDeclaration Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSExportDeclaration Source #

toConstr :: JSExportDeclaration -> Constr Source #

dataTypeOf :: JSExportDeclaration -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSExportDeclaration) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSExportDeclaration) Source #

gmapT :: (forall b. Data b => b -> b) -> JSExportDeclaration -> JSExportDeclaration Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSExportDeclaration -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSExportDeclaration -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSExportDeclaration -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSExportDeclaration -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSExportDeclaration -> m JSExportDeclaration Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExportDeclaration -> m JSExportDeclaration Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExportDeclaration -> m JSExportDeclaration Source #

Show JSExportDeclaration Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSExportDeclaration -> ShowS Source # show :: JSExportDeclaration -> String Source # showList :: [JSExportDeclaration] -> ShowS Source #
Eq JSExportDeclaration Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSExportDeclaration -> JSExportDeclaration -> Bool Source # (/=) :: JSExportDeclaration -> JSExportDeclaration -> Bool Source #

data JSExportClause Source #

Constructors

JSExportClause !JSAnnot !(JSCommaList JSExportSpecifier) !JSAnnot | lb, specifiers, rb

#### Instances

Instances details

Data JSExportClause Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSExportClause -> c JSExportClause Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSExportClause Source #

toConstr :: JSExportClause -> Constr Source #

dataTypeOf :: JSExportClause -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSExportClause) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSExportClause) Source #

gmapT :: (forall b. Data b => b -> b) -> JSExportClause -> JSExportClause Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSExportClause -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSExportClause -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSExportClause -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSExportClause -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSExportClause -> m JSExportClause Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExportClause -> m JSExportClause Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExportClause -> m JSExportClause Source #

Show JSExportClause Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSExportClause -> ShowS Source # show :: JSExportClause -> String Source # showList :: [JSExportClause] -> ShowS Source #
Eq JSExportClause Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSExportClause -> JSExportClause -> Bool Source # (/=) :: JSExportClause -> JSExportClause -> Bool Source #

data JSExportSpecifier Source #

Constructors

JSExportSpecifier !JSIdent | ident
JSExportSpecifierAs !JSIdent !JSAnnot !JSIdent | ident1, as, ident2

#### Instances

Instances details

Data JSExportSpecifier Source # |

Instance details

Defined in Language.JavaScript.Parser.AST

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSExportSpecifier -> c JSExportSpecifier Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSExportSpecifier Source #

toConstr :: JSExportSpecifier -> Constr Source #

dataTypeOf :: JSExportSpecifier -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c JSExportSpecifier) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSExportSpecifier) Source #

gmapT :: (forall b. Data b => b -> b) -> JSExportSpecifier -> JSExportSpecifier Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSExportSpecifier -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSExportSpecifier -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> JSExportSpecifier -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSExportSpecifier -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSExportSpecifier -> m JSExportSpecifier Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExportSpecifier -> m JSExportSpecifier Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSExportSpecifier -> m JSExportSpecifier Source #

Show JSExportSpecifier Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods showsPrec :: Int -> JSExportSpecifier -> ShowS Source # show :: JSExportSpecifier -> String Source # showList :: [JSExportSpecifier] -> ShowS Source #
Eq JSExportSpecifier Source # |
Instance details Defined in Language.JavaScript.Parser.AST Methods (==) :: JSExportSpecifier -> JSExportSpecifier -> Bool Source # (/=) :: JSExportSpecifier -> JSExportSpecifier -> Bool Source #

binOpEq :: JSBinOp -> JSBinOp -> Bool Source #

showStripped :: JSAST -> String Source #

Show the AST elements stripped of their JSAnnot data.