Skip to content

pantoken / packages/utils/src / tokenNames

Fonksiyon: tokenNames()

tokenNames(ir): Set<string>

Beta

Bir IR'in tanımladığı token adları kümesi.

Parametreler

ir

salt okunur Token[]

Döndürür

Set<string>

Örnek

ts
import { tokenNames } from "@pantoken/utils";
import type { Token } from "@pantoken/model";

const ir: Token[] = [
  { name: "--instui-leaf", syntax: "<color>", inherits: true, value: "#0374B5" },
];
tokenNames(ir); // → Set { "--instui-leaf" }