Expose {method,section}Name on Method class (#975)
* Expose {method,module}Name on Method class
* moduleName -> sectionName to align
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user