MCPcopy
hub / github.com/hashicorp/hcl / Name

Method Name

hclsyntax/parser_template.go:842–854  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840}
841
842func (t *templateEndCtrlToken) Name() string {
843 switch t.Type {
844 case templateEndIf:
845 return "endif"
846 case templateElse:
847 return "else"
848 case templateEndFor:
849 return "endfor"
850 default:
851 // should never happen
852 panic("invalid templateEndCtrlType")
853 }
854}
855
856type templateEndToken struct {
857 SrcRange hcl.Range

Callers 4

parseExprMethod · 0.80
parseIfMethod · 0.80
parseForMethod · 0.80
runDirMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected