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

Class SinglelineComment

A single-line comment, for example line 1 in

// This method returns the successor of its argument
public int Succ(int x) => x + 1;

Import path

import csharp

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    toString

    Gets a textual representation of this comment line.

    Inherited predicates

    getLocation

    Gets the location of this comment line.

    from CommentLine
    getParent

    Gets the containing comment block.

    from CommentLine
    getRawText

    Gets the raw text of the comment, including the comment markers.

    from CommentLine
    getText

    Gets the text in the comment, trimmed to remove comment markers and leading and trailing whitespace.

    from CommentLine