mirror of
https://github.com/appium/appium.git
synced 2026-02-22 03:08:47 -06:00
chore(typedoc-plugin-appium): rename some vars
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user