add constructor parameters to list of resolvable types

This commit is contained in:
Dave Holoway
2020-06-05 18:31:32 +01:00
parent ee8f6513bf
commit c113e8bee0

View File

@@ -98,6 +98,11 @@ class SourceType extends CEIType {
res.push(m._returnType);
m.parameters.forEach(p => res.push(p._paramType));
});
this.constructors.forEach(c => {
if (c instanceof SourceConstructor) {
c.parameters.forEach(p => res.push(p._paramType));
}
});
return res;
}
}