html/template.context.state (field)
96 uses
html/template (current package)
context.go#L19: state state
context.go#L33: return fmt.Sprintf("{%v %v %v %v %v %v %v}", c.state, c.delim, c.urlPart, c.jsCtx, c.attr, c.element, err)
context.go#L38: return c.state == d.state &&
context.go#L51: if c.state == stateText {
context.go#L54: s := templateName + "$htmltemplate_" + c.state.String()
escape.go#L26: } else if c.state != stateText {
escape.go#L168: c.state == stateAttr && c.delim == delimSpaceOrTagEnd && ident == "html" {
escape.go#L170: state: stateError,
escape.go#L177: switch c.state {
escape.go#L186: switch c.state {
escape.go#L196: state: stateError,
escape.go#L219: c.state = stateAttrName
escape.go#L224: if isComment(c.state) {
escape.go#L227: panic("unexpected state " + c.state.String())
escape.go#L406: switch c.state {
escape.go#L409: c.state = stateAttrName
escape.go#L412: c.state, c.delim, c.attr = attrStartStates[c.attr], delimSpaceOrTagEnd, attrNone
escape.go#L415: c.state, c.attr = stateAttrName, attrNone
escape.go#L424: if a.state == stateError {
escape.go#L427: if b.state == stateError {
escape.go#L456: if e := join(c, d, node, nodeName); e.state != stateError {
escape.go#L462: state: stateError,
escape.go#L470: if nodeName == "range" && c0.state != stateError {
escape.go#L476: if c0.state == stateError {
escape.go#L562: state: stateError,
escape.go#L567: state: stateError,
escape.go#L597: if !ok && c1.state != stateError {
escape.go#L599: state: stateError,
escape.go#L611: if c1.state == stateError {
escape.go#L653: if c.state == stateText || c.state == stateRCDATA {
escape.go#L655: if c1.state != c.state {
escape.go#L670: } else if isComment(c.state) && c.delim == delimNone {
escape.go#L671: switch c.state {
escape.go#L690: if c.state != c1.state && isComment(c1.state) && c1.delim == delimNone {
escape.go#L693: if c1.state == stateHTMLCmt {
escape.go#L700: if i == i1 && c.state == c1.state {
escape.go#L706: if written != 0 && c.state != stateError {
escape.go#L707: if !isComment(c.state) || c.delim != delimNone {
escape.go#L726: return transitionFunc[c.state](c, s[:i])
escape.go#L745: state: stateError,
escape.go#L756: c1, i1 := transitionFunc[c.state](c, u)
escape.go#L765: if c.state == stateAttr && c.element == elementScript && c.attr == attrScriptType && !isJSType(string(s[:i])) {
escape.go#L775: return context{state: stateTag, element: element}, i
html.go#L183: st := c.state
html.go#L190: if c.state == stateText || c.state == stateRCDATA {
html.go#L193: if d.state != c.state {
html.go#L216: c, i = context{state: stateTag, element: c.element}, i1
html.go#L220: } else if c.state == stateText || c.state == stateRCDATA {
transition.go#L55: return context{state: stateHTMLCmt}, i + 4
transition.go#L71: return context{state: stateTag, element: e}, j
transition.go#L94: state: elementContentType[c.element],
transition.go#L100: return context{state: stateError, err: err}, len(s)
transition.go#L105: state: stateError,
transition.go#L131: return context{state: state, element: c.element, attr: attr}, j
transition.go#L138: return context{state: stateError, err: err}, len(s)
transition.go#L140: c.state = stateAfterName
transition.go#L153: c.state = stateTag
transition.go#L156: c.state = stateBeforeValue
transition.go#L184: c.state, c.delim = attrStartStates[c.attr], delim
transition.go#L274: c.state, c.jsCtx = stateJSDqStr, jsCtxRegexp
transition.go#L276: c.state, c.jsCtx = stateJSSqStr, jsCtxRegexp
transition.go#L280: c.state, i = stateJSLineCmt, i+1
transition.go#L282: c.state, i = stateJSBlockCmt, i+1
transition.go#L284: c.state = stateJSRegexp
transition.go#L289: state: stateError,
transition.go#L303: switch c.state {
transition.go#L321: state: stateError,
transition.go#L332: c.state, c.jsCtx = stateJS, jsCtxDivOp
transition.go#L343: state: stateError,
transition.go#L359: switch c.state {
transition.go#L361: c.state = stateJS
transition.go#L363: c.state = stateCSS
transition.go#L365: panic(c.state.String())
transition.go#L374: switch c.state {
transition.go#L387: panic(c.state.String())
transition.go#L394: c.state = endState
transition.go#L446: c.state, j = stateCSSDqURL, j+1
transition.go#L448: c.state, j = stateCSSSqURL, j+1
transition.go#L450: c.state = stateCSSURL
transition.go#L458: c.state = stateCSSLineCmt
transition.go#L461: c.state = stateCSSBlockCmt
transition.go#L466: c.state = stateCSSDqStr
transition.go#L469: c.state = stateCSSSqStr
transition.go#L479: switch c.state {
transition.go#L489: panic(c.state.String())
transition.go#L503: state: stateError,
transition.go#L508: c.state = stateCSS
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |