Sema: Add request to compute if an AccessorDecl is transparent

Implicit accessors are sometimes transparent for performance reasons.
Previously this was done in Sema by maybeMarkTransparent(), which would
add a TransparentAttr. Replace this with a request.
This commit is contained in:
Slava Pestov
2019-07-26 23:46:34 -04:00
parent 37f0d6a613
commit e41760e44f
12 changed files with 131 additions and 31 deletions

View File

@@ -3568,6 +3568,7 @@ public:
rawAccessorKind,
rawAccessLevel,
fn->needsNewVTableEntry(),
fn->isTransparent(),
dependencies);
writeGenericParams(fn->getGenericParams());