B2G/gecko/config/static-checking.js
// This is useful for detecting method overrides
This is useful for detecting method overrides
This is useful for detecting method overrides
function signaturesMatch(m1, m2)
{
  if (m1.shortName != m2.shortName)
    return false;
  if ((!!m1.isVirtual) != (!!m2.isVirtual))
    return false;
  if (m1.isStatic != m2.isStatic)
    return false;
  let p1 = m1.type.parameters;
  let p2 = m2.type.parameters;
  if (p1.length != p2.length)
    return false;
  for (let i = 0; i < p1.length; ++i)
    if (!params_match(p1[i], p2[i]))
      return false;
  return true;
}
function signaturesMatch ( m1 , m2 ) { if ( m1 . shortName != m2 . shortName ) return false ; if ( ( ! ! m1 . isVirtual ) != ( ! ! m2 . isVirtual ) ) return false ; if ( m1 . isStatic != m2 . isStatic ) return false ; let p1 = m1 . type . parameters ; let p2 = m2 . type . parameters ; if ( p1 . length != p2 . length ) return false ; for ( let i = 0 ; i < p1 . length ; ++ i ) if ( ! params_match ( p1 [ i ] , p2 [ i ] ) ) return false ; return true ; }
This is useful for detecting method overrides
This is useful for detecting method overrides