Add todo for follow up improvements

This commit is contained in:
Juan Martín Sotuyo Dodero
2019-02-02 13:56:29 -03:00
parent 1e1d6aafae
commit 422f44cf1a

View File

@ -114,6 +114,7 @@ public class AccessorMethodGenerationRule extends AbstractJavaRule {
List<ASTLiteral> literalNodes = expressions.findDescendantsOfType(ASTLiteral.class);
if (nameNodes.size() + literalNodes.size() < 2) {
for (ASTName node: nameNodes) {
// TODO : use the symbol table to get the declaration of the referenced var and check it
if (!cache.contains(node.getImage())) {
return false;
}