test_class.declarator: resourceDirectory = Paths.get("src").resolve("test").resolve("resources").toAbsolutePath()
test_class.modifier: private final
test_class.original_string: private final Path resourceDirectory = Paths.get("src").resolve("test").resolve("resources").toAbsolutePath();
test_class.type: Path
test_class.var_name: resourceDirectory
test_class.declarator: ASSERT_DIR = "assert"
test_class.modifier: private static final
test_class.original_string: private static final String ASSERT_DIR = "assert";
test_class.type: String
test_class.var_name: ASSERT_DIR
test_class.declarator: SOURCE_DIR = "source"
test_class.modifier: private static final
test_class.original_string: private static final String SOURCE_DIR = "source";
test_class.type: String
test_class.var_name: SOURCE_DIR
test_class.file: misc/formatter/modules/formatter-core/src/test/java/org/ballerinalang/formatter/core/FormatterTest.java
test_class.identifier: FormatterTest
test_case.body: @Test(dataProvider = "test-file-provider")
      public void test(String source, String sourcePath) throws IOException {
          Path assertFilePath = Paths.get(resourceDirectory.toString(), sourcePath, ASSERT_DIR, source);
          Path sourceFilePath = Paths.get(resourceDirectory.toString(), sourcePath, SOURCE_DIR, source);
          String content = getSourceText(sourceFilePath);
          TextDocument textDocument = TextDocuments.from(content);
          SyntaxTree syntaxTree = SyntaxTree.from(textDocument);
          SyntaxTree newSyntaxTree = Formatter.format(syntaxTree);
          Assert.assertFalse(newSyntaxTree.hasDiagnostics());
          Assert.assertEquals(newSyntaxTree.toSourceCode(), getSourceText(assertFilePath));
      }
test_case.class_method_signature: FormatterTest.test(String source, String sourcePath)
test_case.full_signature: @Test(dataProvider = "test-file-provider") public void test(String source, String sourcePath)
test_case.identifier: test
test_case.invocations: get toString get toString getSourceText from from format assertFalse hasDiagnostics assertEquals toSourceCode getSourceText
test_case.modifiers: @Test(dataProvider = "test-file-provider") public
test_case.parameters: (String source, String sourcePath)
test_case.return: void
test_case.signature: void test(String source, String sourcePath)
focal_class.declarator: LOGGER = LoggerFactory.getLogger(Formatter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(Formatter.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: misc/formatter/modules/formatter-core/src/main/java/org/ballerinalang/formatter/core/Formatter.java
focal_class.identifier: Formatter
focal_class.class_method_signature: Formatter.format(String source)
focal_class.full_signature: public static String format(String source)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (String source)
focal_class.return: String
focal_class.signature: String format(String source)
focal_class.class_method_signature: Formatter.format(SyntaxTree syntaxTree, LineRange range)
focal_class.full_signature: public static SyntaxTree format(SyntaxTree syntaxTree, LineRange range)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (SyntaxTree syntaxTree, LineRange range)
focal_class.return: SyntaxTree
focal_class.signature: SyntaxTree format(SyntaxTree syntaxTree, LineRange range)
focal_class.class_method_signature: Formatter.format(SyntaxTree syntaxTree)
focal_class.full_signature: public static SyntaxTree format(SyntaxTree syntaxTree)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (SyntaxTree syntaxTree)
focal_class.return: SyntaxTree
focal_class.signature: SyntaxTree format(SyntaxTree syntaxTree)
focal_class.class_method_signature: Formatter.format(String source, FormattingOptions options)
focal_class.full_signature: public static String format(String source, FormattingOptions options)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (String source, FormattingOptions options)
focal_class.return: String
focal_class.signature: String format(String source, FormattingOptions options)
focal_class.class_method_signature: Formatter.format(SyntaxTree syntaxTree, LineRange range, FormattingOptions options)
focal_class.full_signature: public static SyntaxTree format(SyntaxTree syntaxTree, LineRange range, FormattingOptions options)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (SyntaxTree syntaxTree, LineRange range, FormattingOptions options)
focal_class.return: SyntaxTree
focal_class.signature: SyntaxTree format(SyntaxTree syntaxTree, LineRange range, FormattingOptions options)
focal_class.class_method_signature: Formatter.format(SyntaxTree syntaxTree, FormattingOptions options)
focal_class.full_signature: public static SyntaxTree format(SyntaxTree syntaxTree, FormattingOptions options)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (SyntaxTree syntaxTree, FormattingOptions options)
focal_class.return: SyntaxTree
focal_class.signature: SyntaxTree format(SyntaxTree syntaxTree, FormattingOptions options)
focal_class.class_method_signature: Formatter.modifyTree(SyntaxTree syntaxTree, FormattingOptions options, LineRange range)
focal_class.full_signature: private static SyntaxTree modifyTree(SyntaxTree syntaxTree, FormattingOptions options, LineRange range)
focal_class.identifier: modifyTree
focal_class.modifiers: private static
focal_class.parameters: (SyntaxTree syntaxTree, FormattingOptions options, LineRange range)
focal_class.return: SyntaxTree
focal_class.signature: SyntaxTree modifyTree(SyntaxTree syntaxTree, FormattingOptions options, LineRange range)
focal_method.body: public static String format(String source) {
          return format(source, new FormattingOptions());
      }
focal_method.class_method_signature: Formatter.format(String source)
focal_method.full_signature: public static String format(String source)
focal_method.identifier: format
focal_method.invocations: format
focal_method.modifiers: public static
focal_method.parameters: (String source)
focal_method.return: String
focal_method.signature: String format(String source)