Adds name to expression and sets id to true on name attributes