/** * Inference the variable by its reference EDID * @param TES5Variable $variable * @param TES5MultipleScriptsScope $multipleScriptsScope * @throws ConversionException */ public function inferenceVariableByReferenceEdid(TES5Variable $variable, TES5MultipleScriptsScope $multipleScriptsScope) { //Check if it was inferenced to custom type already if (!$variable->getPropertyType()->isNativePapyrusType()) { return; //Do not even try to inference a type which is already non-native. } $this->inferenceWithCustomType($variable, $this->resolveInferenceTypeByReferenceEdid($variable), $multipleScriptsScope); }
public function getType() { return $this->referencesTo->getPropertyType(); }