MCPcopy Create free account
hub / github.com/Snapchat/Valdi / constructor

Method constructor

compiler/companion/src/native/NativeCompiler.ts:118–127  ·  view source on GitHub ↗
(
    readonly sourceFile: ts.SourceFile,
    readonly filePath: string,
    readonly modulePath: string,
    readonly typeChecker: ts.TypeChecker,
    readonly options: NativeCompilerOptions,
  )

Source from the content-addressed store, hash-verified

116 private lastProcessingDeclaration: ts.Node | undefined = undefined;
117
118 constructor(
119 readonly sourceFile: ts.SourceFile,
120 readonly filePath: string,
121 readonly modulePath: string,
122 readonly typeChecker: ts.TypeChecker,
123 readonly options: NativeCompilerOptions,
124 ) {
125 this.moduleName = makeValidModuleName(modulePath);
126 this.moduleBuilder = new NativeCompilerModuleBuilder(this.moduleName, modulePath);
127 }
128
129 private allocateFunctionName(nameInitial: string): string {
130 return this.allocatedFunctionNames.allocate(nameInitial);

Callers

nothing calls this directly

Calls 1

makeValidModuleNameFunction · 0.85

Tested by

no test coverage detected