Lines Matching defs:ctx
24 static void GeneratePartialDeclForExported(const public_lib::Context *const ctx, ir::AstNode *const node)
29 ctx->checker->AsETSChecker()->HandlePartialType(node->AsClassDeclaration()->Definition()->TsType());
33 bool PartialExportClassGen::Perform(public_lib::Context *const ctx, parser::Program *const program)
35 if (ctx->checker->VarBinder()->IsGenStdLib()) {
39 Perform(ctx, extProg);
45 [ctx, &program](ir::AstNode *const ast) {
47 auto *const savedProg = ctx->checker->VarBinder()->AsETSBinder()->Program();
48 ctx->checker->VarBinder()->AsETSBinder()->SetProgram(program);
49 GeneratePartialDeclForExported(ctx, ast);
50 ctx->checker->VarBinder()->AsETSBinder()->SetProgram(savedProg);