You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/src/utils/isThisGetCallExpression.ts

9 lines
295 B

import { Node } from '../interfaces';
export default function isThisGetCallExpression(node: Node): boolean {
return node.type === 'CallExpression' &&
node.callee.type === 'MemberExpression' &&
node.callee.object.type === 'ThisExpression' &&
node.callee.property.name === 'get';
}