MCPcopy Create free account
hub / github.com/charto/cxml / registerNative

Method registerNative

src/parser/ParserNamespace.ts:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 registerNative(): NativeNamespace {
38 if(this.elementSet.dirty) {
39 this.native.setElementTrie(this.elementSet.encodeTrie());
40 this.elementSet.dirty = false;
41 }
42 if(this.attributeSet.dirty) {
43 this.native.setAttributeTrie(this.attributeSet.encodeTrie());
44 this.attributeSet.dirty = false;
45 }
46 return(this.native);
47 }
48
49 addElement(name: string) {
50 return(this.elementSet.createToken(name, this));

Callers 2

addNamespaceMethod · 0.80
updateNamespacesMethod · 0.80

Calls 3

setElementTrieMethod · 0.80
encodeTrieMethod · 0.80
setAttributeTrieMethod · 0.80

Tested by

no test coverage detected