tokenBefore

Walk the syntax tree backward from pos looking for a node whose name is in types.