isRootTraitsCompilesScope

When a traits(compiles) is used on a function literal call we need to take into account if the body of the function violates any attributes, however, we must not affect the attribute inference on the outer function. The attributes of the function literal still need to be inferred, therefore we need a way to check for the scope that the traits compiles introduces.

bool
isRootTraitsCompilesScope

Parameters

sc Scope*

scope to be checked for

Return Value

Type: bool

true if the provided scope is the root of the traits compiles list of scopes.

Meta