Migrate S1221 to AST