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

Method Equal

hclwrite/node.go:26–28  ·  view source on GitHub ↗
(other *node)

Source from the content-addressed store, hash-verified

24}
25
26func (n *node) Equal(other *node) bool {
27 return cmp.Equal(n.content, other.content)
28}
29
30func (n *node) BuildTokens(to Tokens) Tokens {
31 return n.content.BuildTokens(to)

Callers 15

scanTokensFunction · 0.80
TestWalkFunction · 0.80
TestParseTraversalAbsFunction · 0.80
TokenMatchesMethod · 0.80
TestTraversalStaticFunction · 0.80
TestTupleStaticFunction · 0.80
TestMapStaticFunction · 0.80
TestParseFunction · 0.80
TestRoundTripVerbatimFunction · 0.80
TestTokensForValueFunction · 0.80
TestTokensForTraversalFunction · 0.80
TestTokensForTupleFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestWalkFunction · 0.64
TestParseTraversalAbsFunction · 0.64
TestTraversalStaticFunction · 0.64
TestTupleStaticFunction · 0.64
TestMapStaticFunction · 0.64
TestParseFunction · 0.64
TestRoundTripVerbatimFunction · 0.64
TestTokensForValueFunction · 0.64
TestTokensForTraversalFunction · 0.64
TestTokensForTupleFunction · 0.64
TestTokensForObjectFunction · 0.64