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