MCPcopy Create free account
hub / github.com/antchfx/xpath / createElementAttr

Function createElementAttr

xpath_test.go:595–601  ·  view source on GitHub ↗
(line int, name string, attrs map[string]string, children ...*TNode)

Source from the content-addressed store, hash-verified

593}
594
595func createElementAttr(line int, name string, attrs map[string]string, children ...*TNode) *TNode {
596 el := createElement(line, name, children...)
597 for k, v := range attrs {
598 el.addAttribute(k, v)
599 }
600 return el
601}
602
603func createElement(line int, name string, children ...*TNode) *TNode {
604 nodeType := ElementNode

Callers 1

Calls 2

createElementFunction · 0.85
addAttributeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…