MCPcopy Index your code
hub / github.com/json-editor/json-editor / code

Method code

docs/scripts/ajv-validator.js:1144–1150  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

1142 }
1143 // appends passed SafeExpr to code or executes Block
1144 code(c) {
1145 if (typeof c == "function")
1146 c();
1147 else if (c !== code_1.nil)
1148 this._leafNode(new AnyCode(c));
1149 return this;
1150 }
1151 // returns code for object literal for the passed argument list of key-value pairs
1152 object(...keyValues) {
1153 const code = ["{"];

Callers 15

ifMethod · 0.95
_forMethod · 0.95
returnMethod · 0.95
tryMethod · 0.95
blockMethod · 0.95
funcMethod · 0.95
addErrorFunction · 0.80
ajv-validator.jsFile · 0.80
validateFunctionFunction · 0.80
commentKeywordFunction · 0.80
keywordCodeFunction · 0.80
deleteAdditionalFunction · 0.80

Calls 1

_leafNodeMethod · 0.95

Tested by

no test coverage detected