fork of hey-api/openapi-ts because I need some additional things
1import type { PyNodeBase } from '../base';
2import type { PyExpression } from '../expression';
3import { PyNodeKind } from '../kinds';
4
5export interface PyKeywordArgument extends PyNodeBase {
6 kind: PyNodeKind.KeywordArgument;
7 name: string;
8 value: PyExpression;
9}
10
11export function createKeywordArgument(
12 name: string,
13 value: PyExpression,
14 leadingComments?: ReadonlyArray<string>,
15 trailingComments?: ReadonlyArray<string>,
16): PyKeywordArgument {
17 return {
18 kind: PyNodeKind.KeywordArgument,
19 leadingComments,
20 name,
21 trailingComments,
22 value,
23 };
24}