使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly >名称
名称类
该类用于包含实体名称(变量、过程等)的数据库。
Signature:
export declare class Names
构造函数
属性
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The `Names` class manages a database of entity names, including variables and procedures. Key actions include constructing a new `Names` instance, checking name equality, and generating distinct, legal names. Methods allow retrieving user-created names, generating names for procedures and variables, and resetting the database. The class also manages a variable map, and can populate procedures and variables within a workspace. It handles reserved words and prevents name collisions.\n"]]