Detect variable decl, array decl and index expressions.