use of com.google.template.soy.SoyFileSetParserBuilder in project closure-templates by google.
the class JsSrcSubject method parse.
private ParseResult parse() {
SoyFileSetParserBuilder builder = SoyFileSetParserBuilder.forFileContents(actual()).allowUnboundGlobals(true).declaredSyntaxVersion(syntaxVersion).typeRegistry(typeRegistry).options(generalOptions);
for (SoyFunction soyFunction : soyFunctions) {
builder.addSoyFunction(soyFunction);
}
ParseResult parse = builder.parse();
// genjscodevisitor depends on this having been run
return parse;
}
Aggregations