123456789101112131415161718192021 |
- 'use strict';
- const {isOpeningParenToken} = require('@eslint-community/eslint-utils');
- const getCallExpressionArgumentsText = (node, sourceCode) => {
- const openingParenthesisToken = sourceCode.getTokenAfter(node.callee, isOpeningParenToken);
- const closingParenthesisToken = sourceCode.getLastToken(node);
- return sourceCode.text.slice(
- openingParenthesisToken.range[1],
- closingParenthesisToken.range[0],
- );
- };
- module.exports = getCallExpressionArgumentsText;
|