fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 24 lines 616 B view raw
1import type { PyNodeBase } from '../base'; 2import type { PyExpression } from '../expression'; 3import { PyNodeKind } from '../kinds'; 4 5export interface PyCallExpression extends PyNodeBase { 6 args: ReadonlyArray<PyExpression>; 7 callee: PyExpression; 8 kind: PyNodeKind.CallExpression; 9} 10 11export function createCallExpression( 12 callee: PyExpression, 13 args: ReadonlyArray<PyExpression>, 14 leadingComments?: ReadonlyArray<string>, 15 trailingComments?: ReadonlyArray<string>, 16): PyCallExpression { 17 return { 18 args, 19 callee, 20 kind: PyNodeKind.CallExpression, 21 leadingComments, 22 trailingComments, 23 }; 24}