export interface AttributesParentBase { /** * Check if the token has a certain attribute * * 是否具有某属性 * @param key attribute name / 属性键 */ hasAttr(key: string): boolean; /** * Get the attribute * * 获取指定属性 * @param key attribute name / 属性键 */ getAttr(key: string): string | undefined; } /** * 子节点含有AttributesToken的类 * @param i AttributesToken子节点的位置 */