12 lines
336 B
JavaScript
12 lines
336 B
JavaScript
export class JSXUtils {
|
|
static types;
|
|
static init(types) {
|
|
this.types = types;
|
|
}
|
|
static getAttributeName(attr) {
|
|
return this.types.isJSXNamespacedName(attr.name)
|
|
? `${attr.name.namespace.name}:${attr.name.name.name}`
|
|
: attr.name.name;
|
|
}
|
|
}
|
|
//# sourceMappingURL=jsx-utils.js.map
|