CQL
alanguage
which allows writing queries on the code structure of
any.NETapplication, independently of the .NET language used (C#, VB.NET, C++/CLI …)
  • Which methods have been modified since the last release?
    SELECT METHODS WHERE CodeWasChanged

  • Which classes implement a particular interface?
    SELECT TYPES WHERE IsClass AND Implements "System.IDisposable"

  • Which methods create objects of a particular class?
    SELECT METHODS WHERE CreateA "MyNamespace.MyClass"

  • Which methods assign a particular field?
    SELECT METHODS WHERE IsDirectlyWriting "MyNamespace.MyClass.m_Field"

  • What are the 10 most complex methods?
    SELECT TOP 10 METHODS ORDER BY CyclomaticComplexity