/** * @id py/examples/new-instance * @name Create new object * @description Finds places where we create a new instanceof `MyClass` * @tags call * constructor * new */ import python private import LegacyPointsTo from Call new, ClassValue cls where cls.getName() = "MyClass" and new.getFunc().(ExprWithPointsTo).pointsTo(cls) select new