Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated rollback of commit 7a262a6.
*** Reason for rollback *** Needed to rollback underlying bazelbuild@3774f00 *** Original change description *** Check for restricted Starlark syntax in REPO.bazel/MODULE.bazel files No `def`, `if`, etc. allowed. We extract the part of the NodeVisitor in PackageFactory that checks for this into a standalone RestrictedStarlarkSyntaxChecker class and clean up the interface (no need for the Consumer<SyntaxError> stuff if everyone already expects a SyntaxError.Exception for the compilation step anyway). PiperOrigin-RevId: 553485958 Change-Id: I40cf1aaf3235e781372e47f7a60ea6ab1ba9aecf
- Loading branch information