308 sr.mergeWith(cspCases(tree.cases));
309 result = sr;
310 }
311
312 public void visitCase(JCCase tree) {
313 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
314 sr.mergeWith(csp(tree.pat));
315 sr.mergeWith(csp(tree.stats));
316 result = sr;
317 }
318
319 public void visitSynchronized(JCSynchronized tree) {
320 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
321 sr.mergeWith(csp(tree.lock));
322 sr.mergeWith(csp(tree.body));
323 result = sr;
324 }
325
326 public void visitTry(JCTry tree) {
327 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
328 sr.mergeWith(csp(tree.body));
329 sr.mergeWith(cspCatchers(tree.catchers));
330 sr.mergeWith(csp(tree.finalizer));
331 result = sr;
332 }
333
334 public void visitCatch(JCCatch tree) {
335 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
336 sr.mergeWith(csp(tree.param));
337 sr.mergeWith(csp(tree.body));
338 result = sr;
339 }
340
341 public void visitConditional(JCConditional tree) {
342 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
343 sr.mergeWith(csp(tree.cond));
344 sr.mergeWith(csp(tree.truepart));
345 sr.mergeWith(csp(tree.falsepart));
346 result = sr;
347 }
|
308 sr.mergeWith(cspCases(tree.cases));
309 result = sr;
310 }
311
312 public void visitCase(JCCase tree) {
313 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
314 sr.mergeWith(csp(tree.pat));
315 sr.mergeWith(csp(tree.stats));
316 result = sr;
317 }
318
319 public void visitSynchronized(JCSynchronized tree) {
320 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
321 sr.mergeWith(csp(tree.lock));
322 sr.mergeWith(csp(tree.body));
323 result = sr;
324 }
325
326 public void visitTry(JCTry tree) {
327 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
328 sr.mergeWith(csp(tree.resources));
329 sr.mergeWith(csp(tree.body));
330 sr.mergeWith(cspCatchers(tree.catchers));
331 sr.mergeWith(csp(tree.finalizer));
332 result = sr;
333 }
334
335 public void visitCatch(JCCatch tree) {
336 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
337 sr.mergeWith(csp(tree.param));
338 sr.mergeWith(csp(tree.body));
339 result = sr;
340 }
341
342 public void visitConditional(JCConditional tree) {
343 SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
344 sr.mergeWith(csp(tree.cond));
345 sr.mergeWith(csp(tree.truepart));
346 sr.mergeWith(csp(tree.falsepart));
347 result = sr;
348 }
|