Skip to content

pantoken / packages/utils/src / tokenNames

Fungsi: tokenNames()

tokenNames(ir): Set<string>

Beta

Set nama token yang ditakrifkan oleh IR.

Parameter

ir

readonly Token[]

Mengembalikan

Set<string>

Contoh

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" }