get_loose_identifier() — svelte Function Reference
Architecture documentation for the get_loose_identifier() function in expression.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD f001e0ed_0281_6ed5_61c2_bc914a036974["get_loose_identifier()"] 8b705104_0cb9_c5c8_5bed_6dcfe73592d3["expression.js"] f001e0ed_0281_6ed5_61c2_bc914a036974 -->|defined in| 8b705104_0cb9_c5c8_5bed_6dcfe73592d3 f55653bc_77b3_5212_03f1_93bc274916e8["read_expression()"] f55653bc_77b3_5212_03f1_93bc274916e8 -->|calls| f001e0ed_0281_6ed5_61c2_bc914a036974 f9386464_dab0_7aa2_cfd0_969e973dc903["open()"] f9386464_dab0_7aa2_cfd0_969e973dc903 -->|calls| f001e0ed_0281_6ed5_61c2_bc914a036974 b3551700_3c95_8e19_dbb3_fb1e46ccae14["find_matching_bracket()"] f001e0ed_0281_6ed5_61c2_bc914a036974 -->|calls| b3551700_3c95_8e19_dbb3_fb1e46ccae14 style f001e0ed_0281_6ed5_61c2_bc914a036974 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/read/expression.js lines 13–27
export function get_loose_identifier(parser, opening_token) {
// Find the next } and treat it as the end of the expression
const end = find_matching_bracket(parser.template, parser.index, opening_token ?? '{');
if (end) {
const start = parser.index;
parser.index = end;
// We don't know what the expression is and signal this by returning an empty identifier
return {
type: 'Identifier',
start,
end,
name: ''
};
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does get_loose_identifier() do?
get_loose_identifier() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/read/expression.js.
Where is get_loose_identifier() defined?
get_loose_identifier() is defined in packages/svelte/src/compiler/phases/1-parse/read/expression.js at line 13.
What does get_loose_identifier() call?
get_loose_identifier() calls 1 function(s): find_matching_bracket.
What calls get_loose_identifier()?
get_loose_identifier() is called by 2 function(s): open, read_expression.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free