Skip to content

pantoken-root / 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" }