Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/matcher.js

Issue 29768682: Noissue - Update JSDoc @type for Matcher.filterByKeyword (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created May 2, 2018, 8:55 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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[])>}
Manish Jethani 2018/05/02 21:03:54 This can be a filter or an array of filters. I was
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
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();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld