@autorest/modelerfour
Version:
AutoRest Modeler Version Four (component)
38 lines • 1.37 kB
TypeScript
import { CodeModel, ObjectSchema } from "@autorest/codemodel";
import { Session } from "@autorest/extension-base";
import { Style } from "@azure-tools/codegen";
import { ModelerFourOptions } from "../modeler/modelerfour-options";
export declare class PreNamer {
protected session: Session<CodeModel>;
codeModel: CodeModel;
options: ModelerFourOptions;
format: {
parameter: typeof Style.camel;
property: typeof Style.camel;
operation: typeof Style.pascal;
operationGroup: typeof Style.pascal;
responseHeader: typeof Style.pascal;
choice: typeof Style.pascal;
choiceValue: typeof Style.pascal;
constant: typeof Style.pascal;
constantParameter: typeof Style.camel;
type: typeof Style.pascal;
client: typeof Style.pascal;
local: typeof Style.camel;
global: typeof Style.pascal;
override: Record<string, string>;
};
enum: number;
constant: number;
private namingService;
constructor(session: Session<CodeModel>);
init(): Promise<this>;
process(): CodeModel;
private processChoiceNames;
private setParameterNames;
private setResponseHeaderNames;
fixParameterCollisions(): void;
fixCollisions(schema: ObjectSchema): void;
fixPropertyCollisions(): void;
}
//# sourceMappingURL=prenamer.d.ts.map