Add support for experimental features in the CompilerIntegrationTest.
Tested:
Manual: added an annotation to a test, and verified in the debugger that the expected experimental features were enabled for passing and failing tests.
GITHUB_BREAKING_CHANGES=None
@@ -137,6 +137,12 @@ public final class SoyFileSetParserBuilder {
return this;
}
+ /** Enable experiments. Returns this object, for chaining. */
+ public SoyFileSetParserBuilder enableExperimentalFeatures(ImmutableList<String> experiments) {
+ this.options.setExperimentalFeatures(experiments);
+ return this;
+ }
+
public SoyFileSetParserBuilder errorReporter(ErrorReporter errorReporter) {
this.errorReporter = errorReporter;
return this;
