Examples of CheckSoyDocVisitor


Examples of com.google.template.soy.sharedpasses.CheckSoyDocVisitor

  }


  private void assertValidSoyFiles(String... soyFileContents) {
    SoyFileSetNode soyTree = SharedTestUtils.parseSoyFiles(soyFileContents);
    (new CheckSoyDocVisitor(false)).exec(soyTree);
    (new CheckCallsVisitor()).exec(soyTree);
  }
View Full Code Here

Examples of com.google.template.soy.sharedpasses.CheckSoyDocVisitor


  private void assertInvalidSoyFiles(String expectedErrorMsgSubstr, String... soyFileContents) {

    SoyFileSetNode soyTree = SharedTestUtils.parseSoyFiles(soyFileContents);
    (new CheckSoyDocVisitor(false)).exec(soyTree);
    try {
      (new CheckCallsVisitor()).exec(soyTree);
    } catch (SoySyntaxException sse) {
      assertTrue(sse.getMessage().contains(expectedErrorMsgSubstr));
      return// test passes
View Full Code Here

Examples of com.google.template.soy.sharedpasses.CheckSoyDocVisitor

  }


  private void assertValidSoyFiles(String... soyFileContents) {
    SoyFileSetNode soyTree = SharedTestUtils.parseSoyFiles(soyFileContents);
    (new CheckSoyDocVisitor(false)).exec(soyTree);
    (new CheckDelegatesVisitor()).exec(soyTree);
  }
View Full Code Here

Examples of com.google.template.soy.sharedpasses.CheckSoyDocVisitor


  private void assertInvalidSoyFiles(String expectedErrorMsgSubstr, String... soyFileContents) {

    SoyFileSetNode soyTree = SharedTestUtils.parseSoyFiles(soyFileContents);
    (new CheckSoyDocVisitor(false)).exec(soyTree);
    try {
      (new CheckDelegatesVisitor()).exec(soyTree);
    } catch (SoySyntaxException sse) {
      assertTrue(
          "Message [" + sse.getMessage() + "] should contain [" + expectedErrorMsgSubstr + "]",
View Full Code Here

Examples of com.google.template.soy.sharedpasses.CheckSoyDocVisitor

      (new AssertSyntaxVersionV2Visitor()).exec(soyTree);
    } else {
      (new RemoveHtmlCommentsVisitor()).exec(soyTree);
    }
    (new VerifyPhnameAttrOnlyOnPlaceholdersVisitor()).exec(soyTree);
    (new CheckSoyDocVisitor(doEnforceSyntaxVersionV2)).exec(soyTree);
    if (doCheckOverrides) {
      (new CheckOverridesVisitor()).exec(soyTree);
    }
    (new CheckDelegatesVisitor()).exec(soyTree);
    (new CheckCallsVisitor()).exec(soyTree);
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.