You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After semantic analysis in both cases, a will be considered to have a single reference of type ReferenceFlags::Write. In fact, since ReferenceFlags is an enum, it's impossible for a symbol reference to be both a read and a write.
ReferenceFlags should be a bitflag
When encountering an IdentifierReference, SemanticBuilder should walk up the AST on certain nodes (e.g. UpdateExpressions) and check for further reads/writes
The text was updated successfully, but these errors were encountered:
Consider the following code snippets:
After semantic analysis in both cases,
a
will be considered to have a single reference of typeReferenceFlags::Write
. In fact, sinceReferenceFlags
is an enum, it's impossible for a symbol reference to be both a read and a write.ReferenceFlags
should be a bitflagIdentifierReference
,SemanticBuilder
should walk up the AST on certain nodes (e.g.UpdateExpression
s) and check for further reads/writesThe text was updated successfully, but these errors were encountered: