Store variants in AST