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
Tighten the featureSet validation in the ASTValidator.java
With the recent go/accurately-maintain-script-node-featureSet change, we can make the ASTValidator to confirm after each pass that:
1. Features encountered during AST traversal of a SCRIPT <= compiler's allowable featureSet [Source] (becomes optional)
2. Features encountered during AST traversal of a SCRIPT <= that particular SCRIPT node’s FEATURE_SET (accurate, without overestimation during transpile)
3. every SCRIPT node’s FEATURE_SET <= compiler's allowable featureSet (possible to do)
#1 and #2 happened automatically as part of go/accurately-maintain-script-node-featureSet.
This CL adds #3 above.
PiperOrigin-RevId: 554614152
0 commit comments