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

Method PartitionLeadComments

hclwrite/parser.go:138–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func (it inputTokens) PartitionLeadComments() (before, within inputTokens) {
139 start := partitionLeadCommentTokens(it.nativeTokens)
140 before = it.Slice(0, start)
141 within = it.Slice(start, len(it.nativeTokens))
142 return
143}
144
145func (it inputTokens) PartitionLineEndTokens() (comments, newline, after inputTokens) {
146 afterComments, afterNewline := partitionLineEndTokens(it.nativeTokens)

Callers 1

PartitionBlockItemMethod · 0.80

Calls 2

SliceMethod · 0.95

Tested by

no test coverage detected