зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1543461. Add the missing newline after a static assert in Web IDL codegen. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D26960 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
e28f6db31f
Коммит
423697c891
|
@ -5673,7 +5673,11 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
|
||||||
|
|
||||||
templateBody = ""
|
templateBody = ""
|
||||||
if forceOwningType:
|
if forceOwningType:
|
||||||
templateBody += 'static_assert(IsRefcounted<%s>::value, "We can only store refcounted classes.");' % typeName
|
templateBody += fill(
|
||||||
|
"""
|
||||||
|
static_assert(IsRefcounted<${typeName}>::value, "We can only store refcounted classes.");
|
||||||
|
""",
|
||||||
|
typeName=typeName)
|
||||||
|
|
||||||
if (not descriptor.interface.isConsequential() and
|
if (not descriptor.interface.isConsequential() and
|
||||||
not descriptor.interface.isExternal()):
|
not descriptor.interface.isExternal()):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче