mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
414 B
JavaScript
17 lines
414 B
JavaScript
function process_type(c)
|
|
{
|
|
if ((c.kind == 'class' || c.kind == 'struct') && !c.isIncomplete) {
|
|
for each (let base in c.bases)
|
|
if (isFinal(base.type))
|
|
error("Class '" + c.name + "' derives from final class '" + base.name + "'.", c.loc);
|
|
}
|
|
}
|
|
|
|
function isFinal(c)
|
|
{
|
|
if (c.isIncomplete)
|
|
throw Error("Can't get final property for incomplete type.");
|
|
|
|
return hasAttribute(c, 'NS_final');
|
|
}
|