(node: Node)
| 2494 | } |
| 2495 | |
| 2496 | const isFunction = (node: Node) => |
| 2497 | node.type === "ArrowFunctionExpression" || |
| 2498 | node.type === "FunctionExpression" || |
| 2499 | node.type === "FunctionDeclaration" || |
| 2500 | node.type === "ClassExpression" || |
| 2501 | node.type === "ClassDeclaration" |
| 2502 | |
| 2503 | // a token can't run across the text between two spans |
| 2504 | const spansContaining = ( |