@@ -2962,11 +2962,9 @@ TEST_F(Test_Lex, jsx_nested_children) {
2962
2962
void Test_Lex::check_single_token (String8_View input,
2963
2963
String8_View expected_identifier_name,
2964
2964
Source_Location local_caller) {
2965
- static Source_Location caller;
2966
- caller = local_caller;
2967
2965
this ->check_single_token_with_errors (input,
2968
2966
Span<const Diagnostic_Assertion>(),
2969
- expected_identifier_name, caller );
2967
+ expected_identifier_name, local_caller );
2970
2968
}
2971
2969
2972
2970
void Test_Lex::check_single_token_with_errors (
@@ -3012,21 +3010,17 @@ void Test_Lex::check_single_token_with_errors(
3012
3010
void Test_Lex::check_tokens (
3013
3011
String8_View input, std::initializer_list<Token_Type> expected_token_types,
3014
3012
Source_Location local_caller) {
3015
- static Source_Location caller;
3016
- caller = local_caller;
3017
3013
this ->check_tokens_with_errors (input, Span<const Diagnostic_Assertion>(),
3018
- expected_token_types, caller );
3014
+ expected_token_types, local_caller );
3019
3015
}
3020
3016
3021
3017
void Test_Lex::check_tokens (
3022
3018
Padded_String_View input,
3023
3019
std::initializer_list<Token_Type> expected_token_types,
3024
3020
Source_Location local_caller) {
3025
- static Source_Location caller;
3026
- caller = local_caller;
3027
3021
this ->check_tokens_with_errors (input.string_view (),
3028
3022
Span<const Diagnostic_Assertion>(),
3029
- expected_token_types, caller );
3023
+ expected_token_types, local_caller );
3030
3024
}
3031
3025
3032
3026
void Test_Lex::check_tokens_with_errors (
0 commit comments