chore(typedoc-plugin-appium): rename some vars

This commit is contained in:
Christopher Hiller
2023-01-12 12:22:51 -08:00
parent 00e7e3f1ef
commit 0cad4b785c
4 changed files with 9 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ export class BuiltinMethodMapConverter extends BaseConverter<BuiltinCommands> {
const baseDriverRoutes = convertMethodMap({
log: this.log,
methodMapRef: methodMap,
methodMapRefl: methodMap,
parentRefl: baseDriverModuleRefl,
methods: findAsyncMethodsInReflection(baseDriverClassRefl, this.knownMethods),
});

View File

@@ -98,9 +98,9 @@ export function convertExecuteMethodMap({
const requiredParams = convertRequiredCommandParams(paramsProp);
const optionalParams = convertOptionalCommandParams(paramsProp);
const method = methods.get(command)?.method;
const methodRefl = methods.get(command)?.method;
if (strict && !method) {
if (strict && !methodRefl) {
log.error(
'(%s) No method found for command "%s" from script "%s"',
parentRefl.name,
@@ -110,13 +110,13 @@ export function convertExecuteMethodMap({
continue;
}
const commentData = deriveComment(command, methods, method, comment);
const commentData = deriveComment(command, methods, methodRefl, comment);
commandRefs.add(
new ExecMethodData(log, command, script, {
requiredParams,
optionalParams,
refl: method,
refl: methodRefl,
comment: commentData?.comment,
commentSource: commentData?.commentSource,
isPluginCommand,

View File

@@ -241,7 +241,7 @@ export class ExternalConverter extends BaseConverter<ProjectCommands> {
}
return convertMethodMap({
log: this.log,
methodMapRef: newMethodMapRefl,
methodMapRefl: newMethodMapRefl,
parentRefl: classRefl,
methods,
knownMethods: this.knownMethods,

View File

@@ -33,7 +33,7 @@ export interface ConvertMethodMapOpts {
/**
* A `MethodMap` object whose parent is `parentRefl`
*/
methodMapRef: MethodMapDeclarationReflection;
methodMapRefl: MethodMapDeclarationReflection;
/**
* All async methods in `parentRefl`
*/
@@ -60,7 +60,7 @@ export interface ConvertMethodMapOpts {
*/
export function convertMethodMap({
log,
methodMapRef,
methodMapRefl,
parentRefl,
methods,
knownMethods = new Map(),
@@ -69,7 +69,7 @@ export function convertMethodMap({
}: ConvertMethodMapOpts): RouteMap {
const routes: RouteMap = new Map();
const routeProps = filterChildrenByKind(methodMapRef, ReflectionKind.Property);
const routeProps = filterChildrenByKind(methodMapRefl, ReflectionKind.Property);
if (!routeProps.length) {
log.warn('(%s) No routes found in MethodMap; skipping', parentRefl.name);