joernio / joern

Open-source code analysis platform for C/C++/Java/Binary/Javascript/Python/Kotlin based on code property graphs. Discord https://discord.gg/vv4MH284Hc
https://joern.io/
Apache License 2.0
1.97k stars 267 forks source link

[C#]:The number of lines in the node matches the number of lines in the actual code. #4551

Open chengkenyong opened 4 months ago

chengkenyong commented 4 months ago

When I use Joern to scan C# code, I noticed that the number of lines in the nodes does not match the line numbers of the actual code. It seems that the line number of the nodes is always one less than the line number of the actual code.Why is this happening? 微信截图_20240511144232 微信截图_20240511144245

JeremyEkEk commented 2 weeks ago

My java project is the same