Add select all elements of type.
Add logic to gather all selected elements when building ast.