Analyses `code` directuves to determine the contexts attribute; completes #23