cxx-frontend
    Preparing search index...

    Class TranslationUnit

    Index

    Constructors

    Methods

    • Preprocesses the given source code.

      Parameters

      • source: string

        the source code

      • path: string

        the path of the source code

      Returns void

    • Returns the token at the given index.

      Parameters

      • index: number

        the index

      Returns undefined | Token

      the token or undefined

    • Returns the number of tokens.

      Returns number

      the number of tokens