node_modules/lit-analyzer/lib/index.cjs.js
/**
 * Creates a html attr based on a p5Attr.
 * @param p5Node
 * @param p5Attr
 * @param context
 */
Creates a html attr based on a p5Attr.
Creates a html attr based on a p5Attr .
function parseHtmlNodeAttr(p5Node, p5Attr, context) {
    var htmlNode = context.htmlNode;
    var _a = parseLitAttrName(p5Attr.name), name = _a.name, modifier = _a.modifier;
    var location = makeHtmlAttrLocation(p5Node, p5Attr);
    if (location == null) {
        return undefined;
    }
    var htmlAttrBase = {
        name: name.toLowerCase(),
        modifier: modifier,
        htmlNode: htmlNode,
        location: location
    };
    var htmlAttr = parseHtmlAttrBase(htmlAttrBase);
    htmlAttr.assignment = parseHtmlAttrAssignment(p5Node, p5Attr, htmlAttr, context);
    return htmlAttr;
}
function parseHtmlNodeAttr ( p5Node , p5Attr , context ) { var htmlNode = context . htmlNode ; var _a = parseLitAttrName ( p5Attr . name ) , name = _a . name , modifier = _a . modifier ; var location = makeHtmlAttrLocation ( p5Node , p5Attr ) ; if ( location == null ) { return undefined ; } var htmlAttrBase = { name : name . toLowerCase ( ) , modifier : modifier , htmlNode : htmlNode , location : location } ; var htmlAttr = parseHtmlAttrBase ( htmlAttrBase ) ; htmlAttr . assignment = parseHtmlAttrAssignment ( p5Node , p5Attr , htmlAttr , context ) ; return htmlAttr ; }
Creates a html attr based on a p5Attr.
Creates a html attr based on a p5Attr .