< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/CRTable.java

Print this page




 456             result = sr;
 457         }
 458 
 459         public void visitBinary(JCBinary tree) {
 460             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 461             sr.mergeWith(csp(tree.lhs));
 462             sr.mergeWith(csp(tree.rhs));
 463             result = sr;
 464         }
 465 
 466         public void visitTypeCast(JCTypeCast tree) {
 467             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 468             sr.mergeWith(csp(tree.clazz));
 469             sr.mergeWith(csp(tree.expr));
 470             result = sr;
 471         }
 472 
 473         public void visitTypeTest(JCInstanceOf tree) {
 474             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 475             sr.mergeWith(csp(tree.expr));
 476             sr.mergeWith(csp(tree.clazz));
 477             result = sr;
 478         }
 479 
 480         public void visitIndexed(JCArrayAccess tree) {
 481             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 482             sr.mergeWith(csp(tree.indexed));
 483             sr.mergeWith(csp(tree.index));
 484             result = sr;
 485         }
 486 
 487         public void visitSelect(JCFieldAccess tree) {
 488             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 489             sr.mergeWith(csp(tree.selected));
 490             result = sr;
 491         }
 492 
 493         public void visitIdent(JCIdent tree) {
 494             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 495             result = sr;
 496         }




 456             result = sr;
 457         }
 458 
 459         public void visitBinary(JCBinary tree) {
 460             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 461             sr.mergeWith(csp(tree.lhs));
 462             sr.mergeWith(csp(tree.rhs));
 463             result = sr;
 464         }
 465 
 466         public void visitTypeCast(JCTypeCast tree) {
 467             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 468             sr.mergeWith(csp(tree.clazz));
 469             sr.mergeWith(csp(tree.expr));
 470             result = sr;
 471         }
 472 
 473         public void visitTypeTest(JCInstanceOf tree) {
 474             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 475             sr.mergeWith(csp(tree.expr));
 476             sr.mergeWith(csp(tree.pattern));
 477             result = sr;
 478         }
 479 
 480         public void visitIndexed(JCArrayAccess tree) {
 481             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 482             sr.mergeWith(csp(tree.indexed));
 483             sr.mergeWith(csp(tree.index));
 484             result = sr;
 485         }
 486 
 487         public void visitSelect(JCFieldAccess tree) {
 488             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 489             sr.mergeWith(csp(tree.selected));
 490             result = sr;
 491         }
 492 
 493         public void visitIdent(JCIdent tree) {
 494             SourceRange sr = new SourceRange(startPos(tree), endPos(tree));
 495             result = sr;
 496         }


< prev index next >