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

Class TypeMention

A type mention, that is, any mention of a type in a source code file. For example, int is mentioned in int M() { return 1; }.

Import path

import csharp

Direct supertypes

Known direct subtypes

    Fields

    Predicates

    getLocation

    Gets the location of this type mention.

    getParent

    Gets the parent of this type mention, if any. For example, the parent of int is IEnumerable<int> in

    getTarget

    Gets the element to which this type mention belongs, if any. For example, IEnumerable<int> belongs to parameter p in

    getType

    Gets the type being mentioned.

    toString

    Gets a textual representation of this type mention.

    Charpred