mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
20 lines
878 B
TypeScript
20 lines
878 B
TypeScript
import * as rpc from "@protobuf-ts/runtime-rpc";
|
|
import * as ts from "typescript";
|
|
import { DescriptorRegistry, TypescriptFile, TypeScriptImports } from "@protobuf-ts/plugin-framework";
|
|
/**
|
|
* Generates TypeScript code for runtime method information,
|
|
* from method field information.
|
|
*/
|
|
export declare class MethodInfoGenerator {
|
|
private readonly registry;
|
|
private readonly imports;
|
|
constructor(registry: DescriptorRegistry, imports: TypeScriptImports);
|
|
createMethodInfoLiterals(source: TypescriptFile, methodInfos: readonly rpc.PartialMethodInfo[]): ts.ArrayLiteralExpression;
|
|
createMethodInfoLiteral(source: TypescriptFile, methodInfo: rpc.PartialMethodInfo): ts.ObjectLiteralExpression;
|
|
/**
|
|
* Turn normalized method info returned by normalizeMethodInfo() back into
|
|
* the minimized form.
|
|
*/
|
|
private static denormalizeMethodInfo;
|
|
}
|