{
  "id": "@typed/template#SelfClosingElementNode",
  "canonicalId": "@typed/template#SelfClosingElementNode",
  "symbol": {
    "id": "@typed/template#SelfClosingElementNode",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "SelfClosingElementNode",
    "kind": "class",
    "signatures": [
      "export declare class SelfClosingElementNode {\n    readonly _tag = \"self-closing-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    constructor(tagName: string, attributes: Array<Attribute>);\n}"
    ],
    "summary": "Represents a self-closing HTML element (e.g. `<br />`, `<img />`).",
    "sections": {
      "Why": "The distinct tag preserves author syntax for compilation and serialization.",
      "Ownership and lifetime": "The model owns parsed metadata, not the eventual native Element.",
      "Constructor": "Creates a self-closing element AST node.",
      "Constructor: Why": "Makes compiler input explicit.",
      "Constructor: Ownership and lifetime": "Retains parsed data and creates no DOM.",
      "Property: _tag": "Self-closing-element discriminant.",
      "Property: _tag: Why": "Preserves author syntax in compilation.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata.",
      "Property: attributes": "Parsed attributes.",
      "Property: attributes: Why": "Retains native directive distinctions.",
      "Property: attributes: Ownership and lifetime": "Retained AST array.",
      "Property: tagName": "Authored tag name.",
      "Property: tagName: Why": "Selects the native element kind.",
      "Property: tagName: Ownership and lifetime": "Retained string metadata."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { SelfClosingElementNode } from \"@typed/template/Template\"\n\nconst node = new SelfClosingElementNode(\"img\", [])"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Template.ts",
      "line": 428
    },
    "since": "1.0.0",
    "category": "Element structure"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#SelfClosingElementNode",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "SelfClosingElementNode",
    "qualifiedName": "SelfClosingElementNode",
    "declarationKey": "declaration:29515b70772ba98d95adf4de",
    "family": "class",
    "signatures": [
      "export declare class SelfClosingElementNode {\n    readonly _tag = \"self-closing-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    constructor(tagName: string, attributes: Array<Attribute>);\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 428,
          "column": 1
        },
        "end": {
          "line": 476,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 423,
          "column": 5
        },
        "end": {
          "line": 423,
          "column": 64
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 439,
          "column": 3
        },
        "end": {
          "line": 439,
          "column": 42
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 461,
          "column": 3
        },
        "end": {
          "line": 461,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 450,
          "column": 3
        },
        "end": {
          "line": 450,
          "column": 28
        }
      }
    ],
    "aliases": [
      "@typed/template/Template#SelfClosingElementNode"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:29515b70772ba98d95adf4de",
    "name": "SelfClosingElementNode",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare class SelfClosingElementNode {\n    readonly _tag = \"self-closing-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    constructor(tagName: string, attributes: Array<Attribute>);\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 428,
              "column": 1
            },
            "end": {
              "line": 476,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "constructor",
        "syntaxKind": "Constructor",
        "signatures": [
          "constructor(tagName: string, attributes: Array<Attribute>);"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/dist/Template.d.ts",
            "start": {
              "line": 423,
              "column": 5
            },
            "end": {
              "line": 423,
              "column": 64
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly _tag = \"self-closing-element\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 439,
              "column": 3
            },
            "end": {
              "line": 439,
              "column": 42
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly attributes: Array<Attribute>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 461,
              "column": 3
            },
            "end": {
              "line": 461,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly tagName: string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 450,
              "column": 3
            },
            "end": {
              "line": 450,
              "column": 28
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare class SelfClosingElementNode {\n    readonly _tag = \"self-closing-element\";\n    readonly tagName: string;\n    readonly attributes: Array<Attribute>;\n    constructor(tagName: string, attributes: Array<Attribute>);\n}"
    ],
    "typeParameters": [],
    "summary": "Represents a self-closing HTML element (e.g. `<br />`, `<img />`).",
    "sections": {
      "Why": "The distinct tag preserves author syntax for compilation and serialization.",
      "Ownership and lifetime": "The model owns parsed metadata, not the eventual native Element.",
      "Constructor": "Creates a self-closing element AST node.",
      "Constructor: Why": "Makes compiler input explicit.",
      "Constructor: Ownership and lifetime": "Retains parsed data and creates no DOM.",
      "Property: _tag": "Self-closing-element discriminant.",
      "Property: _tag: Why": "Preserves author syntax in compilation.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata.",
      "Property: attributes": "Parsed attributes.",
      "Property: attributes: Why": "Retains native directive distinctions.",
      "Property: attributes: Ownership and lifetime": "Retained AST array.",
      "Property: tagName": "Authored tag name.",
      "Property: tagName: Why": "Selects the native element kind.",
      "Property: tagName: Ownership and lifetime": "Retained string metadata."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { SelfClosingElementNode } from \"@typed/template/Template\"\n\nconst node = new SelfClosingElementNode(\"img\", [])"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 428,
          "column": 1
        },
        "end": {
          "line": 476,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 423,
          "column": 5
        },
        "end": {
          "line": 423,
          "column": 64
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 439,
          "column": 3
        },
        "end": {
          "line": 439,
          "column": 42
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 461,
          "column": 3
        },
        "end": {
          "line": 461,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 450,
          "column": 3
        },
        "end": {
          "line": 450,
          "column": 28
        }
      }
    ],
    "since": "1.0.0",
    "category": "Element structure"
  }
}
