Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a cache for parameters/responses/operations #6030

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
fix compilation issues
  • Loading branch information
ArcturusZhang committed Feb 21, 2025
commit 3b1b1df494c662a84bb63812299fecd7d8f04a62
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ import { XmlTestLibrary } from "@typespec/xml/testing";
import { LoggerLevel } from "../../../src/lib/logger-level.js";
import { Logger } from "../../../src/lib/logger.js";
import { CSharpEmitterOptions } from "../../../src/options.js";
import { CSharpEmitterContext } from "../../../src/sdk-context.js";
import { createSdkTypeCache, CSharpEmitterContext } from "../../../src/sdk-context.js";

export async function createEmitterTestHost(): Promise<TestHost> {
return createTestHost({
@@ -117,10 +117,6 @@ export async function createCSharpSdkContext(
return {
...context,
logger: new Logger(program.program, LoggerLevel.INFO),
__typeCache: {
types: new Map(),
models: new Map(),
enums: new Map(),
},
__typeCache: createSdkTypeCache(),
};
}
Loading
Oops, something went wrong.