mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
12 lines
284 B
Plaintext
12 lines
284 B
Plaintext
/**
|
|
* @name Test for object creations
|
|
*/
|
|
import csharp
|
|
|
|
from Assignment a, CollectionInitializer i, AnonymousObjectCreation o
|
|
where a.getLValue().(VariableAccess).getTarget().hasName("list2")
|
|
and i.getParent+() = a
|
|
and i.getElementInitializer(0).getArgument(0) = o
|
|
select i, o
|
|
|