OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 19 matching lines...) Expand all Loading... |
30 */ | 30 */ |
31 function Matcher() | 31 function Matcher() |
32 { | 32 { |
33 this.clear(); | 33 this.clear(); |
34 } | 34 } |
35 exports.Matcher = Matcher; | 35 exports.Matcher = Matcher; |
36 | 36 |
37 Matcher.prototype = { | 37 Matcher.prototype = { |
38 /** | 38 /** |
39 * Lookup table for filters by their associated keyword | 39 * Lookup table for filters by their associated keyword |
40 * @type {Map.<string,Filter>} | 40 * @type {Map.<string,(Filter|Filter[])>} |
41 */ | 41 */ |
42 filterByKeyword: null, | 42 filterByKeyword: null, |
43 | 43 |
44 /** | 44 /** |
45 * Lookup table for keywords by the filter | 45 * Lookup table for keywords by the filter |
46 * @type {Map.<Filter,string>} | 46 * @type {Map.<Filter,string>} |
47 */ | 47 */ |
48 keywordByFilter: null, | 48 keywordByFilter: null, |
49 | 49 |
50 /** | 50 /** |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 424 |
425 return result; | 425 return result; |
426 } | 426 } |
427 }; | 427 }; |
428 | 428 |
429 /** | 429 /** |
430 * Shared CombinedMatcher instance that should usually be used. | 430 * Shared CombinedMatcher instance that should usually be used. |
431 * @type {CombinedMatcher} | 431 * @type {CombinedMatcher} |
432 */ | 432 */ |
433 exports.defaultMatcher = new CombinedMatcher(); | 433 exports.defaultMatcher = new CombinedMatcher(); |
OLD | NEW |