import Attribute from '../../../nodes/Attribute'; import Block from '../../Block'; import fix_attribute_casing from './fix_attribute_casing'; import ElementWrapper from './index'; import { string_literal } from '../../../utils/stringify'; import { b, x } from 'code-red'; import Expression from '../../../nodes/shared/Expression'; import Text from '../../../nodes/Text'; import { changed } from '../shared/changed'; import { Literal } from 'estree'; export default class AttributeWrapper { node: Attribute; parent: ElementWrapper; constructor(parent: ElementWrapper, block: Block, node: Attribute) { this.node = node; this.parent = parent; if (node.dependencies.size > 0) { parent.cannot_use_innerhtml(); block.add_dependencies(node.dependencies); // special case —