title: why doesn't this return an l-value?
body: <p>Maybe ReSharper or visual studio is wrong, but I don't think that this returns an r-value. I also don't think it actually sets the property in the $parent controller:</p>
  
  <pre><code>function getParentItem(path) {
      var obj = $scope.$parent;
      var param = null;
      var items = path.split(".");
      for (var i = 0; i &lt; items.length; i++) {
          var item = items[i];
          var split = item.split("(");
          if (split.length === 2) {
               param = split[1].replace(/[\)\']/g, "");
          }
          obj = obj[split[0]];
      }
      if (param == null) {
          var thisObj = obj;
          return thisObj;
     } else {
        return { obj: obj, param: param };
     }
  }
  </code></pre>
  
  <p>If I do this:</p>
  
  <pre><code>getParentItem($scope.someProperty) = "yadda"
  </code></pre>
  
  <p>I get error marked by probably ReSharper and I think it doesn't actually set the new value</p>