chore(typedoc-plugin-appium): rename some vars
MODIFY
packages/typedoc-plugin-appium/lib/converter/builtin-method-map.ts
packages/typedoc-plugin-appium/lib/converter/builtin-method-map.ts
@@ -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),
});

MODIFY
packages/typedoc-plugin-appium/lib/converter/exec-method-map.ts
packages/typedoc-plugin-appium/lib/converter/exec-method-map.ts
@@ -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,

MODIFY
packages/typedoc-plugin-appium/lib/converter/external.ts
packages/typedoc-plugin-appium/lib/converter/external.ts
@@ -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,

MODIFY
packages/typedoc-plugin-appium/lib/converter/method-map.ts
packages/typedoc-plugin-appium/lib/converter/method-map.ts
@@ -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);

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