Skip to content

pantoken-root / packages/utils/src / tokenNames

Fonksyon: tokenNames() ​

tokenNames(ir): Set<string>

Beta

Gwoup non token ke yon IR defini.

Paramèt ​

ir ​

sèlman lekti Token[]

Retounen ​

Set<string>

Egzanp ​

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