Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors
CheckAccessControls
to work with an abstraction of a "pro…
…perty reference" rather than a GETROP node directly. This change is a step towards adding support for ES6 class syntax. It is necessary because class syntax creates new ways of referencing properties that the existing code didn't model well. Refactoring to this abstraction allows us to reuse the existing logic, which is large, complex, and fragile. A number of latent errors in access control checking were discovered during this change (unchecked l-value syntaxes, ambiguity between override/overload/access). These issues are left as is since this is intended to have minimal impact on behaviour. Fixes will come later. A bunch of code is forked from `AccessControlUtils` into `CheckAccessControls` to support the new abstraction. A tracking bug exists for reconciliation. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=207583478
- Loading branch information