MCPcopy
hub / github.com/sveltejs/svelte / create_attribute

Function create_attribute

packages/svelte/src/compiler/phases/nodes.js:56–69  ·  view source on GitHub ↗
(name, name_loc, start, end, value)

Source from the content-addressed store, hash-verified

54 * @returns {AST.Attribute}
55 */
56export function create_attribute(name, name_loc, start, end, value) {
57 return {
58 type: 'Attribute',
59 start,
60 end,
61 name,
62 name_loc,
63 value,
64 metadata: {
65 delegated: false,
66 needs_clsx: false
67 }
68 };
69}
70export class ExpressionMetadata {
71 /** True if the expression references state directly, or _might_ (via member/call expressions) */
72 has_state = false;

Callers 6

RegularElementFunction · 0.90
build_element_attributesFunction · 0.90
analyze_componentFunction · 0.90
RegularElementFunction · 0.90
read_static_attributeFunction · 0.90
read_attributeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected