Lines Matching defs:cut

140         for (CompilationUnitTree cut : asts) {
141 for (ImportTree imp : cut.getImports()) {
142 success &= testStatement(writer, sp, text, cut, imp);
144 for (Tree decl : cut.getTypeDecls()) {
145 success &= testStatement(writer, sp, text, cut, decl);
160 success &= testStatement(writer, sp, text, cut, mt);
162 testBlock(writer, sp, text, cut, bt);
180 private boolean testBranch(StringWriter writer, SourcePositions sp, String text, CompilationUnitTree cut, StatementTree statementTree) {
182 return testBlock(writer, sp, text, cut, (BlockTree) statementTree);
184 return testStatement(writer, sp, text, cut, statementTree);
189 private boolean testBlock(StringWriter writer, SourcePositions sp, String text, CompilationUnitTree cut, BlockTree blockTree) {
193 success &= testStatement(writer, sp, text, cut, st);
197 success &= testBranch(writer, sp, text, cut, ifTree.getThenStatement());
198 success &= testBranch(writer, sp, text, cut, ifTree.getElseStatement());
201 success &= testBranch(writer, sp, text, cut, whileLoopTree.getStatement());
204 success &= testBranch(writer, sp, text, cut, doWhileLoopTree.getStatement());
207 success &= testBranch(writer, sp, text, cut, forLoopTree.getStatement());
210 success &= testBranch(writer, sp, text, cut, labelTree.getStatement());
215 success &= testBranch(writer, sp, text, cut, statementTree);
223 private boolean testStatement(StringWriter writer, SourcePositions sp, String text, CompilationUnitTree cut, Tree statement) {
227 int start = (int) sp.getStartPosition(cut, statement);
228 int end = (int) sp.getEndPosition(cut, statement);
231 LineMap lineMap = cut.getLineMap();