{ "type": "Module", "span": { "start": 0, "end": 276, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 0, "end": 276, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 16, "end": 27, "ctxt": 0 }, "value": "removeClass", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 29, "end": 45, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 29, "end": 45, "ctxt": 0 }, "value": "node", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 33, "end": 45, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 34, "end": 45, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 34, "end": 45, "ctxt": 0 }, "value": "HTMLElement", "optional": false }, "typeParams": null } } } }, { "type": "Parameter", "span": { "start": 47, "end": 63, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 47, "end": 63, "ctxt": 0 }, "value": "className", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 56, "end": 63, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 57, "end": 63, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 7, "end": 276, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 65, "end": 276, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 68, "end": 274, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 68, "end": 273, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 68, "end": 82, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 68, "end": 72, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 73, "end": 82, "ctxt": 0 }, "value": "className", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 85, "end": 273, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 85, "end": 107, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 85, "end": 99, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 85, "end": 89, "ctxt": 0 }, "value": "node", "optional": false }, "property": { "type": "Identifier", "span": { "start": 90, "end": 99, "ctxt": 0 }, "value": "className", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 100, "end": 107, "ctxt": 0 }, "value": "replace", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 108, "end": 135, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 108, "end": 124, "ctxt": 0 }, "value": "_classNameRegexp", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 125, "end": 134, "ctxt": 0 }, "value": "className", "optional": false } } ], "typeArguments": null } }, { "spread": null, "expression": { "type": "FunctionExpression", "identifier": null, "params": [ { "type": "Parameter", "span": { "start": 147, "end": 157, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 147, "end": 157, "ctxt": 0 }, "value": "everything", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 159, "end": 172, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 159, "end": 172, "ctxt": 0 }, "value": "leftDelimiter", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 174, "end": 178, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 174, "end": 178, "ctxt": 0 }, "value": "name", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 180, "end": 194, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 180, "end": 194, "ctxt": 0 }, "value": "rightDelimiter", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 137, "end": 272, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 196, "end": 272, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 200, "end": 269, "ctxt": 0 }, "argument": { "type": "ConditionalExpression", "span": { "start": 207, "end": 268, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 207, "end": 257, "ctxt": 0 }, "operator": "===", "left": { "type": "BinaryExpression", "span": { "start": 207, "end": 251, "ctxt": 0 }, "operator": "+", "left": { "type": "MemberExpression", "span": { "start": 207, "end": 227, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 207, "end": 220, "ctxt": 0 }, "value": "leftDelimiter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 221, "end": 227, "ctxt": 0 }, "value": "length", "optional": false } }, "right": { "type": "MemberExpression", "span": { "start": 230, "end": 251, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 230, "end": 244, "ctxt": 0 }, "value": "rightDelimiter", "optional": false }, "property": { "type": "Identifier", "span": { "start": 245, "end": 251, "ctxt": 0 }, "value": "length", "optional": false } } }, "right": { "type": "NumericLiteral", "span": { "start": 256, "end": 257, "ctxt": 0 }, "value": 2.0 } }, "consequent": { "type": "StringLiteral", "span": { "start": 260, "end": 263, "ctxt": 0 }, "value": " ", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "alternate": { "type": "StringLiteral", "span": { "start": 266, "end": 268, "ctxt": 0 }, "value": "", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } ], "interpreter": null }