aspect Comments { public HashMap CompilationUnit.comments; public void CompilationUnit.setComments(HashMap map) { comments = map; } public FileRange CompilationUnit.findComment(String comment) { for(Map.Entry e : comments.entrySet()) if(e.getValue().equals(comment)) return e.getKey(); return null; } public FileRange Program.findComment(String comment) { for(CompilationUnit cu : getCompilationUnits()) { if(cu.fromSource()) { FileRange fr = cu.findComment(comment); if(fr != null) return fr; } } return null; } }