Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
1234567891011121314151617181920212223242526import type { AnalysisContext } from '@hey-api/codegen-core';
import { py } from '../../py-compiler';import { PyDsl } from '../base';
const Mixed = PyDsl<py.Literal>;
export class LiteralPyDsl extends Mixed { readonly '~dsl' = 'LiteralPyDsl';
protected value: py.LiteralValue;
constructor(value: py.LiteralValue) { super(); this.value = value; }
override analyze(_ctx: AnalysisContext): void { super.analyze(_ctx); }
override toAst() { return py.factory.createLiteral(this.value); }}