Expose {method,section}Name on Method class (#975)

* Expose {method,module}Name on Method class

* moduleName -> sectionName to align
This commit is contained in:
Jaco Greeff
2019-06-07 08:24:16 +02:00
committed by GitHub
parent b2b2a2cdde
commit c366ede99f
+14
View File
@@ -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
*/