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

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

Predicates

getAnAttribute

Gets an attribute attached to this element, if any.

hasLocationInfo

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.

toString

Gets a textual representation of this element.