Package com.google.template.soy.msgs.internal

Examples of com.google.template.soy.msgs.internal.InsertMsgsVisitor


  public String genJavaSrc(
      SoyFileSetNode soyTree, SoyJavaSrcOptions javaSrcOptions, @Nullable SoyMsgBundle msgBundle)
      throws SoySyntaxException {

    try {
      (new InsertMsgsVisitor(msgBundle, false)).exec(soyTree);
    } catch (EncounteredPlrselMsgException e) {
      throw SoySyntaxExceptionUtils.createWithNode(
          "JavaSrc backend doesn't support plural/select messages.", e.msgNode);
    }
View Full Code Here


    if (templateRegistry == null) {
      if (!doAddToCache) {
        return null;
      }
      SoyFileSetNode soyTreeClone = soyTree.clone();
      (new InsertMsgsVisitor(key.first, true)).exec(soyTreeClone);
      (new RenameCssVisitor(key.second)).exec(soyTreeClone);
      simplifyVisitor.exec(soyTreeClone);
      templateRegistry = buildTemplateRegistry(soyTreeClone);
      cachedTemplateRegistries.put(key, templateRegistry);
    }
View Full Code Here

      } else {
        Preconditions.checkState(
            bidiGlobalDir == null || bidiGlobalDir.isStaticValue(),
            "If using bidiGlobalIsRtlCodeSnippet, must also enable shouldGenerateGoogMsgDefs.");
        try {
          (new InsertMsgsVisitor(msgBundle, false)).exec(soyTree);
        } catch (EncounteredPlrselMsgException e) {
          throw SoySyntaxExceptionUtils.createWithNode(
              "JS code generation currently only supports plural/select messages when" +
                  " shouldGenerateGoogMsgDefs is true.",
              e.msgNode);
View Full Code Here

TOP

Related Classes of com.google.template.soy.msgs.internal.InsertMsgsVisitor

Copyright © 2018 www.massapicom. 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.