Skip to main content
Module

x/libclang/mod.ts>CXToken

Deno FFI bindings for libclang
Go to Latest
class CXToken
import { CXToken } from "https://deno.land/x/libclang@1.0.0-beta.8/mod.ts";

Describes a single preprocessing token.

Constructors

new
CXToken(
buffer: Uint8Array,
)

Properties

readonly
kind: CXTokenKind

The kind of this token.

readonly
[BUFFER]: Uint8Array

Methods

dispose(): void

Free this token.

It is not strictly necessary to call this method. The memory will be released as part of JavaScript garbage collection.

Retrieve a source range that covers this token.

Retrieve the source location of this token.

getSpelling(): string

Determine the spelling of this token.

The spelling of a token is the textual representation of that token, e.g., the text of an identifier or keyword.