• apavlov@chromium.org's avatar
    DevTools: [JsDocValidator] Fix checking of receivers specified as arguments · 91fae4bb
    apavlov@chromium.org authored
    r169450 has resulted in multiple failures of existing code where functions
    annotated with @this are passed as arguments along with their receivers.
    
    The cases include:
    - Array.prototype.forEach and other iteration-with-callback methods.
    - RemoteObject.prototype.callFunction[JSON], whose functionDeclaration
      can be evaluated on any Object (but expect a certain type thereof).
    - WebInspector.Object.prototype.{add,remove}EventListener, which accepts
      the callback receiver as its third argument.
    
    This patch introduces receiver specification detection in these cases,
    or resorts to IGNORE in ambiguous situations.
    
    R=aandrey, sergeyv, vsevik
    NOTRY=true
    
    Review URL: https://codereview.chromium.org/203443010
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@169549 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    91fae4bb