public function replace(array $annotations) {
		$this->annotations = $annotations;
		$this->names = [];
		$index = 0;
		
		foreach ($annotations as $annotation) {
			$name = $annotation->getName();
			if (!array_key_exists($name, $this->names)) {
				$this->names[$name] = [];
			}
			$this->names[$name][] = $index++;
		}
	}