- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for jsBraceDepth (0.27 sec)
-
src/html/template/transition.go
// count "\}" as "}" and move on, the script is already broken as // fully fledged parsers will just fail anyway. c.jsBraceDepth[len(c.jsBraceDepth)-1]-- if c.jsBraceDepth[len(c.jsBraceDepth)-1] >= 0 { return c, i + 1 } c.jsBraceDepth = c.jsBraceDepth[:len(c.jsBraceDepth)-1] c.state = stateJSTmplLit default: panic("unreachable") } return c, i + 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 19:54:31 UTC 2024 - 18.2K bytes - Viewed (0) -
src/html/template/context.go
type context struct { state state delim delim urlPart urlPart jsCtx jsCtx // jsBraceDepth contains the current depth, for each JS template literal // string interpolation expression, of braces we've seen. This is used to // determine if the next } will close a JS template literal string // interpolation expression or not. jsBraceDepth []int attr attr element element
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 16 03:29:27 UTC 2023 - 9.4K bytes - Viewed (0)