is_text_attribute() — svelte Function Reference
Architecture documentation for the is_text_attribute() function in ast.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 653284b2_68fd_eee3_0064_918a4c065d4a["is_text_attribute()"] 0c5c28a7_226d_4e7c_e75e_0853c0a9fc2c["ast.js"] 653284b2_68fd_eee3_0064_918a4c065d4a -->|defined in| 0c5c28a7_226d_4e7c_e75e_0853c0a9fc2c cdc1fb24_8bb0_cade_bc99_13f6efb7c385["migrate_slot_usage()"] cdc1fb24_8bb0_cade_bc99_13f6efb7c385 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 75841e11_8cd1_4c07_bd42_ece901a4a83a["template.SlotElement()"] 75841e11_8cd1_4c07_bd42_ece901a4a83a -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 3f7147bd_f765_d166_38e7_10f71b9fd062["read_script()"] 3f7147bd_f765_d166_38e7_10f71b9fd062 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 553f3c22_7366_321b_ab4f_fcd972b6b687["attribute_matches()"] 553f3c22_7366_321b_ab4f_fcd972b6b687 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 4931635c_2415_3c69_a7a7_e98ad2cfd475["BindDirective()"] 4931635c_2415_3c69_a7a7_e98ad2cfd475 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a bbde109b_a581_1e5a_6599_6e5a025e1b96["SlotElement()"] bbde109b_a581_1e5a_6599_6e5a025e1b96 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 33910f4c_6ec4_15d9_8342_5265e706975f["SvelteElement()"] 33910f4c_6ec4_15d9_8342_5265e706975f -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 17dd7346_e043_e143_0605_8c529acf45a0["get_static_value()"] 17dd7346_e043_e143_0605_8c529acf45a0 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a c3969ef3_0f9b_1699_e3b6_75b4a9916c7d["validate_slot_attribute()"] c3969ef3_0f9b_1699_e3b6_75b4a9916c7d -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 059abfac_6785_3551_13a8_b20c40ff070b["BindDirective()"] 059abfac_6785_3551_13a8_b20c40ff070b -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 1e3b81f2_cd53_e5a5_0140_a9af38facf99["RegularElement()"] 1e3b81f2_cd53_e5a5_0140_a9af38facf99 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a 065fe64f_1a48_76b9_0518_0c1bcfb5f156["build_element_attribute_update()"] 065fe64f_1a48_76b9_0518_0c1bcfb5f156 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a e962c3e1_86a1_deae_f6f6_e1f565fa9687["build_element_special_value_attribute()"] e962c3e1_86a1_deae_f6f6_e1f565fa9687 -->|calls| 653284b2_68fd_eee3_0064_918a4c065d4a style 653284b2_68fd_eee3_0064_918a4c065d4a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/utils/ast.js lines 28–34
export function is_text_attribute(attribute) {
return (
Array.isArray(attribute.value) &&
attribute.value.length === 1 &&
attribute.value[0].type === 'Text'
);
}
Domain
Subdomains
Defined In
Called By
- BindDirective()
- BindDirective()
- RegularElement()
- SlotElement()
- SvelteElement()
- SvelteElement()
- attribute_matches()
- build_element_attribute_update()
- build_element_attributes()
- build_element_special_value_attribute()
- determine_slot()
- get_static_value()
- is_static_element()
- migrate_slot_usage()
- read_script()
- template.SlotElement()
- validate_slot_attribute()
Source
Frequently Asked Questions
What does is_text_attribute() do?
is_text_attribute() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/ast.js.
Where is is_text_attribute() defined?
is_text_attribute() is defined in packages/svelte/src/compiler/utils/ast.js at line 28.
What calls is_text_attribute()?
is_text_attribute() is called by 17 function(s): BindDirective, BindDirective, RegularElement, SlotElement, SvelteElement, SvelteElement, attribute_matches, build_element_attribute_update, and 9 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free