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