Setting const as an AST attribute instead of an AST node