@@ -26,7 +26,7 @@ fn cannot_clash_with_subs<T: VarType, C: HasSubprograms>(
2626 ctx : & C ,
2727 pos : Position ,
2828) -> Result < ( ) , LintErrorPos > {
29- if ctx. subs ( ) . contains_key ( & var_name. bare_name ) {
29+ if ctx. subs ( ) . contains_key ( var_name. bare_name ( ) ) {
3030 Err ( LintError :: DuplicateDefinition . at_pos ( pos) )
3131 } else {
3232 Ok ( ( ) )
@@ -38,7 +38,7 @@ fn cannot_clash_with_local_constants<T: VarType>(
3838 ctx : & Context ,
3939 pos : Position ,
4040) -> Result < ( ) , LintErrorPos > {
41- match ctx. names . names ( ) . get_const_value ( & var_name. bare_name ) {
41+ match ctx. names . names ( ) . get_const_value ( var_name. bare_name ( ) ) {
4242 Some ( _) => Err ( LintError :: DuplicateDefinition . at_pos ( pos) ) ,
4343 _ => Ok ( ( ) ) ,
4444 }
@@ -55,7 +55,7 @@ impl CannotClashWithFunctions for DimVar {
5555 ctx : & Context ,
5656 pos : Position ,
5757 ) -> Result < ( ) , LintErrorPos > {
58- if ctx. functions ( ) . contains_key ( & self . bare_name ) {
58+ if ctx. functions ( ) . contains_key ( self . bare_name ( ) ) {
5959 Err ( LintError :: DuplicateDefinition . at_pos ( pos) )
6060 } else {
6161 Ok ( ( ) )
@@ -69,15 +69,15 @@ impl CannotClashWithFunctions for Parameter {
6969 ctx : & Context ,
7070 pos : Position ,
7171 ) -> Result < ( ) , LintErrorPos > {
72- if let Some ( func_qualifier) = ctx. function_qualifier ( & self . bare_name ) {
73- if self . var_type . is_extended ( ) {
72+ if let Some ( func_qualifier) = ctx. function_qualifier ( self . bare_name ( ) ) {
73+ if self . var_type ( ) . is_extended ( ) {
7474 Err ( LintError :: DuplicateDefinition . at_pos ( pos) )
7575 } else {
7676 // for some reason you can have a FUNCTION Add(Add)
7777 let q = self
78- . var_type
78+ . var_type ( )
7979 . to_qualifier_recursively ( )
80- . unwrap_or_else ( || self . bare_name . qualify ( ctx) ) ;
80+ . unwrap_or_else ( || self . bare_name ( ) . qualify ( ctx) ) ;
8181 if q == func_qualifier {
8282 Ok ( ( ) )
8383 } else {
@@ -97,7 +97,7 @@ fn user_defined_type_must_exist<T>(
9797where
9898 T : VarType ,
9999{
100- match var_name. var_type . as_user_defined_recursively ( ) {
100+ match var_name. var_type ( ) . as_user_defined_recursively ( ) {
101101 Some ( Positioned {
102102 element : type_name,
103103 pos,
0 commit comments