Examples of IjParamsInfo


Examples of com.google.template.soy.sharedpasses.FindIjParamsVisitor.IjParamsInfo

        transitiveParamMap.put(param.key, new SoyDocParam(param.key, param.isRequired, null));
      }
    }

    // Get info on injected params.
    IjParamsInfo ijParamsInfo = (new FindIjParamsVisitor(templateRegistry)).exec(node);

    String upperUnderscoreName =
        convertToUpperUnderscore(node.getPartialTemplateName().substring(1));
    String templateInfoClassName =
        CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, upperUnderscoreName) +
View Full Code Here

Examples of com.google.template.soy.sharedpasses.FindIjParamsVisitor.IjParamsInfo

    public IjParamsInfo toFinishedInfo() {
      if (finishedInfo == null) {
        if (visitInfoOfEarliestEquivalent != null) {
          finishedInfo = visitInfoOfEarliestEquivalent.toFinishedInfo();
        } else {
          finishedInfo = new IjParamsInfo(
              ImmutableMultimap.copyOf(ijParamToCalleesMultimap),
              mayHaveIjParamsInExternalCalls, mayHaveIjParamsInExternalDelCalls);
        }
      }
      return finishedInfo;
View Full Code Here

Examples of com.google.template.soy.sharedpasses.FindIjParamsVisitor.IjParamsInfo

  @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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.