CodeQL library for C#
codeql/csharp-all 1.0.3-dev (changelog, source)

Class Attributable

An element that can have attributes. Either an assembly (Assembly), a field (Field), a parameter (Parameter), an operator (Operator), a method (Method), a constructor (Constructor), a destructor (Destructor), a callable accessor (CallableAccessor), a value or reference type (ValueOrRefType), a declaration with accessors (DeclarationWithAccessors), a local function (LocalFunction) or a lambda expression (LambdaExp).

Import path

import csharp

Direct supertypes

Known direct subtypes



Gets an attribute attached to this element, if any.


Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.


Gets a textual representation of this element.