checkConstructorEscape

Check struct constructor of the form s.this(args), by checking each return parameter to see if it gets assigned to s.

bool
checkConstructorEscape

Parameters

sc Scope*

used to determine current function and module

ce CallExp

constructor call of the form s.this(args)

gag bool

do not print error messages

Return Value

Type: bool

true if construction would cause an escaping reference error

Meta