diff --git a/packages/types/src/primitive/Method.ts b/packages/types/src/primitive/Method.ts index 113587e6f23c..c0e48b27bb6b 100644 --- a/packages/types/src/primitive/Method.ts +++ b/packages/types/src/primitive/Method.ts @@ -220,6 +220,20 @@ export default class Method extends Struct implements IMethod { return this._meta; } + /** + * @description Returns the name of the method + */ + get methodName (): string { + return Method.findFunction(this.callIndex).method; + } + + /** + * @description Returns the module containing the method + */ + get sectionName (): string { + return Method.findFunction(this.callIndex).section; + } + /** * @description Returns the base runtime type name for this instance */