semgrep / semgrep

Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

Home Page:https://semgrep.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can semgrep resolve fully qualified name for imported type in C#?

jiseongg opened this issue · comments

Hi there,

I am trying to use semgrep just for fun, and have just became curious about its name resolution. I am inspecting the source code seriously, and found src/naming and src/matching modules. However, as a new-comer I find it difficult to understand everything on my own.

Consider a class A resides in Some.Name.Space.

using Some.Name.Space;

A a = new A();

For this code, can semgrep figure out that the A in line 3 is actually Some.Name.Space.A ?

Thanks.

Hi @jiseongg, questions like this are best suited for the #contributing channel on our community slack: https://go.semgrep.dev/slack -- many of the devs hang out there!