SYMBOL INDEX (235 symbols across 29 files) FILE: build.rs function main (line 13) | fn main() -> Result<(), Box> { function generate_languages (line 21) | fn generate_languages(out_dir: &OsStr) -> Result<(), Box cmp::Ordering { function generate_tests (line 69) | fn generate_tests(out_dir: &OsStr) -> Result<(), Box> { function generate_tests_batch (line 80) | fn generate_tests_batch( FILE: fuzz/fuzz_targets/parse_from_slice.rs type FuzzInput (line 7) | pub struct FuzzInput<'a> { function parse_from_slice (line 15) | pub fn parse_from_slice(input: FuzzInput, check_total: bool) { FILE: src/cli.rs type Streaming (line 18) | pub enum Streaming { type Err (line 26) | type Err = String; method from_str (line 28) | fn from_str(s: &str) -> Result { type Cli (line 38) | pub struct Cli { method from_args (line 58) | pub fn from_args() -> Self { method file_input (line 309) | pub fn file_input(&self) -> Option<&String> { method ignored_directories (line 313) | pub fn ignored_directories(&self) -> Vec<&str> { method input (line 321) | pub fn input(&self) -> Vec<&str> { method print_supported_languages (line 328) | pub fn print_supported_languages() -> Result<(), Box Config { method print_input_parse_failure (line 453) | pub fn print_input_parse_failure(input_filename: &str) { FILE: src/cli_utils.rs constant NO_LANG_HEADER_ROW_LEN (line 21) | const NO_LANG_HEADER_ROW_LEN: usize = 69; constant NO_LANG_ROW_LEN (line 22) | const NO_LANG_ROW_LEN: usize = 63; constant NO_LANG_ROW_LEN_NO_SPACES (line 23) | const NO_LANG_ROW_LEN_NO_SPACES: usize = 56; constant IDENT_INACCURATE (line 24) | const IDENT_INACCURATE: &str = "(!)"; function crate_version (line 26) | pub fn crate_version() -> String { function setup_logger (line 41) | pub fn setup_logger(verbose_option: u64) { function parse_or_exit (line 57) | pub fn parse_or_exit(s: impl AsRef) -> T type NumberFormatStyle (line 70) | pub enum NumberFormatStyle { method separator (line 105) | fn separator(self) -> &'static str { method get_format (line 114) | pub fn get_format(self) -> Result Self { type Err (line 88) | type Err = String; method from_str (line 90) | fn from_str(s: &str) -> Result { type Printer (line 122) | pub struct Printer { function new (line 133) | pub fn new( function print_header (line 152) | pub fn print_header(&mut self) -> io::Result<()> { function print_inaccuracy_warning (line 170) | pub fn print_inaccuracy_warning(&mut self) -> io::Result<()> { function print_language (line 178) | pub fn print_language(&mut self, language: &Language, name: &str) -> io:... function print_language_in_print_total (line 198) | fn print_language_in_print_total(&mut self, language: &Language) -> io::... function print_language_name (line 233) | pub fn print_language_name( function print_code_stats (line 266) | fn print_code_stats( function print_language_total (line 297) | fn print_language_total(&mut self, parent: &Language) -> io::Result<()> { function print_results (line 317) | pub fn print_results<'a, I>( function print_row (line 399) | fn print_row(&mut self) -> io::Result<()> { function print_subrow (line 403) | fn print_subrow(&mut self) -> io::Result<()> { function print_report (line 407) | fn print_report( function print_report_total (line 426) | fn print_report_total(&mut self, report: &Report, inaccurate: bool) -> i... function print_report_with_name (line 446) | fn print_report_with_name(&mut self, report: &Report) -> io::Result<()> { function print_report_total_formatted (line 461) | fn print_report_total_formatted( function print_total (line 486) | pub fn print_total(&mut self, languages: &tokei::Languages) -> io::Resul... FILE: src/config.rs type Config (line 23) | pub struct Config { method get_config (line 64) | fn get_config(base: PathBuf) -> Option { method from_config_files (line 94) | pub fn from_config_files() -> Self { FILE: src/consts.rs constant FALLBACK_ROW_LEN (line 4) | pub const FALLBACK_ROW_LEN: usize = 81; constant LANGUAGE_COLUMN_WIDTH (line 9) | pub const LANGUAGE_COLUMN_WIDTH: usize = 10; constant PATH_COLUMN_WIDTH (line 12) | pub const PATH_COLUMN_WIDTH: usize = 80; constant FILES_COLUMN_WIDTH (line 15) | pub const FILES_COLUMN_WIDTH: usize = 8; constant LINES_COLUMN_WIDTH (line 18) | pub const LINES_COLUMN_WIDTH: usize = 12; constant CODE_COLUMN_WIDTH (line 21) | pub const CODE_COLUMN_WIDTH: usize = 12; constant COMMENTS_COLUMN_WIDTH (line 24) | pub const COMMENTS_COLUMN_WIDTH: usize = 12; constant BLANKS_COLUMN_WIDTH (line 27) | pub const BLANKS_COLUMN_WIDTH: usize = 12; FILE: src/input.rs type LanguageMap (line 6) | type LanguageMap = BTreeMap; type Output (line 9) | struct Output { function add_input (line 167) | pub fn add_input(input: &str, languages: &mut Languages) -> bool { function convert_input (line 203) | fn convert_input(contents: &str) -> Option { function formatting_print_matches_parse (line 217) | fn formatting_print_matches_parse() { FILE: src/language/embedding.rs type Capture (line 28) | pub struct Capture<'a> { function start (line 35) | fn start(&self) -> usize { function end (line 39) | pub fn end(&self) -> usize { function as_bytes (line 43) | pub fn as_bytes(&self) -> &[u8] { function fmt (line 49) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type RegexCache (line 58) | pub(crate) struct RegexCache<'a> { type RegexFamily (line 65) | pub(crate) enum RegexFamily<'a> { type HtmlLike (line 72) | pub(crate) struct HtmlLike<'a> { type SimpleCapture (line 78) | pub(crate) struct SimpleCapture<'a> { function start_script_in_range (line 83) | pub fn start_script_in_range<'this>( function start_style_in_range (line 91) | pub fn start_style_in_range<'this>( function start_template_in_range (line 99) | pub fn start_template_in_range<'this>( function starts_in_range (line 109) | pub fn starts_in_range<'this>( function make_capture (line 117) | fn make_capture( function filter_range (line 135) | fn filter_range<'dataset, 'cap>( function family (line 157) | pub(crate) fn family(&self) -> Option<&RegexFamily> { function build (line 164) | pub(crate) fn build(lang: LanguageType, lines: &'a [u8], start: usize, e... function save_captures (line 202) | fn save_captures<'a>( FILE: src/language/language_type.rs method serialize (line 28) | fn serialize(&self, serializer: S) -> Result method parse (line 39) | pub fn parse(self, path: PathBuf, config: &Config) -> Result>(self, text: A, config: &Config) -> ... method parse_from_slice (line 67) | pub fn parse_from_slice>(self, text: A, config: &Config) ... method parse_lines (line 136) | fn parse_lines( method parse_jupyter (line 217) | fn parse_jupyter(&self, json: &[u8], config: &Config) -> Option Option { function rust_allows_nested (line 316) | fn rust_allows_nested() { function assert_stats (line 320) | fn assert_stats(stats: &CodeStats, blanks: usize, code: usize, comments:... function jupyter_notebook_has_correct_totals (line 331) | fn jupyter_notebook_has_correct_totals() { function lf_embedded_language_is_counted (line 343) | fn lf_embedded_language_is_counted() { FILE: src/language/language_type.tera.rs type LanguageType (line 11) | pub enum LanguageType { constant READ_LIMIT (line 389) | const READ_LIMIT: usize = 128; function fmt (line 454) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function from (line 461) | fn from(from: LanguageType) -> Self { function from (line 467) | fn from(from: &'a LanguageType) -> Self { FILE: src/language/languages.rs type Languages (line 21) | pub struct Languages { method serialize (line 26) | fn serialize(&self, serializer: S) -> Result method deserialize (line 35) | fn deserialize(deserializer: D) -> Result method from_previous (line 46) | fn from_previous(map: BTreeMap) -> Self { method get_statistics (line 79) | pub fn get_statistics>( method new (line 97) | pub fn new() -> Self { method total (line 103) | pub fn total(self: &Languages) -> Language { method add_assign (line 145) | fn add_assign(&mut self, rhs: BTreeMap) { type Item (line 118) | type Item = as IntoIterator>::Item; type IntoIter (line 119) | type IntoIter = as IntoIterator>::Into... method into_iter (line 121) | fn into_iter(self) -> Self::IntoIter { type Item (line 127) | type Item = (&'a LanguageType, &'a Language); type IntoIter (line 128) | type IntoIter = btree_map::Iter<'a, LanguageType, Language>; method into_iter (line 130) | fn into_iter(self) -> Self::IntoIter { type Item (line 136) | type Item = (&'a LanguageType, &'a mut Language); type IntoIter (line 137) | type IntoIter = btree_map::IterMut<'a, LanguageType, Language>; method into_iter (line 139) | fn into_iter(self) -> Self::IntoIter { type Target (line 155) | type Target = BTreeMap; method deref (line 157) | fn deref(&self) -> &Self::Target { method deref_mut (line 163) | fn deref_mut(&mut self) -> &mut BTreeMap { FILE: src/language/mod.rs type Language (line 14) | pub struct Language { method new (line 37) | pub fn new() -> Self { method lines (line 44) | pub fn lines(&self) -> usize { method add_report (line 50) | pub fn add_report(&mut self, report: Report) { method mark_inaccurate (line 63) | pub fn mark_inaccurate(&mut self) { method summarise (line 72) | pub fn summarise(&self) -> Language { method total (line 103) | pub fn total(&mut self) { method is_empty (line 129) | pub fn is_empty(&self) -> bool { method sort_by (line 150) | pub fn sort_by(&mut self, category: Sort) { method add_assign (line 168) | fn add_assign(&mut self, mut rhs: Self) { FILE: src/language/syntax.rs type SyntaxCounter (line 28) | pub(crate) struct SyntaxCounter { method new (line 134) | pub(crate) fn new(language: LanguageType) -> Self { method is_plain_mode (line 146) | pub(crate) fn is_plain_mode(&self) -> bool { method _is_string_mode (line 151) | pub(crate) fn _is_string_mode(&self) -> bool { method _is_comment_mode (line 156) | pub(crate) fn _is_comment_mode(&self) -> bool { method get_lf_target_language (line 160) | pub(crate) fn get_lf_target_language(&self) -> LanguageType { method parse_line_comment (line 167) | pub(crate) fn parse_line_comment(&self, window: &[u8]) -> bool { method try_perform_single_line_analysis (line 185) | pub(crate) fn try_perform_single_line_analysis( method perform_multi_line_analysis (line 219) | pub(crate) fn perform_multi_line_analysis( method line_is_comment (line 301) | pub(crate) fn line_is_comment( method parse_context (line 361) | pub(crate) fn parse_context( method parse_quote (line 556) | pub(crate) fn parse_quote(&mut self, window: &[u8]) -> Option { method parse_end_of_quote (line 604) | pub(crate) fn parse_end_of_quote(&mut self, window: &[u8]) -> Option Op... method parse_end_of_multi_line (line 662) | pub(crate) fn parse_end_of_multi_line(&mut self, window: &[u8]) -> Opt... type FileContext (line 38) | pub(crate) struct FileContext { method new (line 45) | pub fn new(language: LanguageContext, end: usize, stats: CodeStats) ->... type LanguageContext (line 55) | pub(crate) enum LanguageContext { type SharedMatchers (line 68) | pub(crate) struct SharedMatchers { method new (line 86) | pub fn new(language: LanguageType) -> Arc { method init (line 96) | pub fn init(language: LanguageType) -> Self { type AnalysisReport (line 126) | pub(crate) enum AnalysisReport { FILE: src/main.rs function main (line 23) | fn main() -> Result<(), Box> { FILE: src/sort.rs type Sort (line 7) | pub enum Sort { method deserialize (line 41) | fn deserialize(deserializer: D) -> Result type Err (line 21) | type Err = String; method from_str (line 23) | fn from_str(s: &str) -> Result { function from (line 52) | fn from(from: Sort) -> Self { function from (line 58) | fn from(from: &'a Sort) -> Self { FILE: src/stats.rs type CodeStats (line 10) | pub struct CodeStats { method new (line 24) | pub fn new() -> Self { method lines (line 30) | pub fn lines(&self) -> usize { method summarise (line 37) | pub fn summarise(&self) -> Self { method add_assign (line 53) | fn add_assign(&mut self, rhs: Self) { method add_assign (line 59) | fn add_assign(&mut self, rhs: &'_ CodeStats) { type Report (line 73) | pub struct Report { method new (line 85) | pub fn new(name: PathBuf) -> Self { method add_assign (line 94) | fn add_assign(&mut self, rhs: CodeStats) { method fmt (line 126) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function find_char_boundary (line 101) | pub fn find_char_boundary(s: &str, index: usize) -> usize { FILE: src/utils/ext.rs type AsciiExt (line 3) | pub(crate) trait AsciiExt { method is_whitespace (line 4) | fn is_whitespace(&self) -> bool; method is_line_ending_whitespace (line 5) | fn is_line_ending_whitespace(&self) -> bool; method is_whitespace (line 9) | fn is_whitespace(&self) -> bool { method is_line_ending_whitespace (line 13) | fn is_line_ending_whitespace(&self) -> bool { type SliceExt (line 18) | pub(crate) trait SliceExt { method trim_first_and_last_line_of_whitespace (line 19) | fn trim_first_and_last_line_of_whitespace(&self) -> &Self; method trim_start (line 20) | fn trim_start(&self) -> &Self; method trim (line 21) | fn trim(&self) -> &Self; method contains_slice (line 22) | fn contains_slice(&self, needle: &Self) -> bool; method trim_first_and_last_line_of_whitespace (line 26) | fn trim_first_and_last_line_of_whitespace(&self) -> &Self { method trim_start (line 54) | fn trim_start(&self) -> &Self { method trim (line 69) | fn trim(&self) -> &Self { method contains_slice (line 89) | fn contains_slice(&self, needle: &Self) -> bool { function is_whitespace (line 116) | fn is_whitespace() { function trim (line 123) | fn trim() { function contains (line 136) | fn contains() { function trim_first_and_last_line_of_whitespace_edge_cases (line 145) | fn trim_first_and_last_line_of_whitespace_edge_cases() { FILE: src/utils/fs.rs constant IGNORE_FILE (line 12) | const IGNORE_FILE: &str = ".tokeignore"; function get_all_files (line 14) | pub fn get_all_files>( function get_extension (line 119) | pub(crate) fn get_extension(path: &Path) -> Option { function get_filename (line 123) | pub(crate) fn get_filename(path: &Path) -> Option { constant FILE_CONTENTS (line 139) | const FILE_CONTENTS: &[u8] = b"fn main() {}"; constant FILE_NAME (line 140) | const FILE_NAME: &str = "main.rs"; constant IGNORE_PATTERN (line 141) | const IGNORE_PATTERN: &str = "*.rs"; constant LANGUAGE (line 142) | const LANGUAGE: &LanguageType = &LanguageType::Rust; function ignore_directory_with_extension (line 145) | fn ignore_directory_with_extension() { function hidden (line 163) | fn hidden() { function no_ignore_implies_dot (line 192) | fn no_ignore_implies_dot() { function no_ignore_implies_vcs_gitignore (line 222) | fn no_ignore_implies_vcs_gitignore() { function no_ignore_parent (line 254) | fn no_ignore_parent() { function no_ignore_dot (line 288) | fn no_ignore_dot() { function no_ignore_dot_still_vcs_gitignore (line 318) | fn no_ignore_dot_still_vcs_gitignore() { function no_ignore_dot_includes_custom_ignore (line 341) | fn no_ignore_dot_includes_custom_ignore() { function no_ignore_vcs_gitignore (line 371) | fn no_ignore_vcs_gitignore() { function no_ignore_vcs_gitignore_still_dot (line 403) | fn no_ignore_vcs_gitignore_still_dot() { function no_ignore_vcs_gitexclude (line 424) | fn no_ignore_vcs_gitexclude() { function custom_ignore (line 456) | fn custom_ignore() { FILE: tests/accuracy.rs function treating_comments_as_code (line 63) | fn treating_comments_as_code() { FILE: tests/data/c.c function main (line 4) | int main(void) { function foo (line 11) | void foo() { function foobar (line 37) | void foobar() { type Point (line 46) | struct Point { FILE: tests/data/cpp.cpp function bubble_sort (line 6) | void bubble_sort(int a[10], int n) { function main (line 26) | int main() { FILE: tests/data/csharp.cs class Cls (line 9) | public class Cls method MyTest (line 13) | [Fact] FILE: tests/data/go.go function main (line 11) | func main() { function Foo (line 26) | func Foo( FILE: tests/data/hpp.hpp function print_value (line 15) | void print_value(T& t) FILE: tests/data/java.java class Test (line 6) | public class Test method main (line 9) | public static void main(String[] args) class Foo (line 17) | class Foo method bar (line 19) | public void bar() class BackSlash (line 26) | public class BackSlash { method run (line 27) | public void run() FILE: tests/data/javascript.js class Rectangle (line 15) | class Rectangle { method constructor (line 16) | constructor(width, height) { method area (line 21) | get area() { method calcArea (line 25) | calcArea() { FILE: tests/data/python.py function add (line 4) | def add(x, y): FILE: tests/data/rust.rs function main (line 11) | fn main() { function foo (line 22) | fn foo<'a, 'b>(name: &'b str) { function foobar (line 32) | fn foobar() { function foo (line 43) | fn foo() { FILE: tests/data/typescript.ts class Person (line 10) | class Person { method constructor (line 15) | constructor(age: number, name: string, height: number) {