Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
558 B · 23 lines
TypeScript
123456789101112131415161718192021222324import type { PyNode, PyNodeBase } from '../base';import { PyNodeKind } from '../kinds';
export interface PySourceFile extends PyNodeBase { docstring?: string; kind: PyNodeKind.SourceFile; statements: ReadonlyArray<PyNode>;}
export function createSourceFile( statements: ReadonlyArray<PyNode>, docstring?: string, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>,): PySourceFile { return { docstring, kind: PyNodeKind.SourceFile, leadingComments, statements, trailingComments, };}