update SourceMethod to pass name in super constructor

This commit is contained in:
Dave Holoway
2020-06-06 11:38:19 +01:00
parent c113e8bee0
commit 61b787d5ff

View File

@@ -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[]}
*/