Skip to content

Instantly share code, notes, and snippets.

@OliverUv
Created February 8, 2018 06:34
Show Gist options
  • Save OliverUv/e1af638724793b341eee4f4f9e902afd to your computer and use it in GitHub Desktop.
Save OliverUv/e1af638724793b341eee4f4f9e902afd to your computer and use it in GitHub Desktop.
> ag clone_created
two.ts
19: this.runtime_data.clone_created(entity_id, entity_to_add.entity_id);
one.ts
2: public clone_created(original_entity_id:string, clone_entity_id:string) : void {
> grep clone_created *
one.ts: public clone_created(original_entity_id:string, clone_entity_id:string) : void {
two.ts: this.runtime_data.clone_created(entity_id, entity_to_add.entity_id);
> rg --debug clone_created
DEBUG:grep::search: regex ast:
Literal {
chars: [
'c',
'l',
'o',
'n',
'e',
'_',
'c',
'r',
'e',
'a',
't',
'e',
'd'
],
casei: false
}
DEBUG:grep::literals: literal prefixes detected: Literals { lits: [Complete(clone_created)], limit_size: 250, limit_class: 10 }
DEBUG:globset: glob converted to regex: Glob { glob: "**/*.sw?", re: "(?-u)^(?:/?|.*/).*\\.sw.$", opts: GlobOptions { case_insensitive: false, literal_separator: false }, tokens: Tokens([RecursivePrefix, ZeroOrMore, Literal('.'), Literal('s'), Literal('w'), Any]) }
DEBUG:globset: glob converted to regex: Glob { glob: "**/callgrind.out.*", re: "(?-u)^(?:/?|.*/)callgrind\\.out\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false }, tokens: Tokens([RecursivePrefix, Literal('c'), Literal('a'), Literal('l'), Literal('l'), Literal('g'), Literal('r'), Literal('i'), Literal('n'), Literal('d'), Literal('.'), Literal('o'), Literal('u'), Literal('t'), Literal('.'), ZeroOrMore]) }
DEBUG:globset: built glob set; 0 literals, 10 basenames, 4 extensions, 0 prefixes, 2 suffixes, 0 required extensions, 2 regexes
one.ts
2: public clone_created(original_entity_id:string, clone_entity_id:string) : void {
> rg --debug -i clone_created
DEBUG:grep::search: regex ast:
Literal {
chars: [
'c',
'l',
'o',
'n',
'e',
'_',
'c',
'r',
'e',
'a',
't',
'e',
'd'
],
casei: true
}
DEBUG:grep::literals: required literals found: [Cut(CLONE_), Cut(cLONE_), Cut(ClONE_), Cut(clONE_), Cut(CLoNE_), Cut(cLoNE_), Cut(CloNE_), Cut(cloNE_), Cut(CLOnE_), Cut(cLOnE_), Cut(ClOnE_), Cut(clOnE_), Cut(CLonE_), Cut(cLonE_), Cut(ClonE_), Cut(clonE_), Cut(CLONe_), Cut(cLONe_), Cut(ClONe_), Cut(clONe_), Cut(CLoNe_), Cut(cLoNe_), Cut(CloNe_), Cut(cloNe_), Cut(CLOne_), Cut(cLOne_), Cut(ClOne_), Cut(clOne_), Cut(CLone_), Cut(cLone_), Cut(Clone_), Cut(clone_)]
DEBUG:globset: glob converted to regex: Glob { glob: "**/*.sw?", re: "(?-u)^(?:/?|.*/).*\\.sw.$", opts: GlobOptions { case_insensitive: false, literal_separator: false }, tokens: Tokens([RecursivePrefix, ZeroOrMore, Literal('.'), Literal('s'), Literal('w'), Any]) }
DEBUG:globset: glob converted to regex: Glob { glob: "**/callgrind.out.*", re: "(?-u)^(?:/?|.*/)callgrind\\.out\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false }, tokens: Tokens([RecursivePrefix, Literal('c'), Literal('a'), Literal('l'), Literal('l'), Literal('g'), Literal('r'), Literal('i'), Literal('n'), Literal('d'), Literal('.'), Literal('o'), Literal('u'), Literal('t'), Literal('.'), ZeroOrMore]) }
DEBUG:globset: built glob set; 0 literals, 10 basenames, 4 extensions, 0 prefixes, 2 suffixes, 0 required extensions, 2 regexes
two.ts
19: this.runtime_data.clone_created(entity_id, entity_to_add.entity_id);
one.ts
2: public clone_created(original_entity_id:string, clone_entity_id:string) : void {
> rg --debug -S clone_created
DEBUG:grep::search: regex ast:
Literal {
chars: [
'c',
'l',
'o',
'n',
'e',
'_',
'c',
'r',
'e',
'a',
't',
'e',
'd'
],
casei: true
}
DEBUG:grep::literals: required literals found: [Cut(CLONE_), Cut(cLONE_), Cut(ClONE_), Cut(clONE_), Cut(CLoNE_), Cut(cLoNE_), Cut(CloNE_), Cut(cloNE_), Cut(CLOnE_), Cut(cLOnE_), Cut(ClOnE_), Cut(clOnE_), Cut(CLonE_), Cut(cLonE_), Cut(ClonE_), Cut(clonE_), Cut(CLONe_), Cut(cLONe_), Cut(ClONe_), Cut(clONe_), Cut(CLoNe_), Cut(cLoNe_), Cut(CloNe_), Cut(cloNe_), Cut(CLOne_), Cut(cLOne_), Cut(ClOne_), Cut(clOne_), Cut(CLone_), Cut(cLone_), Cut(Clone_), Cut(clone_)]
DEBUG:globset: glob converted to regex: Glob { glob: "**/*.sw?", re: "(?-u)^(?:/?|.*/).*\\.sw.$", opts: GlobOptions { case_insensitive: false, literal_separator: false }, tokens: Tokens([RecursivePrefix, ZeroOrMore, Literal('.'), Literal('s'), Literal('w'), Any]) }
DEBUG:globset: glob converted to regex: Glob { glob: "**/callgrind.out.*", re: "(?-u)^(?:/?|.*/)callgrind\\.out\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false }, tokens: Tokens([RecursivePrefix, Literal('c'), Literal('a'), Literal('l'), Literal('l'), Literal('g'), Literal('r'), Literal('i'), Literal('n'), Literal('d'), Literal('.'), Literal('o'), Literal('u'), Literal('t'), Literal('.'), ZeroOrMore]) }
DEBUG:globset: built glob set; 0 literals, 10 basenames, 4 extensions, 0 prefixes, 2 suffixes, 0 required extensions, 2 regexes
two.ts
19: this.runtime_data.clone_created(entity_id, entity_to_add.entity_id);
one.ts
2: public clone_created(original_entity_id:string, clone_entity_id:string) : void {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment