Package com.google.template.soy.sharedpasses

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


  }


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



  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

  }


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


  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

      (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

Related Classes of com.google.template.soy.sharedpasses.CheckSoyDocVisitor$GetDataKeysInExprVisitor

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.