MCPcopy Create free account

hub / github.com/GuillaumeGomez/minifier-rs / functions

Functions371 in github.com/GuillaumeGomez/minifier-rs

↓ 50 callersMethodapply
(self, func: F)
src/js/token.rs:1054
↓ 43 callersMethodlen
(&self)
src/js/utils.rs:48
↓ 29 callersMethodto_string
(&self)
src/js/utils.rs:34
↓ 22 callersFunctiontokenize
(source: &str)
src/js/token.rs:907
↓ 19 callersFunctionsimple_minify
(source: &str)
src/js/tools.rs:631
↓ 18 callersMethodnext
(&mut self)
src/js/utils.rs:29
↓ 15 callersFunctioninner_double_checks
(source: &str, expected: &str)
src/js/tools.rs:1030
↓ 14 callersFunctionblock
(shortty, longty)
tests/files/main.js:1762
↓ 14 callersFunctionblock
(shortty,longty)
tests/files/minified_main.js:1
↓ 14 callersMethodis_white_character
(&self)
src/js/token.rs:41
↓ 12 callersMethodnext
(&mut self)
src/js/token.rs:889
↓ 11 callersFunctioncollapseDocs
(toggle, mode, pageId)
tests/files/main.js:1949
↓ 11 callersFunctioncollapseDocs
(toggle,mode,pageId)
tests/files/minified_main.js:1
↓ 11 callersMethodis_comment
(&self)
src/js/token.rs:418
↓ 10 callersMethodpeek
Returns None if saving.
src/js/token.rs:873
↓ 9 callersMethodget_char
(&self)
src/js/token.rs:430
↓ 8 callersMethodinto_iter
(self)
src/js/token.rs:1066
↓ 8 callersFunctionlabelForToggleButton
(sectionIsCollapsed)
tests/files/main.js:1875
↓ 8 callersFunctionlabelForToggleButton
(sectionIsCollapsed)
tests/files/minified_main.js:1
↓ 6 callersFunctionbrowserSupportsHistoryApi
()
tests/files/main.js:151
↓ 6 callersFunctionbrowserSupportsHistoryApi
()
tests/files/minified_main.js:1
↓ 6 callersFunctionget_array
( tokens: &'a Tokens<'a>, array_name: &str, )
src/js/utils.rs:412
↓ 6 callersFunctionlevenshtein
(s1, s2)
tests/files/main.js:411
↓ 6 callersFunctionlevenshtein
(s1,s2)
tests/files/minified_main.js:1
↓ 6 callersFunctionprintTab
(nb)
tests/files/main.js:2407
↓ 6 callersFunctionprintTab
(nb)
tests/files/minified_main.js:1
↓ 6 callersFunctiontypePassesFilter
(filter, type)
tests/files/main.js:831
↓ 6 callersFunctiontypePassesFilter
(filter,type)
tests/files/minified_main.js:1
↓ 5 callersFunctionaggregate_strings_into_array
(tokens: Tokens<'a>, array_name: &str)
src/js/tools.rs:595
↓ 5 callersMethodis_useless
(&self)
src/css/token.rs:106
↓ 5 callersFunctionminify
Returns a minified version of the provided HTML source.
src/html.rs:152
↓ 4 callersFunctionadjustToggle
(arg)
tests/files/main.js:1954
↓ 4 callersFunctionadjustToggle
(arg)
tests/files/minified_main.js:1
↓ 4 callersFunctionaggregate_strings_into_array_inner
( mut tokens: Tokens<'a>, array_name: &str, separation_token: Option<Token<'b>>, filter: T, )
src/js/tools.rs:396
↓ 4 callersMethodas_str
(&self)
src/cli.rs:69
↓ 4 callersMethodeq
(&self, other: &ReservedChar)
src/css/token.rs:329
↓ 4 callersMethodeq_char
(&self, rc: ReservedChar)
src/js/token.rs:437
↓ 4 callersFunctionextractGenerics
(val)
tests/files/main.js:620
↓ 4 callersFunctionextractGenerics
(val)
tests/files/minified_main.js:1
↓ 4 callersFunctiongetQueryStringParams
()
tests/files/main.js:140
↓ 4 callersFunctiongetQueryStringParams
()
tests/files/minified_main.js:1
↓ 4 callersMethodget_string
(&self)
src/js/token.rs:499
↓ 4 callersMethodis_other
(&self)
src/js/token.rs:466
↓ 4 callersFunctionsearch
(e, forced)
tests/files/main.js:1528
↓ 4 callersFunctionsearch
(e,forced)
tests/files/minified_main.js:1
↓ 3 callersFunctionaddTab
(array, query, display)
tests/files/main.js:1334
↓ 3 callersFunctionaddTab
(array,query,display)
tests/files/minified_main.js:1
↓ 3 callersFunctioncheckReturned
(obj, val, literalSearch)
tests/files/main.js:765
↓ 3 callersFunctioncheckReturned
(obj,val,literalSearch)
tests/files/minified_main.js:1
↓ 3 callersFunctioncheckType
(obj, val, literalSearch)
tests/files/main.js:674
↓ 3 callersFunctioncheckType
(obj,val,literalSearch)
tests/files/minified_main.js:1
↓ 3 callersFunctionclean_tokens_except
Same as `clean_tokens` except that if a token is considered as not desired, the callback is called. If the callback returns `false` as well, it will b
src/js/utils.rs:361
↓ 3 callersFunctiondisplayHelp
(display, ev, help)
tests/files/main.js:253
↓ 3 callersFunctiondisplayHelp
(display,ev,help)
tests/files/minified_main.js:1
↓ 3 callersFunctionescape
(content)
tests/files/main.js:1320
↓ 3 callersFunctionescape
(content)
tests/files/minified_main.js:1
↓ 3 callersFunctionfill_other
(source: &'a str, v: &mut Vec<Token<'a>>, start: usize, pos: usize)
src/js/token.rs:754
↓ 3 callersFunctiongenerateId
(ty)
tests/files/main.js:853
↓ 3 callersFunctiongenerateId
(ty)
tests/files/minified_main.js:1
↓ 3 callersFunctiongetQuery
(raw)
tests/files/main.js:1163
↓ 3 callersFunctiongetQuery
(raw)
tests/files/minified_main.js:1
↓ 3 callersMethodget_other
(&self)
src/js/token.rs:470
↓ 3 callersFunctionget_variable_name_and_value_positions
When looping over `Tokens`, if you encounter `Keyword::Var`, `Keyword::Let` or `Token::Other` using this function will allow you to get the variable n
src/js/utils.rs:177
↓ 3 callersFunctionhideModal
()
tests/files/main.js:2393
↓ 3 callersFunctionhideModal
()
tests/files/minified_main.js:1
↓ 3 callersFunctionhideSidebar
()
tests/files/main.js:114
↓ 3 callersFunctionhideSidebar
()
tests/files/minified_main.js:1
↓ 3 callersMethodis_char
(&self)
src/css/token.rs:289
↓ 3 callersFunctionmakeTabHeader
(tabNb, text, nbElems)
tests/files/main.js:1390
↓ 3 callersFunctionmakeTabHeader
(tabNb,text,nbElems)
tests/files/minified_main.js:1
↓ 3 callersFunctionmergeArrays
(arrays)
tests/files/main.js:1460
↓ 3 callersFunctionmergeArrays
(arrays)
tests/files/minified_main.js:1
↓ 3 callersFunctionsortResults
(results, isType)
tests/files/main.js:513
↓ 3 callersFunctionsortResults
(results,isType)
tests/files/minified_main.js:1
↓ 2 callersFunctionaggregate_strings_inner
( mut tokens: Tokens<'a>, separation_token: Option<Token<'b>>, )
src/js/tools.rs:237
↓ 2 callersFunctionaggregate_strings_into_array_with_separation
( tokens: Tokens<'a>, array_name: &str, separation_token: Token<'b>, )
src/js/tools.rs:548
↓ 2 callersFunctionaggregate_strings_into_array_with_separation_filter
( tokens: Tokens<'a>, array_name: &str, separation_token: Token<'b>, filter: T, )
src/js/tools.rs:560
↓ 2 callersMethodas_mut
(&mut self)
src/json/read/internal_buffer.rs:23
↓ 2 callersFunctionbuildHrefAndPath
(item)
tests/files/main.js:1282
↓ 2 callersFunctionbuildHrefAndPath
(item)
tests/files/minified_main.js:1
↓ 2 callersFunctioncallback
()
tests/files/main.js:1627
↓ 2 callersFunctioncheckGenerics
(obj, val)
tests/files/main.js:635
↓ 2 callersFunctioncheckGenerics
(obj,val)
tests/files/minified_main.js:1
↓ 2 callersFunctionclean_token
Returns true if the token is a "useful" one (so not a comment or a "useless" character).
src/js/utils.rs:311
↓ 2 callersFunctioncollapser
(e, collapse)
tests/files/main.js:2066
↓ 2 callersFunctioncollapser
(e,collapse)
tests/files/minified_main.js:1
↓ 2 callersFunctioncreateSimpleToggle
(sectionIsCollapsed)
tests/files/main.js:2109
↓ 2 callersFunctioncreateSimpleToggle
(sectionIsCollapsed)
tests/files/minified_main.js:1
↓ 2 callersFunctiondefocusSearchBar
()
tests/files/main.js:2540
↓ 2 callersFunctiondefocusSearchBar
()
tests/files/minified_main.js:1
↓ 2 callersMethodeq_operation
(&self, ope: Operation)
src/js/token.rs:444
↓ 2 callersFunctionexpandSection
(id)
tests/files/main.js:210
↓ 2 callersFunctionexpandSection
(id)
tests/files/minified_main.js:1
↓ 2 callersFunctionfill_other
( source: &'a str, v: &mut Vec<Token<'a>>, start: usize, pos: usize, is_in_block: isize,
src/css/token.rs:397
↓ 2 callersFunctionfindArg
(obj, val, literalSearch)
tests/files/main.js:745
↓ 2 callersFunctionfindArg
(obj,val,literalSearch)
tests/files/minified_main.js:1
↓ 2 callersFunctionfunc
(e)
tests/files/main.js:2122
↓ 2 callersFunctiongetPageId
()
tests/files/main.js:85
↓ 2 callersFunctiongetPageId
()
tests/files/minified_main.js:1
↓ 2 callersFunctiongetVirtualKey
(ev)
tests/files/main.js:241
next →1–100 of 371, ranked by callers