match_quote() — svelte Function Reference
Architecture documentation for the match_quote() function in bracket.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD bcf5e2ea_c071_00bf_777f_2798696fe093["match_quote()"] 0d221a90_b1cc_5826_235e_98f5216d6400["bracket.js"] bcf5e2ea_c071_00bf_777f_2798696fe093 -->|defined in| 0d221a90_b1cc_5826_235e_98f5216d6400 dacf5984_89ce_530d_f035_1eac4b0b8e1f["match_bracket()"] dacf5984_89ce_530d_f035_1eac4b0b8e1f -->|calls| bcf5e2ea_c071_00bf_777f_2798696fe093 dacf5984_89ce_530d_f035_1eac4b0b8e1f["match_bracket()"] bcf5e2ea_c071_00bf_777f_2798696fe093 -->|calls| dacf5984_89ce_530d_f035_1eac4b0b8e1f 54279fd6_994c_2ae7_02e2_cac6c811b7be["unterminated_string_constant()"] bcf5e2ea_c071_00bf_777f_2798696fe093 -->|calls| 54279fd6_994c_2ae7_02e2_cac6c811b7be style bcf5e2ea_c071_00bf_777f_2798696fe093 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/utils/bracket.js lines 187–213
function match_quote(parser, start, quote) {
let is_escaped = false;
let i = start;
while (i < parser.template.length) {
const char = parser.template[i++];
if (is_escaped) {
is_escaped = false;
continue;
}
if (char === quote) {
return i;
}
if (char === '\\') {
is_escaped = true;
}
if (quote === '`' && char === '$' && parser.template[i] === '{') {
i = match_bracket(parser, i);
}
}
e.unterminated_string_constant(start);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does match_quote() do?
match_quote() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/utils/bracket.js.
Where is match_quote() defined?
match_quote() is defined in packages/svelte/src/compiler/phases/1-parse/utils/bracket.js at line 187.
What does match_quote() call?
match_quote() calls 2 function(s): match_bracket, unterminated_string_constant.
What calls match_quote()?
match_quote() is called by 1 function(s): match_bracket.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free