mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
update SourceMethod to pass name in super constructor
This commit is contained in:
@@ -187,17 +187,13 @@ class SourceMethod extends Method {
|
||||
* @param {MethodBlock} decl
|
||||
*/
|
||||
constructor(owner, decl) {
|
||||
super(mapmods(decl), decl.docs);
|
||||
super(decl.name, mapmods(decl), decl.docs);
|
||||
this._owner = owner;
|
||||
this._decl = decl;
|
||||
this._parameters = decl.parameters.map((p,i) => new SourceParameter(p));
|
||||
this._returnType = new ResolvableType(decl);
|
||||
}
|
||||
|
||||
get name() {
|
||||
return this._decl.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {SourceParameter[]}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user