@Override public ImmutableSortedSet<String> getUsedIjParamsForTemplate(String templateName) {
TemplateNode template = templateRegistryForNoCaching.getBasicTemplate(templateName);
if (template == null) {
throw new SoyTofuException("Template '" + templateName + "' not found.");
}
IjParamsInfo ijParamsInfo = templateToIjParamsInfoMap.get(template);
// TODO: Ideally we'd check that there are no external calls, but we find that in practice many
// users have written templates that conditionally call to undefined templates. Instead,
// we'll return a best effor set of what we have here, and over time, we'll encourage users to
// enforce the "assertNoExternalCalls" flag.
return ijParamsInfo.ijParamSet;