Skip to content

pantoken / packages/utils/src / tokenNames

Függvény: tokenNames()

tokenNames(ir): Set<string>

Béta

Az IR által definiált token nevek halmaza.

Paraméterek

ir

readonly Token[]

Visszatérés

Set<string>

Példa

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