MCPcopy
hub / github.com/digitalbazaar/jsonld.js / primitive_type

Function primitive_type

tests/webidl/WebIDLParser.js:145–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 };
144
145 var primitive_type = function() {
146 var num_type = integer_type() || float_type();
147 if (num_type) return num_type;
148 all_ws();
149 if (consume(ID, "boolean")) return "boolean";
150 if (consume(ID, "byte")) return "byte";
151 if (consume(ID, "octet")) return "octet";
152 };
153
154 var const_value = function() {
155 if (consume(ID, "true")) return { type: "boolean", value: true };

Callers 2

single_typeFunction · 0.85
const_Function · 0.85

Calls 4

integer_typeFunction · 0.85
float_typeFunction · 0.85
all_wsFunction · 0.85
consumeFunction · 0.85

Tested by

no test coverage detected