context.setFile should be called before parsing