Compiler Error is Caused With `^` in Code
See original GitHub issueDescribe the bug
When I run Stryker on my code (which can be found here), it tries to replace ^
with ==
, and in this case, that’s incorrect.
Expected behavior Stryker runs without generating a compiler error.
Desktop (please complete the following information):
- OS: Windows
- Type of project: .NET 5.0
- Stryker Version: 0.22.4
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Compilation error
Compilation error or compile error refers to a state when a compiler fails to compile a piece of computer program source code, either...
Read more >What are the causes of compile errors in C language ...
Compilation errors, in C or in any programming language, are caused by writing source code that does not follow the rules of the...
Read more >compiler errors
This page (originally an Appendix in the book) is intended to help you understand and fix common compiler errors that you may encounter....
Read more >What is the difference between run-time error and compiler ...
Compiler errors are due to inaccuracies in code, where the compiler throws an error to alert you to something which will not compile, ......
Read more >What Is a Compilation Error?
The most common cause of compilation errors is a syntax error. Syntax errors are errors in the form of the raw source code,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That would be a good improvement! And you’re correct, we should be doing more perf work…
I wouldn’t argue that bet. But with anything perf-related, it’s always good to get the numbers.
But here’s another thought. In the case that I presented, the code is doing
^
on twoNumericLiteralExpressionSyntax
nodes. Would it be possible to do a look at the nodes being used forExclusiveOrExpressionSyntax
, and for the simple cases you can run into (e.g. it’s usingNumericLiteralExpressionSyntax
orFalseLiteralExpressionSyntax
), you can determine which mutator to use. For other cases where something like anInvocationExpressionSyntax
orIdentifierNameSyntax
is in play, you can’t, so you’ll still have to do both mutations for^
.