MCPcopy
hub / github.com/valyala/quicktemplate / skipTagContents

Function skipTagContents

parser/parser.go:825–835  ·  view source on GitHub ↗
(s *scanner)

Source from the content-addressed store, hash-verified

823}
824
825func skipTagContents(s *scanner) error {
826 tagName := string(s.Token().Value)
827 t, err := expectTagContents(s)
828 if err != nil {
829 return err
830 }
831 if len(t.Value) > 0 {
832 return fmt.Errorf("unexpected extra value after %s: %q at %s", tagName, t.Value, s.Context())
833 }
834 return err
835}
836
837func expectTagContents(s *scanner) (*token, error) {
838 return expectToken(s, tagContents)

Callers 6

parseFuncMethod · 0.85
parseForMethod · 0.85
parseDefaultMethod · 0.85
parseSwitchMethod · 0.85
parseIfMethod · 0.85
skipAfterTagMethod · 0.85

Calls 3

expectTagContentsFunction · 0.85
TokenMethod · 0.80
ContextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…