mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore(dotnet): generate generic EventHandlers (#6076)
This commit is contained in:
parent
33198c3d1a
commit
fd40c92a92
@ -280,10 +280,7 @@ function renderMember(member, parent, out) {
|
|||||||
throw new Error(`No Event Type for ${name} in ${parent.name}`);
|
throw new Error(`No Event Type for ${name} in ${parent.name}`);
|
||||||
if (member.spec)
|
if (member.spec)
|
||||||
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
|
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
|
||||||
if (parent && (classNameMap.get(parent.name) === type))
|
output(`event EventHandler<${type}> ${name};`);
|
||||||
output(`event EventHandler ${name};`); // event sender will be the type, so we're fine to ignore
|
|
||||||
else
|
|
||||||
output(`event EventHandler<${type}> ${name};`);
|
|
||||||
} else if (member.kind === 'property') {
|
} else if (member.kind === 'property') {
|
||||||
if (member.spec)
|
if (member.spec)
|
||||||
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
|
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user