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