File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3536,6 +3536,7 @@ fn (mut p Parser) parse_concrete_types() []ast.Type {
3536
3536
}
3537
3537
3538
3538
// is_generic_name returns true if the current token is a generic name.
3539
+ @[inline]
3539
3540
fn (p &Parser) is_generic_name () bool {
3540
3541
return p.tok.kind == .name && util.is_generic_type_name (p.tok.lit)
3541
3542
}
Original file line number Diff line number Diff line change @@ -572,14 +572,17 @@ pub fn ensure_modules_for_all_tools_are_installed(is_verbose bool) {
572
572
}
573
573
}
574
574
575
+ @[inline]
575
576
pub fn strip_mod_name (name string ) string {
576
577
return name.all_after_last ('.' )
577
578
}
578
579
580
+ @[inline]
579
581
pub fn strip_main_name (name string ) string {
580
582
return name.replace ('main.' , '' )
581
583
}
582
584
585
+ @[inline]
583
586
pub fn no_dots (s string ) string {
584
587
return s.replace ('.' , '__' )
585
588
}
You can’t perform that action at this time.
0 commit comments