+1
-1
compiler-core/src/ast.rs
+1
-1
compiler-core/src/ast.rs
···
2983
2983
self.call.find_node(byte_index)
2984
2984
}
2985
2985
2986
-
pub fn callback_arguments<'a>(&'a self) -> Option<&'a Vec<TypedArg>> {
2986
+
pub fn callback_arguments(&self) -> Option<&Vec<TypedArg>> {
2987
2987
let TypedExpr::Call { args, .. } = self.call.as_ref() else {
2988
2988
return None;
2989
2989
};
+12
-10
compiler-core/src/language_server/code_action.rs
+12
-10
compiler-core/src/language_server/code_action.rs
···
4539
4539
self.match_on_function_argument(arg, function_body, function_range);
4540
4540
"Pattern match on argument"
4541
4541
}
4542
-
Some(PatternMatchedValue::LetVariable {
4543
-
variable_name,
4544
-
variable_type,
4545
-
assignment_location: location,
4546
-
})
4547
-
| Some(PatternMatchedValue::UseVariable {
4548
-
variable_name,
4549
-
variable_type,
4550
-
use_location: location,
4551
-
}) => {
4542
+
Some(
4543
+
PatternMatchedValue::LetVariable {
4544
+
variable_name,
4545
+
variable_type,
4546
+
assignment_location: location,
4547
+
}
4548
+
| PatternMatchedValue::UseVariable {
4549
+
variable_name,
4550
+
variable_type,
4551
+
use_location: location,
4552
+
},
4553
+
) => {
4552
4554
self.match_on_let_variable(variable_name, variable_type, location);
4553
4555
"Pattern match on variable"
4554
4556
}