Skip to content

pantoken / packages/utils/src / tokenNames

دالة: tokenNames()

tokenNames(ir): Set<string>

بيتا

مجموعة أسماء الرموز التي يعرفها IR.

المعلمات

ir

قراءة فقط Token[]

القيم المرجعة

Set<string>

مثال

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