Swift: use switch/cases in GSourceTransformer