eliminateMaybeScopes

Have some variables that are maybescopes that were assigned values from other maybescope variables. Now that semantic analysis of the function is complete, we can finalize this by turning off maybescope for array elements that cannot be scope.

$(TABLE2 Scope Table, $(THEAD `va`, `v`, =>, `va` , `v` ) $(TROW maybe, maybe, =>, scope, scope) $(TROW scope, scope, =>, scope, scope) $(TROW scope, maybe, =>, scope, scope) $(TROW maybe, scope, =>, scope, scope) $(TROW - , - , =>, - , - ) $(TROW - , maybe, =>, - , - ) $(TROW - , scope, =>, error, error) $(TROW maybe, - , =>, scope, - ) $(TROW scope, - , =>, scope, - ) )

void
eliminateMaybeScopes

Parameters

array VarDeclaration[]

array of variables that were assigned to from maybescope variables

Suggestion Box / Bug Report