@Test public void testWinEOL() { Tree tree = converter.parse( "fun main(args: Array<String>) {\r\n" + "\r\n" + "}\r\n"); assertThat(tree.children()).hasSize(1); }
@Override public Tree parse(String content) { KotlinTree kotlinTree = new KotlinTree(content); KotlinTreeVisitor kotlinTreeVisitor = new KotlinTreeVisitor(kotlinTree.psiFile, kotlinTree.metaDataProvider); return kotlinTreeVisitor.getSLangAST(); }
KotlinConverter implements ASTConverter { @Override public Tree parse(String content) { KotlinTree kotlinTree = new KotlinTree(content); KotlinTreeVisitor kotlinTreeVisitor = new KotlinTreeVisitor(kotlinTree.psiFile, kotlinTree.metaDataProvider); return kotlinTreeVisitor.getSLangAST(); } }
KotlinConverter implements ASTConverter { @Override public Tree parse(String content) { KotlinTree kotlinTree = new KotlinTree(content); KotlinTreeVisitor kotlinTreeVisitor = new KotlinTreeVisitor(kotlinTree.psiFile, kotlinTree.metaDataProvider); return kotlinTreeVisitor.getSLangAST(); }  }
KotlinConverter implements ASTConverter { @Override public Tree parse(String content) { KotlinTree kotlinTree = new KotlinTree(content); KotlinTreeVisitor kotlinTreeVisitor = new KotlinTreeVisitor(kotlinTree.psiFile, kotlinTree.metaDataProvider); return kotlinTreeVisitor.getSLangAST(); }  @Override Tree parse(String content); }
KotlinConverter implements ASTConverter { @Override public Tree parse(String content) { KotlinTree kotlinTree = new KotlinTree(content); KotlinTreeVisitor kotlinTreeVisitor = new KotlinTreeVisitor(kotlinTree.psiFile, kotlinTree.metaDataProvider); return kotlinTreeVisitor.getSLangAST(); }  @Override Tree parse(String content);  }