Safe Haskell | Safe |
---|---|
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
- | JSCallExpression !JSExpression !JSAnnot !(JSCommaList JSExpression) !JSAnnot
- | JSCallExpressionDot !JSExpression !JSAnnot !JSExpression
- | JSCallExpressionSquare !JSExpression !JSAnnot !JSExpression !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 JSIdent) !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
- | JSUnaryExpression !JSUnaryOp !JSExpression
- | JSVarInitExpression !JSExpression !JSVarInitializer
- data JSAnnot
- 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
- data JSSemi
- = JSSemi !JSAnnot
- | JSSemiAuto
- data JSAssignOp
- data JSTryCatch
- data JSTryFinally
- data JSStatement
- = JSStatementBlock !JSAnnot ![JSStatement] !JSAnnot !JSSemi
- | JSBreak !JSAnnot !JSIdent !JSSemi
- | JSLet !JSAnnot !(JSCommaList JSExpression) !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
- | JSForOf !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
- | JSForVarOf !JSAnnot !JSAnnot !JSAnnot !JSExpression !JSBinOp !JSExpression !JSAnnot !JSStatement
- | JSFunction !JSAnnot !JSIdent !JSAnnot !(JSCommaList JSIdent) !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
- data JSObjectProperty
- data JSPropertyName
- type JSObjectPropertyList = JSCommaTrailingList JSObjectProperty
- data JSAccessor
- data JSIdent
- data JSVarInitializer
- data JSArrayElement
- data JSCommaList a
- = JSLCons !(JSCommaList a) !JSAnnot !a
- | JSLOne !a
- | JSLNil
- data JSCommaTrailingList a
- = JSCTLComma !(JSCommaList a) !JSAnnot
- | JSCTLNone !(JSCommaList a)
- data JSArrowParameterList
- data JSModuleItem
- data JSImportDeclaration = JSImportDeclaration !JSImportClause !JSFromClause !JSSemi
- data JSImportClause
- data JSFromClause = JSFromClause !JSAnnot !JSAnnot !String
- data JSImportNameSpace = JSImportNameSpace !JSBinOp !JSAnnot !JSIdent
- data JSImportsNamed = JSImportsNamed !JSAnnot !(JSCommaList JSImportSpecifier) !JSAnnot
- data JSImportSpecifier
- data JSExportDeclaration
- data JSExportClause = JSExportClause !JSAnnot !(JSCommaList JSExportSpecifier) !JSAnnot
- data JSExportSpecifier
- binOpEq :: JSBinOp -> JSBinOp -> Bool
- showStripped :: JSAST -> String
Documentation
data JSExpression Source #
Constructors
Instances
Constructors
JSAnnot !TokenPosn ![CommentAnnotation] | Annotation: position and comment/whitespace information |
JSAnnotSpace | A single space character |
JSNoAnnot | No annotation |
Instances
Eq JSAnnot Source # | |
Data JSAnnot Source # | |
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 :: (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 # | |
Constructors
Instances
Eq JSBinOp Source # | |
Data JSBinOp Source # | |
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 :: (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 # | |
Constructors
Instances
Eq JSUnaryOp Source # | |
Data JSUnaryOp Source # | |
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 :: (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 # | |
Constructors
JSSemi !JSAnnot | |
JSSemiAuto |
Instances
Eq JSSemi Source # | |
Data JSSemi Source # | |
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 :: (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 # | |
data JSAssignOp Source #
Constructors
Instances
Eq JSAssignOp Source # | |
Defined in Language.JavaScript.Parser.AST Methods (==) :: JSAssignOp -> JSAssignOp -> Bool Source # (/=) :: JSAssignOp -> JSAssignOp -> Bool Source # | |
Data JSAssignOp Source # | |
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 :: (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 # | |
Defined in Language.JavaScript.Parser.AST |
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
Eq JSTryCatch Source # | |
Defined in Language.JavaScript.Parser.AST Methods (==) :: JSTryCatch -> JSTryCatch -> Bool Source # (/=) :: JSTryCatch -> JSTryCatch -> Bool Source # | |
Data JSTryCatch Source # | |
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 :: (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 # | |
Defined in Language.JavaScript.Parser.AST |
data JSTryFinally Source #
Constructors
JSFinally !JSAnnot !JSBlock | finally,block |
JSNoFinally |
Instances
data JSStatement Source #
Constructors
Instances
Eq JSStatement Source # | |
Defined in Language.JavaScript.Parser.AST Methods (==) :: JSStatement -> JSStatement -> Bool Source # (/=) :: JSStatement -> JSStatement -> Bool Source # | |
Data JSStatement Source # | |
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 :: (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 # | |
Defined in Language.JavaScript.Parser.AST |
Constructors
JSBlock !JSAnnot ![JSStatement] !JSAnnot | lbrace, stmts, rbrace |
Instances
Eq JSBlock Source # | |
Data JSBlock Source # | |
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 :: (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 # | |
data JSSwitchParts Source #
Constructors
JSCase !JSAnnot !JSExpression !JSAnnot ![JSStatement] | expr,colon,stmtlist |
JSDefault !JSAnnot !JSAnnot ![JSStatement] | colon,stmtlist |
Instances
Constructors
JSAstProgram ![JSStatement] !JSAnnot | source elements, trailing whitespace |
JSAstModule ![JSModuleItem] !JSAnnot | |
JSAstStatement !JSStatement !JSAnnot | |
JSAstExpression !JSExpression !JSAnnot | |
JSAstLiteral !JSExpression !JSAnnot |
Instances
Eq JSAST Source # | |
Data JSAST Source # | |
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 :: (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 # | |
data JSObjectProperty Source #
Constructors
JSPropertyAccessor !JSAccessor !JSPropertyName !JSAnnot ![JSExpression] !JSAnnot !JSBlock | (get|set), name, lb, params, rb, block |
JSPropertyNameandValue !JSPropertyName !JSAnnot ![JSExpression] | name, colon, value |
Instances
data JSPropertyName Source #
Constructors
JSPropertyIdent !JSAnnot !String | |
JSPropertyString !JSAnnot !String | |
JSPropertyNumber !JSAnnot !String |
Instances
data JSAccessor Source #
Accessors for JSObjectProperty is either get
or set
.
Constructors
JSAccessorGet !JSAnnot | |
JSAccessorSet !JSAnnot |
Instances
Eq JSAccessor Source # | |
Defined in Language.JavaScript.Parser.AST Methods (==) :: JSAccessor -> JSAccessor -> Bool Source # (/=) :: JSAccessor -> JSAccessor -> Bool Source # | |
Data JSAccessor Source # | |
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 :: (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 # | |
Defined in Language.JavaScript.Parser.AST |
Constructors
JSIdentName !JSAnnot !String | |
JSIdentNone |
Instances
Eq JSIdent Source # | |
Data JSIdent Source # | |
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 :: (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 # | |
data JSVarInitializer Source #
Constructors
JSVarInit !JSAnnot !JSExpression | assignop, initializer |
JSVarInitNone |
Instances
data JSArrayElement Source #
Constructors
JSArrayElement !JSExpression | |
JSArrayComma !JSAnnot |
Instances
data JSCommaList a Source #
Constructors
JSLCons !(JSCommaList a) !JSAnnot !a | head, comma, a |
JSLOne !a | single element (no comma) |
JSLNil |
Instances
Eq a => Eq (JSCommaList a) Source # | |
Defined in Language.JavaScript.Parser.AST Methods (==) :: JSCommaList a -> JSCommaList a -> Bool Source # (/=) :: JSCommaList a -> JSCommaList a -> Bool Source # | |
Data a => Data (JSCommaList a) Source # | |
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 :: (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 # | |
Defined in Language.JavaScript.Parser.AST |
data JSCommaTrailingList a Source #
Constructors
JSCTLComma !(JSCommaList a) !JSAnnot | list, trailing comma |
JSCTLNone !(JSCommaList a) | list |
Instances
data JSArrowParameterList Source #
Constructors
JSUnparenthesizedArrowParameter !JSIdent | |
JSParenthesizedArrowParameterList !JSAnnot !(JSCommaList JSIdent) !JSAnnot |
Instances
data JSModuleItem Source #
Constructors
JSModuleImportDeclaration !JSAnnot !JSImportDeclaration | import,decl |
JSModuleExportDeclaration !JSAnnot !JSExportDeclaration | export,decl |
JSModuleStatementListItem !JSStatement |
Instances
data JSImportDeclaration Source #
Constructors
JSImportDeclaration !JSImportClause !JSFromClause !JSSemi | imports, module, semi | JSImportDeclarationBare -- ^ module, semi |
Instances
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
data JSFromClause Source #
Constructors
JSFromClause !JSAnnot !JSAnnot !String | from, string literal, string literal contents |
Instances
data JSImportNameSpace Source #
Import namespace, e.g. '* as whatever'
Constructors
JSImportNameSpace !JSBinOp !JSAnnot !JSIdent |
|
Instances
data JSImportsNamed Source #
Named imports, e.g. '{ foo, bar, baz as quux }'
Constructors
JSImportsNamed !JSAnnot !(JSCommaList JSImportSpecifier) !JSAnnot | lb, specifiers, rb |
Instances
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
data JSExportDeclaration Source #
Constructors
JSExportFrom JSExportClause JSFromClause !JSSemi | exports, module, semi |
JSExportLocals JSExportClause !JSSemi | exports, autosemi |
JSExport !JSStatement !JSSemi | body, autosemi | JSExportDefault |
Instances
data JSExportClause Source #
Constructors
JSExportClause !JSAnnot !(JSCommaList JSExportSpecifier) !JSAnnot | lb, specifiers, rb |
Instances
data JSExportSpecifier Source #
Constructors
JSExportSpecifier !JSIdent | ident |
JSExportSpecifierAs !JSIdent !JSAnnot !JSIdent | ident1, as, ident2 |
Instances
showStripped :: JSAST -> String Source #
Show the AST elements stripped of their JSAnnot data.