disallow_unparenthesized_sequences() — svelte Function Reference
Architecture documentation for the disallow_unparenthesized_sequences() function in component.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD cca6c9a3_eaa4_7ba9_c40b_0b55480181c9["disallow_unparenthesized_sequences()"] e0b68458_2221_34fb_262d_ecaf78877200["component.js"] cca6c9a3_eaa4_7ba9_c40b_0b55480181c9 -->|defined in| e0b68458_2221_34fb_262d_ecaf78877200 ac0e828c_7a1e_3117_eb2c_bc4013bf2c79["visit_component()"] ac0e828c_7a1e_3117_eb2c_bc4013bf2c79 -->|calls| cca6c9a3_eaa4_7ba9_c40b_0b55480181c9 ce90929d_1db4_baf9_6c9b_345d4fcb33ba["attribute_invalid_sequence_expression()"] cca6c9a3_eaa4_7ba9_c40b_0b55480181c9 -->|calls| ce90929d_1db4_baf9_6c9b_345d4fcb33ba style cca6c9a3_eaa4_7ba9_c40b_0b55480181c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js lines 168–177
function disallow_unparenthesized_sequences(expression, source) {
if (expression.type === 'SequenceExpression') {
let i = /** @type {number} */ (expression.start);
while (--i > 0) {
const char = source[i];
if (char === '(') break; // parenthesized sequence expressions are ok
if (char === '{') e.attribute_invalid_sequence_expression(expression);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does disallow_unparenthesized_sequences() do?
disallow_unparenthesized_sequences() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js.
Where is disallow_unparenthesized_sequences() defined?
disallow_unparenthesized_sequences() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js at line 168.
What does disallow_unparenthesized_sequences() call?
disallow_unparenthesized_sequences() calls 1 function(s): attribute_invalid_sequence_expression.
What calls disallow_unparenthesized_sequences()?
disallow_unparenthesized_sequences() is called by 1 function(s): visit_component.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free